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

Best way to retrieve from the webviewer


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

Recommended Posts

Posted

Hi,

I am having a Javascript countdown game-clock (period's - minutes - seconds ) running in a webviewer.

I need to retrieve (on button click) the period - minutes - seconds from the clock into Filemaker

 

As far as I know there are 3 ways to get the data out:

 

- use the 'Insert from URL' script step and filter the needed data out ( at a Filemaker button click )

- use the FMP URL protocol ( Javascript triggers a Filemaker script ) to 'Set' a field in Filemaker ( maybe each second )

- Javascript writes the period - min's - seconds as parameters in the URL each second ( a Filemaker script only fetches the data from the URL when needed - at a button click - )

 

I am not sure but option 3 seems to have the best performance.

 

Your opinion please

 

Thanks

 

Henk

Posted

I don't think #1 is an option at all, because the underlying HTML does not change.

 

In any case, the best way to do this, IMHO, is not to. Let the pretty Javascript clock run at it leisure and get the elapsed/remaining time by comparing the current timestamp to an initial timestamp stored in a global field/variable.

This topic is 3668 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.