Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I have GIF image that is used for showing Please wait dialog. Here is my code.
This works only in FireFox. It doesn't work in IE, Chrome,Safari. How can I make it work in all the browsers? I have searched in google. And didn't find a concrete solution. Could someone in here help me with this?

XML
<div id="loader" style="display: none;">
       <img  src="Images/712Blue.GIF" alt=''  />
     </div>



PHP
function blockUI() {
              $.blockUI.defaults.overlayCSS.cursor = 'default';
       $.blockUI({ message: $('#loader'), css: { border: 'none', background: 'none' },ignoreIfBlocked: false
       });
   }
   function closeLoading() {
       $.unblockUI();
   }



Your help is much appreciated.
Posted
Comments
abhijeetgupta1988 9-Apr-15 12:36pm    
Did you tested their page in all mentioned browsers? Do their examples/demo works in chrome/safari? They work.

Check the console tab in Chrome's developer tool. You might have missed to link the jQuery libraries or some conflict of jQueries.
sudevsu 9-Apr-15 12:47pm    
Abhijeet, I have my libraries on the project. I didn't miss them. Yeah I did test in different browsers. is there a fix for this
abhijeetgupta1988 9-Apr-15 12:49pm    
can you host your code?
sudevsu 9-Apr-15 13:29pm    
What code are you asking for? I already posted in my question.
abhijeetgupta1988 9-Apr-15 13:33pm    
can you host your code on any webserver?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900