> I'd like to rewrite so as to include the functions within the document
> ready part:
>
>  $(document).ready(function(){
>   //my functions here
>   });


$(document).ready(function() {
    getContent();

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

Reply via email to