What does "refresh" mean? Re-insert data into the element? If so, you
only need:
$("#records").html('put whatever you want here');

To refresh every 5 seconds, you can use Javascript's setInterval()
function.

function doRefresh() {
     $("#records").html('put whatever you want here');
}

setInterval(doRefresh, 5000);

On Mar 26, 6:06 am, Progressed <da...@progressive-projects.nl> wrote:
> I have a DIV  with a php query in it. i'd like to get pointers to
> maybe 2 solutions.
>
> Ideal situation:
> I have a other jquery script that launches an onComplete like:
>
> 'onComplete': { }
>
> basicly i want to let it do a refresh on <div id='records'> #My sql
> query# </div>
>
> other situation
>
> I want to refresh this DIV every 5 seconds.
>
> Can someone help me pleaaaase!
>
> D.

Reply via email to