Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22732
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Debugging Errors -- a conundrum -- I think |
| Date | 2014-01-20 16:02 -0700 |
| Message-ID | <bk5o7pF84cqU1@mid.individual.net> (permalink) |
| References | (3 earlier) <bk5d0fF5n94U1@mid.individual.net> <52dd809b$0$6547$9b4e6d93@newsspool4.arcor-online.net> <bk5es2F645gU1@mid.individual.net> <52dd8824$0$6563$9b4e6d93@newsspool4.arcor-online.net> <bk5mijF7pdgU1@mid.individual.net> |
Hi All:
Except for some simplifying text and id changes, the code below
represents the actual code I'm testing.
-Mel
**************************************
// Here is the <Select> element and its options
// Only the actual ids and text have been changed
// the function shoaccoptbutt() simply enables a disabled button
// the function setFocusColor() only sets the color and
// background of the <select> 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.
.
.
<select id="uselectclub" style="margin-top:8px" name="selectclub" size="4"
onfocus="setFocusColor(this);shoaccoptbutt(true);"
onclick="chkoptsel(this);">
<option id="iopt1" value="41388">Test Option 0</option>
<option id="iopt2" value="41419">Test Option 1</option>
<option id="iopt3" value="56080">Test Option 2</option>
</select>
.
.
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 ;
}
**************************
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-20 09:48 -0700
Re: Debugging Errors -- a conundrum -- I think Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-20 17:59 +0100
Re: Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-20 10:45 -0700
Re: Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-20 12:50 -0700
Re: Debugging Errors -- a conundrum -- I think Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-20 21:01 +0100
Re: Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-20 13:22 -0700
Re: Debugging Errors -- a conundrum -- I think Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-20 21:33 +0100
Re: Debugging Errors -- a conundrum -- I think Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-20 21:42 +0100
Re: Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-20 15:33 -0700
Re: Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-20 16:02 -0700
Re: Debugging Errors -- a conundrum -- I think Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-21 00:28 +0100
Re: Debugging Errors -- a conundrum -- I think Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-21 06:01 +0100
Re: Debugging Errors -- a conundrum -- I think "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-21 08:47 +0100
Re: Debugging Errors -- a conundrum -- I think Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-21 13:01 +0100
Re: Debugging Errors -- a conundrum -- I think John Harris <niam@jghnorth.org.uk.invalid> - 2014-01-22 15:18 +0000
Re: Debugging Errors -- a conundrum -- I think Norman Peelman <npeelman@cfl.rr.com> - 2014-01-21 06:13 -0500
Re: Debugging Errors -- a conundrum -- I think "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-21 10:01 -0700
Re: Debugging Errors -- a conundrum -- I think Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-20 21:37 +0100
csiph-web