Hi,

Here's a bit of code I have:

function getContent() {
$("div#content").load("content.php", '', reload);
}

function reload() {
setTimeout("getContent();", 1000);
}

$(document).ready(getContent);

I'd like to rewrite so as to include the functions within the document
ready part:

 $(document).ready(function(){
  //my functions here
  });

I've tried many different syntax, none worked.

Thanks in advance :)

Regards,

-jj.

Reply via email to