Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Hide Next button and auto submit page after a period of time

Hi. I am using some javascript to hide the Next button then automatically submit the page after a flash file (TV ad) has loaded and played. It works well in IE and FireFox but not in Chrome or Safari. In Chrome & Safari the count down to the page submit starts as soon as the page appears, instead of starting the count down after the page has fully loded (ie the flash file has loaded and started playing). This means the page is submitted before the embedded flash file has finished playing. The browsers seem to treat the "onload" event differently. Does anybody have a fix or suggestion for this? Here is the code I paste into the question HTML header...

<body onload="doonload()">
<script language="javascript">
function doonload()
{
document.getElementById('next_button').style.visibility = 'hidden';
setTimeout('SSI_SubmitMe()',31000); 
}
</script>



Thanks in advance.
Russell Pizel
asked Jan 25, 2012 by anonymous
I'd suggest a visit to stackoverflow.com and ask there
Russell,
Did you find a solution to get the Hidden-Next-Button-Autosubmit page java script to work in Chrome and Safari?
I need to the same, but with page with images.
Hi. I didn't find a nice solution to work for a page that takes a long time to load (eg loading a page containing 3MB Flash file)... but the above solution should work for you if you are only loading images... the load time for images between respondents should be fairly similar???

Cheers
Russell
I have the same requirement but I am using an older SSI Web Version i.e. 6.2.0.

Is it possible to force delay in submit / next button after a certain time say after 3 minutes so respondents have to see the video before moving to the next screen. I even don't need to auto submit and if just delay can be implemented in the older SSI Web Version it would be great.
There is an example of this on our Tools & Scripts page for v6: https://www.sawtoothsoftware.com/products/ssiweb/tools

Your answer

Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

To avoid this verification in future, please log in or register.
...