kindly have a look at this code:
$('a.load').click(function(){
setTimeout(function(){
$(".content_container").append('<div class="preloading"><img src="http://localhost:8888/smart/assets/images/loading.gif" alt="loading" /></div>').show();
var url = 'http://localhost:8888/smart/payments.html';
$.post(url,function(data){
$('.content_container').append(data).show();
$('.preloading').remove();
});
},1000);
});
the problem that it doesn’t return the required url, just the loading image only, it’s just html pages
I see you are referencing localhost:8888, are you running the above code on that same domain? If you are not then I suspect that you are falling prey to the Same origin policy