Crew Ajax/REST |
|
Je kan dit bereiken met:
function gettrain(trainid){
jQuery("#"+trainid).load("loadTrain.php?track=2");
};
jQuery(document).ready(function(){
var train<?php echo($iUniqueID); ?> = setTimeout("gettrain(<?php echo($iUniqueID); ?>)",6000);
});
function gettrain(trainid){ jQuery("#"+trainid).load("loadTrain.php?track=2"); }; jQuery(document).ready(function(){ var train<?php echo($iUniqueID); ?> = setTimeout("gettrain(<?php echo($iUniqueID); ?>)",6000); });
Geparst wordt dit zoiets:
var train9189 = setTimeout("gettrain(9189)",6000);
var train9189 = setTimeout("gettrain(9189)",6000);
|