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.

Best way to retrieve from the webviewer

Featured Replies

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

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.

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.