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.GetHTMLText

Queries the current HTML of the document.

Component Version macOS Windows Linux Server FileMaker iOS SDK
WebView 2.8 Yes Yes No No Yes
MBS( "WebView.GetHTMLText"; 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 html code as text or error.

Description

Queries the current HTML of the document.
This is not the HTML code loaded from the server, but the current state.
Typically the website is modified with Javascript to add widgets or hide/show things at runtime.
For websites with frames, result may only contain the main frame and not any child frames.

See also WebView.GetPlainText, WebView.GetFormattedText and WebView.SelectedText.

Examples

Query plain text from webviewer:

MBS("WebView.GetPlainText"; "web")

Query html text from webviewer:

MBS("WebView.GetHTMLText"; "web")

Query formatted text from webviewer:

MBS("WebView.GetFormattedText"; "web")

Query selected text:

MBS("WebView.SelectedText"; "web")

See also

Example Databases

Blog Entries

Release notes

Created 18th August 2014, last changed 14th April 2020


WebView.GetFormattedText   -   WebView.GetHidden

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat