Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

WebView.RunJavaScriptReturnTitle

Run the specified JavaScript and then returns the value of the title property to FileMaker.

Component: WebView
Version: 1.4
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "WebView.RunJavaScriptReturnTitle"; WebViewerRef; Javascript )

Parameters

Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
Javascript the text source of the javascript

Description

Run the specified JavaScript and then returns the value of the title property to FileMaker.
To return a result of the JavaScript to FileMaker, simply set "document.title" to the return value. Why did we do this? Because it was the way we could get the result back from the web view on windows. Use "\n" in javascript strings for a newline character.

Examples

Return the htmlcode of a field as string:

MBS( "WebView.RunJavaScriptReturnTitle"; "browser"; "document.title=document.getElementById('td_ProcName_v').innerHTML;" )

Return the text of a html item referenced by id as string:

MBS( "WebView.RunJavaScriptReturnTitle"; "browser"; "document.title=document.getElementById('Result').innerText;" )

See also


WebView.RunJavaScript   -   WebView.Screenshot

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Besuchen Sie die Jugendzentrum Nickenich Webseite