[Solved]Load event question
Hi,
Sorry for the simple title, it's kind to descripe in a few words
I have a code that loads the content from a page.
Works fine, but i want that is: if the page content is nothing dont do anything otherwise go fuhrter.
Tha Coda:
-
function StartChecker(user) {
setInterval( function() {
$('<div class="DGM_request" />').load('check_request.php?id='+user, function() {
//if(this !== ''){
$('div .DGM_request').remove();
$(this) .hide()
.appendTo('#request')
.slideDown(1000);
//}
}
);
return false;
}, 5000);
};
Thx,
Dimby (Noob:D)[/code]