What specific use cases call for BOSH over WebSockets and long-polling? [closed]

First let me address WebSockets readiness: WebSockets implementation of the Hixie-76 protocol are shipped and enabled by default in Chrome, Safari and iOS (iPhone and iPad). The Hixie-76 protocol is also shipped but disabled by default in Firefox 4 and Opera 11. The web-socket-js project is a Flash shim/polyfill that adds WebSocket (Hixie-76) support to … Read more

Django / Comet (Push): Least of all evils?

I’d take a look at evserver (http://code.google.com/p/evserver/) if all you need is comet. It “supports [the] little known Asynchronous WSGI extension” and is build around libevent. Works like a charm and supports django. The actual handler code is a bit ugly, but it scales well as it really is async io. I have used evserver … Read more

Stopping a iframe from loading a page using javascript

For FireFox/Safari/Chrome you can use window.stop(): window.frames[0].stop() For IE, you can do the same thing with document.execCommand(‘Stop’): window.frames[0].document.execCommand(‘Stop’) For a cross-browser solution you could use: if (navigator.appName == ‘Microsoft Internet Explorer’) { window.frames[0].document.execCommand(‘Stop’); } else { window.frames[0].stop(); }

Simple comet example using php and jquery

You should use polling, or use a web server which is specially conceived for long requests and COMET, with a good JS backend: function listen() { $.get(“/mylongrequestfile”, {}, function(data) { $(“#mydiv”).html(data); listen(); // then launch again })); }; Remember that COMET is “wait for data, if there’s data return and exit”, so JS backend will … Read more

How do modern implementations of Comet/Reverse AJAX work? Any stable C# WCF or ASP.NET implementations?

I have hear about, WebSync and PokeIn, both are paid implementations, I have used PokeIn and its pretty straight forward. If you are looking forward to code your own COMET implementation, I just can say that its a complex task, because you need to modify the natural behaviour if IIS. Its a hacky way to … Read more