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

RegisterEvent – PB Docs 2019 – PowerBuilder Library

RegisterEvent – PB Docs 2019

RegisterEvent

PowerScript function

Description

Registers the PowerBuilder user defined event so
they can be triggered in JavaScript.

Applies to

WebBrowser controls

Syntax

Argument

Description

controlname

The name of the WebBrowser control.

eventname

The name of the user-defined event to be
registered.

Return value

Integer.

Returns values as follows.

1 — the event is registered successfully.

-1 — the event is already registered.

-2 — failed to get the browser instance.

Examples

The following example defines a PowerBuilder user event which is
then triggered in JavaScript in wb_1, and the result of the JavaScript
which is returned in a JSON string is parsed by the JSONParser
object.

Note that this user event should not call any other WebBrowser
function, otherwise the application may get stuck.

See also

CancelDownload

EvaluateJavascriptAsync

EvaluateJavascriptSync

GetSource

GoBack

GoForward

Navigate

PrintAsPDF

PauseDownload

ResumeDownload

Refresh

StopNavigation

UnregisterEvent

Zoom


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