My browser sends keep-alive async calls to the server every 20 seconds using window.setTimeout(). The problem: when alert() pops out, the AJAX calls are suspended. If the user waits a while before dismissing the popup – the server will (wrongly) close the login session.
We use alert() to popup error messages, and I can’t use other methods since this is the product definition.
Any way to workaround this? Thanks
alert()as well asprompt()all block the UI thread which means all other operations get suspended.I suggest you use modal windows instead, like the ones in jQueryUI.