Skip to content

Instantly share code, notes, and snippets.

@xenda
Created February 8, 2009 19:44
Show Gist options
  • Save xenda/60475 to your computer and use it in GitHub Desktop.
Save xenda/60475 to your computer and use it in GitHub Desktop.
Brings data at some intervals
function traer_nueva_data(){
$.getJSON("/data/"), function(request){
//haces algo
}
}
setInterval(traer_nueva_data, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment