Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Debugging Errors -- a conundrum -- I think Date: Mon, 20 Jan 2014 16:02:14 -0700 Lines: 67 Message-ID: References: <52dd55dd$0$6554$9b4e6d93@newsspool4.arcor-online.net> <52dd809b$0$6547$9b4e6d93@newsspool4.arcor-online.net> <52dd8824$0$6563$9b4e6d93@newsspool4.arcor-online.net> X-Trace: individual.net 7vtd8+oy3JeMTn7a6XIagwwXbRw38RCAUxnusIYQQq0GGaF/yj Cancel-Lock: sha1:q1bQkitOJzq5y9Pc5FeeLZFQH9k= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response Xref: csiph.com comp.lang.javascript:22732 Hi All: Except for some simplifying text and id changes, the code below represents the actual code I'm testing. -Mel ************************************** // Here is the element. // the var optselindex is a global. // // the onclick clause is what is killing my IE8 test. // (unless I place a standard alert() in the function) // // the Alert() calls you see below are my own. In the // tests, I never act on them. . . . . etc . . function chkoptsel(elobj) { var el ; // alert("Commenting this reveals the 'hang' error for IE8") ; if (!elobj) elobj = this; el = elobj ; optselindex = el.selectedIndex ; if (!lgotdate) { Alert("~~~You must Select and Accept a DATE First. !") ; el = getobj("idate") ; el.focus() ; return false ; } if (optselindex === -1 ) { Alert("~~~Please Select a Option before Continuing.") ; el.focus() ; return false; } // when F12 brings up IE Dev Tools, this next shows in the log // if it is not activated nothing is logged, and // no crash or artifact is displayed. console.log("optselindex="+clubselindex) ; return true ; } **************************