The following works for me in ie6,ie7,chrome but not ff3
document.getElementById(\"form-name\").submit(); var image = document.getElementById(\"loader-img\"); se
You should do the post asynchronously, if not the UI may hang. Take a look at the jQuery Form Plugin for more information.