Platforms to show: All Mac Windows Linux Cross-Platform
WebScriptObjectMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | HTMLViewer Mac | MBS MacControls Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
This classs is not available in Xojo 2020r1 or newer.
All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- property Handle as Integer
- 9 methods
- method Constructor Private
- method evaluateWebScript(script as String) as Variant
- method getValue(name as String) as Variant
- method removeValue(name as String)
- method setValue(name as String, value as Variant)
- method setWebScriptCallback(name as String, value as WebScriptCallbackMBS)
- method setWebScriptValueAtIndex(index as Integer, value as Variant)
- method stringRepresentation as String
- method webScriptValueAtIndex(index as Integer) as Variant
Sub classes:
- class DOMObjectMBS
- class DOMAbstractViewMBS
- class DOMCounterMBS
- class DOMCSSRuleListMBS
- class DOMCSSRuleMBS
- class DOMCSSStyleDeclarationMBS
- class DOMCSSValueMBS
- class DOMHTMLCollectionMBS
- class DOMHTMLOptionsCollectionMBS
- class DOMImplementationMBS
- class DOMMediaListMBS
- class DOMNamedNodeMapMBS
- class DOMNodeListMBS
- class DOMNodeMBS
- class DOMRangeMBS
- class DOMRectMBS
- class DOMRGBColorMBS
- class DOMStyleSheetListMBS
- class DOMStyleSheetMBS
Some events using this class:
- WebFrameLoadDelegateMBS.windowScriptObjectAvailable(WebView as WebViewMBS, windowScriptObject as WebScriptObjectMBS) as boolean
Blog Entries
The items on this page are in the following plugins: MBS MacControls Plugin.
WebScriptCallbackMBS - WebUIDelegateMBS
Feedback: Report problem or ask question.