[jQuery] Re: refresh a DIV

2009-03-26 Thread James
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'); } setInte

[jQuery] Re: Refresh a Div in a page (via a button)

2008-05-07 Thread Christoph Haas
On Mittwoch, 7. Mai 2008, chrbar wrote: > I'm looking for a code/script which allows the user to refresh (via a > button) a specific Div inside a Web page, without refresh the full > page. Use an (on)click event on a button that points to Javascript issuing a $.load from your backend to the DIV a