Reputation: 165
I don't know why the function .hide()
is not hiding my div #cargando
when the div #tabla
finishes loading.
<script>
$(window).load(function () {
$(function () {
var url = this.href;
$("#tabla").load(url, function () {
$('#cargando').hide();
});
});
});
</script>
Upvotes: 0
Views: 81
Reputation: 184
Are You sure that request returns correct response ? Not sure why You are using this.href (href of what ? If site url it would be window.location.href). Install firebug - it will give You full console/network debug informations. Answer for Your question: for 99.9% it's response of "load" function problem.
Upvotes: 5