November 19, 201411 yr 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
November 19, 201411 yr 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