Created
November 15, 2013 21:09
-
-
Save EstebanFuentealba/7491675 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.ajax({ | |
url:"http://servel.biobiochile.cl/api/2013/presidente/PRE.json?callback=?&r="+Math.random(), | |
dataType:"json", | |
jsonpCallback:"PRE_BBCLServelRefresh", | |
success:function(json){ | |
if(json.continue) { | |
/* acá codigo */ | |
timerServel = setTimeout(fnServelUpdate, optionsServel.timer); | |
} else { | |
clearTimeout(timerServel); | |
timerServel = null; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment