[jQuery] the best way to get live data

[jQuery] the best way to get live data

Excellent, thank you!
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Jake McGraw
Sent: Thursday, February 08, 2007 5:22 PM
To: jQuery Discussion.
Subject: Re: [jQuery] the best way to get live data
Paul, you can use the window object, specifically the
window.setInterval() function, in combination with one of the Ajax
abstraction methods:
var requestInformation = function () {
$.getJSON(url,input,function(output){
$("#infobox").empty().append("

"+output.data+"

");
});
}
// Request information every 6 seconds (6000ms)
window.setInterval(requestInformation,6000);