Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <3221544.VYG4icSqfp@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 17 Dec 2012 15:33:11 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <24673781.rTodiTUJqZ@PointedEars.de> <50cf2add$0$6910$e4fe514c@news2.news.xs4all.nl> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 48 NNTP-Posting-Date: 17 Dec 2012 15:33:12 CET NNTP-Posting-Host: ef5d72b1.newsspool3.arcor-online.net X-Trace: DXC=Z1lk@CXVe16kUFX=Y?aLP;McF=Q^Z^V384Fo<]lROoR18kFDZm8W4\YJNhYTWd=k8dQ "Thomas 'PointedEars' Lahn" schreef in bericht > news:24673781.rTodiTUJqZ@PointedEars.de... It is supposed to be a attribution _line_, not a novel. >> Tom de Neef wrote: >>> Can someone indicate what I do wrong here: >>> {code} >>> [.] >> >> Your code is hardly readable and you are not posting the real code. You >> are indenting your code, but it is missing whitespace in important places >> to that effect. Also you should not be commenting out lines that are not >> commented out when the code fails to do what it should do. > > I do not understand. This is cut&paste from the *.js file. So much the worse. > I see a good layout, also in JJ's respons. I can assure you that your opinion of what is “a good layout” differs from that of many, if not most, professional programmers, for good reasons. > This code should be working without the try..catch clause. Who knows. I would not take the time to decipher it. > I put it there hoping to find out more about the error. And although FF > will enter the catch, it does not reveal to me why it did that. > I have tried to put a demo together. But the anomalous behaviour does not > show up in a simple program. Which indicates that the not so simple version is erroneous. Rewriting it in an easily readable way may reveal the problem already. Certainly it will make your posting and your problem more interesting to others. PointedEars -- var bugRiddenCrashPronePieceOfJunk = ( navigator.userAgent.indexOf('MSIE 5') != -1 && navigator.userAgent.indexOf('Mac') != -1 ) // Plone, register_function.js:16