Tag Archives: Ajax
Don’t Let the Door Hit You Onunload and Onbeforeunload
Many people attempt a last ditch effort to save page state in the browser by using the onunload or onbeforeunload events. This has been studied at great length by Patrick Hunlock, who uses the perhaps now common knowledge of using a Synchronous Ajax call to perform the page state save. Another use for the onbeforeunload [...]
Posted in Interface Design, JavaScript, Web Browsers Also tagged Gmail, Opera, Undo
Cross Domain XHR with Firefox 2
By now know you know that trying to do an XMLHttpRequest (XHR or AJAX) call to a domain that is different from the domain of the hosted JavaScript in Firefox will throw an exception. Error: uncaught exception: Permission denied to call method XMLHttpRequest.open If you don’t want a history of the past solutions, page down [...]
Posted in JavaScript, Web Browsers Also tagged Firefox
Wash your mouth out with SOAP and the YUI Connection Manager
Now you’ve done it. You watched an R rated movie while your parents weren’t looking and used some of your newfound acquired colorful language in front of them. Your mom goes for the Dial Liquid Soap, she’s going to wash that profanity right out of your dirty little mouth. Harsh? Maybe, but I couldn’t say [...]
Posted in JavaScript Also tagged SOAP, YUI


Emulating onhashchange without setInterval