Why are you passing a string to
Functions have been first class in JavaScript for a long time and you make use of that when you call jQuery's
Also, did you remember to check the browser's console for errors?
Note also this has nothing to do with the server; this code is only executed in the browser.
setInterval
instead of just passing the function (per the documentation)? That issetInterval(ajaxd, 1000);
Functions have been first class in JavaScript for a long time and you make use of that when you call jQuery's
ready
method.Also, did you remember to check the browser's console for errors?
Note also this has nothing to do with the server; this code is only executed in the browser.