If anyone would like to create a countdown timer then see attached script
I am basically using this countdown timer for RugbyWC 2015 which is starting in September. All you have to do is to update “DayToVar” string to your preferred date and the countdown will begin.
Thanks for your quick response !! Had attached he rp file for your perusal…basically i am trying to replicate a countdown timer to a football match!! CountDownTimer_v1.rp (62.9 KB)
In your OnPanelStateChange, you need to change where you set the value of ‘DayVar’.
Where you have Date.parse(12) change the ‘12’ to ‘DayToVar’, so it reads Date.parse(DayToVar)
Then, change the OnPageLoad to set the value of DayToVar. So, for example, if you wanted to count down to Christmas, you would set that variable to be ‘SUN DEC 25 2016’.
Are you still seeing this behavior? Like James, I’m not seeing this when working with the CountDownTimer_v2 file you posted on 7/2–it works fine for me on both Windows and Mac across multiple browsers.
If you’re still getting the NaN error, try downloading the file from your post and see if that freshly downloaded copy works for you. If it doesn’t, try updating Axure RP via the “Help > Check for Updates” dialog and see if that helps.