Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetBrowser (obsolete) – PB Docs 2021 – PowerBuilder Library

SetBrowser (obsolete) – PB Docs 2021

SetBrowser (obsolete)

Description

Specifies the Web browser for which you want to generate optimized
HTML.

Obsolete method

SetBrowser is obsolete and should not be used, because the Web
DataWindow technology is obsolete.

Applies to

DataWindow type

Method applies to

Web

Server component

Syntax

Web DataWindow server
component

Argument

Description

dwcomponent

A reference to a Web DataWindow server
component.

browsername

A string identifying the browser and version. The
value should match the string passed to the Web server in the HTTP
header. The corresponding server variable is
HTTP_USER_AGENT.

Sets the value of the HTMLGen.Browser
property for the DataWindow object associated with the server
component.

For information on recognized browsers, see
HTMLGen.property.

Return value

Returns an empty string if successful and the syntax error message
from the Modify method if it fails.

Usage

If the DataWindow recognizes the browser identifier, it will
generate HTML optimized for that browser. A server-side script can get the
browser identifier from the server variable HTTP_USER_AGENT.

This method calls the Modify method of the server component’s
DataStore to set the property.

Examples

This JSP example identifies the current browser for the component
called dwGen:

In ASP, you can use the ServerVariables method of the Request object
to get the HTTP_USER_AGENT value:

See also

Generate

Modify

SetAction

HTMLGen.property


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x