I have a very simple long polling ajax call like this:
(function poll(){
$.ajax({ url: \"myserver\", success: function(data){
//do my stuff here
OK, my two cents:
At the end of the day, I recommend to using long polling if you are solving a business problem (and not because it is just cool) because then that will pay its costs and overheads and headaches.