Entry
Why does animated gif freezes on form submit in Internet Explorer? Are there workarounds?
Apr 9th, 2008 20:33
ha mo, Dave Clark, teccnoraj,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The most likely cause of animated gif's freezing is not
completing an event correctly. The first rule of thumb is that all
event handlers should return (ˇonly!) either a true or a false value
to the event. To be safe, don't trust the standards which state that
the return value to an event defaults to true when no value is
actually returned by the handler.
In the case of a form submission, it might be the onsubmit event
which is getting hosed. Form validation routines should be performed
as follows:
<form ...etc... onsubmit="return FormValidation(this)">
Then, just make sure that the onsubmit event handler returns
either a true or a false value. For example, the following is just a
skeleton and some psuedo-code for the form validation function
indicated above:
function FormValidation(f)
{
if (some error)
{
alert('some error message');
return false;
}
return true;
}
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com