Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Return Infomation from Web Viewer?


This topic is 6161 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

  • 2 months later...
Posted

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

Posted

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

  • 2 weeks later...
Posted

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

Posted

Yes,

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

  • 5 weeks later...
Posted

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

Posted

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

Posted (edited)

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
Posted

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

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

Posted

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.

This topic is 6161 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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