This is an inherent problem (or function) with http - there are no strong connections (not real). you need a workaround, there is no real solution.
you could do it using java or flash, but this is not very nice (javascript 4tw!).
another possibility would be to create an intermediate client that transfers the connections between the browser and the web server to the connections between the web server and the jabber server. dirty but possible.
or maybe there is an API that helps with this.
jabber- javascript
, , -, , -html ( greasmonkey ). , , . jabber-, chatpage-html , . , , . mozilla, COMET . , .