We are developing an `HTML5` chat client using `strophe.js` along with `flxhr.js` & `strophe.flxhr.js`. The later js file injects a swf file in the DOM at runtime. Its through this flash it tries to overcome JavaScript’s same origin policy issue.

We also intend to access this chat client via touch devices, iOS & Android & desktops as well. Its clear the modern devices won't have flash available & if the desktop browsers have disable the flash player, then this approach won't work.

Could any one suggest an alternative approach to develop a pure JavaScript Jabber client or is there any another way to achieve this using strophe.js or its variant. Any help would greatly appreciated.