Jump to content

works in FF, but not IE


justAnoob

Recommended Posts

I have this function that is ran when the submit button is clicked. As you can see, it will display the div that is hidden. Inside that div is an animated gif. The animation only runs in FF but not IE. Is there any way around this problem?

function do_submit()
{
  document.getElementById("wait_msg").style.display = "block";
  return true;
}

<div id="wait_msg" style="display: none;"><img src="images/progress_indicator.gif" /></div>

Link to comment
https://forums.phpfreaks.com/topic/184808-works-in-ff-but-not-ie/
Share on other sites

Are you saying that the image is not showing in IE when the button is clicked? As in, the div style isn't being changed? That code looks okay. Assuming your syntax is right in your button's onclick, there's no reason your code shouldn't work in IE.  Did you make sure you have js enabled? What version are you using?

 

i would check if there are any javascript errors. if there are post them here. in IE you can see javascript errors by looking in the bottom left hand corner. if there is an error there will be a yellow exclamation point. also if you like using firebug in FF there is firebug lite that can be used in IE to help troubleshoot.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.