Wednesday 18 September 2013

Gif not running when loading an external page

Gif not running when loading an external page

I Have a huge php table and i want Load it via AJAX to insert a loading
gif to the user. So i'm very noob with this kind of operation and i make a
very simple code to do this task. Here is my code:
$(document).ready(function() {
$("#tableDiv").html('<center><img src="images/loader.gif"
/></center>');
$("#tableDiv").load("regulatoryData.php");
});
This is loading the gif but it is not running, it remains static. How can
i correct it? Any suggestions?
EDIT: When i drag my image to the browser it animates normally.
Sorry about my english :/

No comments:

Post a Comment