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.

Dieser Beitrag wurde unter Software abgelegt und mit , , , , verschlagwortet. Setze ein Lesezeichen für den Permalink.

Ein Kommentar zu 20 min. to charge to Gates

  1. Orlando sagt:

    SELFHTML: window.open() sagt:

    »2. Fenstername = Ein Name, der aus Buchstaben, Ziffern und Unterstrich bestehen darf.«

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert