Solved

Loader.gif does not work in IE11

Posted on 2014-02-10
3
1,454 Views
Last Modified: 2014-02-25
Hello,
  I have a Loader image on a web page that should show with each AjAX call, I see the icon on FF but it does not show in IE

HTML
<img src="img/loading.gif" id="loading-indicator" style="display:none" />

Open in new window


Jquery --init script
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() 
	{
		$("#loading-indicator").ajaxStart(function() 
				{ $(this).show(); })
        .ajaxStop(function() 
        		{ $(this).hide(); });
		
		initialize();
	}); 
</script>

Open in new window

CSS
#loading-indicator {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

Open in new window


Thanks for your help
0
Comment
Question by:SiemensSEN
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
Chris Stanyon earned 200 total points
ID: 39849454
What version of jQuery are you using.

From the DOCs:

As of jQuery 1.8, the .ajaxStart() method should only be attached to document.

Do you have a link to your site we can see.
0
 

Author Comment

by:SiemensSEN
ID: 39849924
Thanks. sorry. it is an internal site.

It works in FF but Not IE. Is the CSS correct?
0
 
LVL 42

Expert Comment

by:Chris Stanyon
ID: 39849965
unfortunately css doesn't work in isolation, so it's impossible to see what else is being applied. can you upload a demo to an online server .doesn't need to be your full code. just enough to show the problem
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now