jquery - Why does this SetInterval code work for making Ajax requests? -
i have code:
setinterval(sendajax('search', 'q'), 100 * 10);
which thought work execute function sendajax(param,param) every 1 second.
however, not case. executed function once.
does know why occurs , solutions?
regards, taylor
i think have following:
setinterval("sendajax('search', 'q')", 100 * 10);
Comments
Post a Comment