I know there are thousands of examples on the internet, but I want for the script I already have to display a loading gif image while the data is retrievedd. My java knowled
//$(document).ready(function(){
// $("a").click(function(event){
// event.preventDefault();
// $("div").html("This is prevent link...");
// });
//});
$(document).ready(function(){
$("a").click(function(event){
event.preventDefault();
$.ajax({
beforeSend: function(){
$('#text').html("
Loading...");
},
success : function(){
setInterval(function(){ $('#text').load("cd_catalog.txt"); },1000);
}
});
});
});
[click to redirect][1]