javascriptHandlers |
Type | property |
Dictionary | widget.browser |
Library | Browser |
Syntax | set the javascriptHandlers of <widget> to <pHanderList>
get the javascriptHandlers of <widget>
|
Associations | com.livecode.widget.browser |
Summary | A list of LiveCode handlers that are made available to JavaScript calls within the browser.
|
Example |
on myJSHandler pMessage, pValue
end myJSHandler
set the javascriptHandlers to "myJSHandler" & return & "myOtherJSHandler"
liveCode.myJSHandler("myMessage", 12345);
|
Values | Name | Type | Description |
---|
Value | | A return-separated list of handler names.
|
|
Description | The javascriptHandlers is a list of LiveCode handlers that are made
available to JavaScript calls within the browser. The handlers will
appear as methods attached to a global liveCode object. You can call
these methods as you would any other JavaScript function and pass
whatever parameters you require.
Warning: Setting the javascriptHandlers property gives JavaScript
running within the Web browser permission to execute parts of your
application through the handlers you choose to expose. If using this
feature, make sure that you have complete control over the webpages
which you load into the browser widget, and consider using HTTPS to
ensure that third-parties cannot inject malicious code into them.
|