Moin Moin!
uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"
Kann ich das irgendwie ohne try-catch abfangen?
Warum willst Du auf Krampf try-catch vermeiden? Weil es nicht in die if-Bedingung paßt? Doch, es paßt dort hinein, über den Umweg einer Funktion, die die eigentliche Abfrage in try-catch verpackt und entweder true oder false zurückliefert, im Exception-Fall bei Deiner Konstruktion natürlich false.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so".
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so".