DikkeHenk Posted November 19, 2014 Posted November 19, 2014 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
comment Posted November 19, 2014 Posted November 19, 2014 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.
Recommended Posts
This topic is 4029 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 accountSign in
Already have an account? Sign in here.
Sign In Now