Form not an object?!

Results 1 to 2 of 2

Thread: Form not an object?!

  1. #1
    Join Date
    Dec 1969

    Default Form not an object?!

    I&#039;m getting an error that I&#039;m not understanding why...<BR><BR>this line of code:<BR>document.form1.queuelist.options[a].text=direct_[a];<BR><BR>(where direct_[a] is an array.. and a is from a for loop.<BR><BR>but when the Javscript hits this line.. it tells me that it&#039;s not an object. form1 IS the name of the form, and queuelist is the name of a select box.. I&#039;m just not getting this error...<BR>

  2. #2
    Join Date
    Dec 1969

    Default Try this:

    alert(document.form1); // this should give you Object<BR>alert(document.form1.queuelist); // this should give you Object<BR>alert(document.form1.queuelist.options[a]); // this should give you Object<BR>alert(document.form1.queuelist.options[a].text); // this might be your problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts