Implementation COMET in PHP Using Prototype JS and ExtJS
Implementation COMET in PHP Using Prototype JS and ExtJS
Good Morning:
I would like a recommendation or an example regarding the implementation of Prototype JS with ExtJS 3.3.0 in order to create a Web Application that uses COMET with PHP.
I've developed a Web Application that currently handles PHP Sessions in order to control how many users are logged in the system.
Some users and co-workers have given me some suggestions about clearing user sessions by closing the browser (clicking on the "X") since I have experienced a couple of minor inconveniences with users not finishing their sessions correctly.
After reading this response I was able to get an example that uses COMET with PHP using AJAX in order to create a little chat ( http://www.zeitoun.net/articles/comet_and_php/start ). The example uses Prototype JS to establish a communication interface by creating a simple form and having a PHP loop procedure running indefinitely during the whole page load. If you download the sample code and run it in Firefox, you can activate Firebug to confirm the continuous connection to the php script.
Since ExtJS 3.3.0 offers a way to use other JS libraries like Prototype, does anyone can provide me an example or sample code that I can use as a reference to combine both libraries in order to implement COMET?
Any advice or recommendation will be well appreciated.
Actually the ExtJS Library that I downloaded includes adapter for jQuery and Prototype. However the examples provided do not include samples using those adapters.
Which other solution would you recommend besides COMET?