Solved

Loader.gif does not work in IE11

Posted on 2014-02-10
3
1,582 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 43

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 43

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
document.write() deleting all existing HTML 5 49
Add or delete table rows 10 53
Using Specialized Fonts in CSS 1 23
Set time on Session (ASP) 14 21
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

792 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