Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  

Webview.UserScripts

Queries list of user scripts.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Webview 9.5 Yes No No No Yes
MBS( "Webview.UserScripts"; WebViewerRef )   More

Parameters

Parameter Description Example value
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

Created 8th November 2019, last changed 8th November 2019


Webview.SetPrivateBrowsing   -   WinSendMail.AddAttachmentContainer

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins