Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Return Infomation from Web Viewer?

Featured Replies

Is there a way to retunr information from the Web Viewer?

I just read this article: http://www.briandunning.com/wv/12

It gives you the Latitude and Longitude for address.

Is there a way to grab the info from Latitude and Longitude.

http://www.filemaker.com/help/FunctionsRef-38.html

Do a search on these forums for "scraping". There should be a few threads on here regarding using the technique of web scraping via the function Genx has posted.

  • Author

Thanks. After much reading and tinkering. I finally got it.

Scraping! Wow! It really has opened up a bunch of new doors.

  • 2 months later...

I have read this document several times and checked in the manual.

I need a field to display the current url - I have named the web viewer object as "webviewer1"

but I can't get my calculation right - this is what I put:

GetLayoutObjectAttribute(webviewer1;Source)

can anyone tell me what I'm doing wrong -

Thanks

GetLayoutObjectAttribute( "webviewer1"; "Source" ) in an unstored calc should do it.

Thanks, that did work but the field doesn't update when I go to a different Url unless I click on the field that returns the Url - can I set this to update automatically?

thanks again

  • 2 weeks later...

Is there any way to tell within a script if web page in the viewer is fully loaded?

Yes,

Patterncount ( GetLayoutObjectAttribute ( "webViewerName" ; "content" ) ; "

Thank you!

  • 5 weeks later...

Here is an example of "scraping" a web page for information. This file takes an address, city, and state and returns address, city, st, zip, +4Zip, and County in the USPS Standard Address Format. It uses USPS.com loaded in a web viewer to do it.

Address_Check__zipped__Folder.zip

Hi To All,

I am using this technique to good effect and it's great!

One question I have is on how to detect a 'timeout'. This happens when the web engine tries to get info from the site and it takes more than one minute. This can happen simply because the site is running slow. I am dealing with it but it is set to a timed count of the loops which will add to more than that time.

If someone has a way, I would appreciate the tip.

Thanks,

Lance

in the lookup script, in the loop create a counter

set variable [$X , 0]

Loop

check for web page loading...

Exit loop if [loaded or $X > Number of secs for time out]

pause[1 sec]

end loop

If[ $X > Number of secs for time out]

Show Message[ It timed out!]

end if

or somthing like that.

Edited by Guest

Hi aholtzapfel,

Yes, that is pretty much what I am doing. It just seems that it is a bit clunky not being able to detect the state. I was hoping for a 'sure thing'.

Thanks,

Lance

  • 7 months later...

This sounds really like what I am looking for... One problem when I unzip it and open it I get an error "Unknown Script step" I've attached a screen shot of the script if anyone can tell me what is supposed to go here I would greatly appreciate it.

Is it possible that since I'm using 8 that this is unavailable to me?

Picture_1.pdf

Is it possible that since I'm using 8 that this is unavailable to me?

Yes, the example uses filemaker's webviewer (Availible in ver 8.5 and above)

Before ver8.5 came out I was doing this with a VBS script (would need to use applescript on a mac) and there are advantages to using an OS level script to scrape a page but it is alot more involved than using the web view.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.