All functions
Mac OS X
Windows
Crossplatform
Components
Guides
New in version:
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
2.0
2.1
2.2
2.3
2.4
2.5
2.6
WebView.RunJavaScriptReturnTitle
Component: WebView
Version: 1.4
Mac OS X: Works
Windows: Works
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;" )
Feedback: Report problem or ask question.
Loading
Links
MBS Realbasic Chart Plugins - Nachhilfe in Kell