Ever wanted to send request headers from jQuery instead of the “code-behind”? You can easily tweak the ajaxSetup object to do this.
Polling AJAX is tricky. If the next interval triggers before the last AJAX request is complete, your app is doomed!! This creates a domino effect where your queue for requests fill up faster then it can complete. Your queue will NEVER finish… similar to an infinite loop.