Brian Dunning's FileMaker Custom Functions

xExtractHtmLContent ( url, query, data, v-width, v_height, L_offset, T_offset, scalewidth, scaleheight )

Controls which part of a web page is displayed in the WebObject Viewer

  Average rating: 3.1 (55 votes) Log in to vote

Nick Lightbody   Nick Lightbody - Show more from this author
Deskspace Systems Limited

Share on Facebook Share on Twitter

  Sample input:
xExtractHtmLContent ( Searches::za2Url; "q="; & Searches::xa2Address4GoogleMap ; Searches::zb5Width ; Searches::zb5Height; Searches::zb5WidthOffset ; Searches::zb5HeightOffset ; 1 ; 1 )
  Sample output:
[html string]

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Enables offsets to be used to hide elements in the source screen that you don't want to be viewed in the FileMaker Web Viewer - this is an amazingly useful function enabling you to precisely control what information - for example from a mapping site - you choose to display.
This updated version also resizes the source content as the web viewer is resized as the Filemaker Window is resized.



Bruce Robertson   Bruce Robertson
Mar 2, 2009
Discovered a very interesting affect of this. If you have a negative offset, then clicking in the webviewer window produces a click in the associated region of the Filemaker layout.

So by scrolling in a web viewer, I select and scroll text in a field that is above and to the left of the web viewer. Very weird.
Nathan Taylor   Nathan Taylor, Atlanta, GA
Aug 31, 2012
I pasted the text above into a new custom function and when I click OK I get the following error: "The specified parameter can not be found" with "address" highlighted. Is "address" supposed to be another input parameter?
David A. Taylor   David A. Taylor, Santa Clarita
Aug 22, 2017
This CF seems to have typos in parameters and a number of missing parameters as well. Too bad because this would be quite useful.

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: