revBrowserSet | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Synonyms | xbrowser_set | ||||||||||||
Summary | Sets a given property of a specified browser. | ||||||||||||
Introduced | 2.8.1 | ||||||||||||
Changes | There is a long standing issue with revBrowser that causes browser instances to be lost whenever the stack it is attached to has its window re-created. Previously, cases where this would occur had to be avoided when a browser was present on a stack. | ||||||||||||
OS | mac, windows | ||||||||||||
Platforms | desktop | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Values |
| ||||||||||||
Related | Message: browserOver, browserClick, browserNewInstance, queryRecordChanged, browserNewUrlWindow, browserOut Command: revBrowserSnapshot, find Function: revBrowserInstances, revBrowserOpen, revBrowserGet Glossary: command, function | ||||||||||||
Security | network | ||||||||||||
Description | The revBrowserSet command sets the value of the property propertyName to the value propertyValue for the browser specified by the instanceId.
To resolve this problem a new property was added in version 4.5.1 to browser instances windowId. The windowId property allows the stack to which a browser instance is attached to be changed after it has been created. If the windowId is set to 0, the browser instance is temporary hidden. If the windowId is set to a valid stack windowId, the browser instance will move to that stack. For example, to toggle the resizable property of a stack hosting a browser use the following code:
Cross Platform Caution: Due to a limitation in the current browser implementation, the behavior of the scrollbars property is slightly different on Windows and OS X. In particular, under OS X, when navigating to a page for the first time after disabling scrollbars, revBrowser won't allow you to turn scrollbars back on. The way to work around this and create a browser that allows scrollbars to be toggled on both platforms is like this:
|