Category: Code

  • JavaScript Tricks And Good Programming Style – Original Version

    Note that there is an updated version I have been programming for about 10 years now, and I am always longing for improving my code. Throughout time I added a few habbits that I consider to be good practices and increase the quality of my code. In a loose series I’d like to point out…

  • Firefox 1.5, XmlHttpRequest, req.responseXML and document.domain

    Recently I have been working on a web application, extending it with an iframe on another subdomain. When you set up communication with an iframe on another subdomain, it works by setting document.domain in both pages. Pretty nice and straight forward. But it can mess up the rest of your page. As soon as you…