Tag Archives: Ajax

Emulating onhashchange without setInterval

There is one limitation that all of the major JavaScript browser history management plugins have to hack around: How to tell when there is a change to the location.hash? Sure, you can tell when you’re modifying the hash yourself, but what if the user hits the back/forward button? YUI’s History component and Really Simple History [...]
Posted in JavaScript | Also tagged , |

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 , , |

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 |

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 , |