You can try something like...

function refreshRecordsDiv()
{
   $("records").fadeOut("slow");
   //ajax to refresh contents of records div, using one of jQuery's
ajax functions
   $("records").fadeIn("slow");
   setTimeout("refreshRecordsDiv();", 30000);
}

$(document).ready(function()
{
   setTimeout("refreshRecordsDiv();", 30000);
}


On Jan 26, 9:25 pm, Omid <omidda...@gmail.com> wrote:
> Hi,
>
> I`m using one portal that use YUI , but I`m not familiar with YUI ;
> So I`m looking for a solution with jQuery ;
> Problem : I have a <div id="records">#anything#</div> in my page
> layout .
> Now I need to refresh <div id="records"> #anything#</div> content
> after 30 seconds in a AJAX manner (without reloading browser) .
> Also I would like to have some animations (like FadeIn or FadeOut) in
> every refresh .
> Please guide me .

Reply via email to