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
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?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.