javascriptjqueryajaxclient

JavaScript: Get updates from server?


Is there a way to get constant AJAX updates from the server, other than querying it constantly with setInterval?


Solution

  • Unfortunately, not really. The server can send data as much as it likes, but the client has to read that, and that has to be checked contantly. You could embed seperate pages that would do the checking for you, but you can't get a request to trigger the check.