Comet applications without using IFrames

I am just getting started creating an AJAX application using server side push. I am using Grizzly Comet on Glassfish V2. Almost all the sample applications use IFrames for updating content on the client side. I want to stick to using JavaScript only. Are there any such sample applications (preferably ones that do not use a JavaScript library)?

Answers


The point about the push is that the HTTP request never ends. Not all client implementations handle that correctly. As I see it, it's possible to do it with pure javascript in Firefox with its extensive API, but the XMLHTTPRequest object would timeout and would not be able to stream you the content.

IFrame is good, you could also try the object tag if its about standard compliance.

Before XMLHTTPRequest and Ajax had no name, we used to get data from the servers through IFrames.


Need Your Help

Jumping to a new HTML page with JavaScript

javascript redirect

In my HTML page, I need to check if Adobe Flash player is installed. If not, I want to automatically jump to another HTML page to tell the user that Flash player is required.

How do I set color to Rectangle in Matplotlib?

python matplotlib

How do I set color to Rectangle for example in matplotlib? I tried using argument color, but had no success.