20 min. to charge to Gates
Two days ago I installed the Gallery photo gallery project on a friends web site, together with a small patch to allow to send photos directly to lab here in Switzerland.
Today he calls me to tell there’s a Javascript error when one tries to add a photo to the cart for the added photo lab. Turns out that this only happens in Internet Explorer.
After debugging the faulty line on the basis of a very meaningful Javascript error message (‚Invalid argument‘), I finally figured out that IE, unlike Firefox, doesn’t like blanks in the second argument for the window.open() function, which is the window name. I really like stuff like that.
Note: Amazingly selfHTML doesn’t mention this special behaviour on the window.open() syntax, a site that I often use as a reference and has – up until now – always been helpful. Well, nobody is perfect.