ejabberd - Comments for "Http-bind + JSJaC suspend/resume issue with Safari browsers" https://www.ejabberd.im/node/3668 en Hi. I'm playing around with https://www.ejabberd.im/node/3668#comment-59200 <p>Hi.<br /> I'm playing around with the simple client example in JSJaC and my problem is that every message gives me a new notification in PSI and does not continue in the same chat window.<br /> Any hints?</p> <p>Thanks!</p> <p>max95</p> Fri, 19 Oct 2012 11:06:13 +0000 max95 comment 59200 at https://www.ejabberd.im Fixed https://www.ejabberd.im/node/3668#comment-54675 <p>Nevermind, the problem was fixed.</p> <p>In case anyone is wondering, the problem was that JSJaC library works properly. It was just in the example, the author used onunload function to save the session cookie and send a request to pause the session.</p> <p>Problem was that this is ok with Firefox and IE, but will fail for Safari/Chrome. I guess for some reason, there are issues with onunload function in those browsers.</p> <p>Instead, to remedy this use window.onbeforeunload in place of onunload.</p> Tue, 22 Sep 2009 05:00:23 +0000 ag3nt911 comment 54675 at https://www.ejabberd.im