I send Request to Get Html Content and Replace With Another Content.
This is My jQuery Code.
$.post(page,function(data){
$('.page_content').html(data);
});
and i also used this code to send request but not working i got same problem.
$.ajax({
url:page,
method:'POST',
async:true,
success: function(data){
$('.page_content').html(data);
}
});
and i used the $.ajaxStart and $.ajaxStop for hide and show GIF Loading.
$(document).ready(function(){
$( document ).ajaxStart(function() {
$( ".page_loading" ).show();
});
$( document ).ajaxStop(function() {
$( ".page_loading" ).hide();
});
});
This code is Working fine in Mozila but this code is not working on chrome or safari.
in chrome or safari the GIF loading is stop animation.
i used This GIF for Loading.
http://4.bp.blogspot.com/-j9gMlFkdLvw/Tp1ZdBf0L5I/AAAAAAAAA6c/igXiNrSqqgA/s400/loading-gif.gif
Please check this is working in Mozila but chrome and safari is not animated is stop animation.
Thank you.