Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
WebView.UserScripts
Queries list of user scripts.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WebView | 9.5 | Yes | No | No | No | Yes |
MBS( "WebView.UserScripts"; WebViewerRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. |
Result
Returns JSON or error.
Description
Queries list of user scripts.Returns JSON array of objects with three fields for each script: source, injectionTime and forMainFrameOnly.
injectionTime is either AtDocumentStart or AtDocumentEnd.
forMainFrameOnly is a boolean value.
Examples
Query user scripts:
MBS( "WebView.UserScripts"; "web" )
Example result:
[
{
"forMainFrameOnly" : true,
"source" : "alert('Hello');",
"injectionTime" : "AtDocumentEnd"
}
]
See also
Blog Entries
Release notes
- Version 9.5
- Added Webview.AddUserScript, Webview.UserScripts and Webview.RemoveAllUserScripts functions.
Created 8th November 2019, last changed 5th January 2020
WebView.StopLoading - WebView.Version
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins