Type "javascript:" into the address bar and it will show you the errors.
-----Original Message----- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: Friday, 24 October 2003 1:07 AM To: [EMAIL PROTECTED] Subject: [ cf-dev ] [Fwd: OT : Viewing DOM in Mozilla Firebird] Bah! Silence on the JS-Jive list.... Any thoughts anyone??? Regards Stephen -------- Original Message -------- Subject: OT : Viewing DOM in Mozilla Firebird Date: Thu, 23 Oct 2003 15:01:14 +0100 From: Stephen Moretti <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Anyone know of a DOM inspector for Mozilla Firebird??? I can seem to find one that works.... Basically I've got a JS error that I can't seem to see whats wrong and the code seems to work fine in IE. Below is the function. ClaimForm is the name of a form that exists and ChapterID is a select box in that form. The line marked with >>> in the function below is where I get "ChapterID is not defined" I just feel like Firebird must be thinking that the form isn't directly under the document or maybe its JS engine doesn't understand "with (....) " Any thoughts/suggestions? function fillsecondbox(selected_value){ // with == in the form with (document.ClaimForm){ if (selected_value != 0) { // If a real selection has been made // Set up the defaults and clear the Chapter Options NewOpt = new Option; var OptionCount = 0; >>> ChapterID.options.length = 0; // Add in a new top option NewOpt.value = 0; NewOpt.text = 'Select your chapter from the list >>'; ChapterID.options[OptionCount] = NewOpt; // Now loop through the query we converted to a couple of arrays and output the appropriate options for (var i = 0; i < ChapterQuery.chapterid.length; i++){ if (ChapterQuery.countrycode[i] == selected_value){ OptionCount++; NewOpt = new Option; NewOpt.value = ChapterQuery.chapterid[i]; NewOpt.text = ChapterQuery.chaptername[i]; ChapterID.options[OptionCount] = NewOpt; } } } } } Regards Stephen __________________________________________________ You may unsubscribe anytime by sending a blank email to [EMAIL PROTECTED] The message archives are at http://groups.yahoo.com/group/JS-Jive/messages Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
