Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38

Thread: JavaScript Help

  1. #31
    Senior Member JPnyc's Avatar
    Join Date
    Jan 2005
    Posts
    2,734
    Ooops, I think you left out 1 reference to options:
    document.forms[0].elements[3].options[document.forms[0].elements[3].options.selectedIndex].value=='0'

  2. #32
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,915
    Originally posted here by JPNYC
    Ooops, I think you left out 1 reference to options:
    document.forms[0].elements[3].options[document.forms[0].elements[3].options.selectedIndex].value=='0'
    With that I get the no properties error again.

  3. #33
    Senior Member JPnyc's Avatar
    Join Date
    Jan 2005
    Posts
    2,734
    Ok, but leaving that aside, let's find out why the function doesn't work. COmment out the selectedIndex lines for now, let's get it to work one step at a time. In fact, you should really start with a single element validation and get that to work. When in doubt, simplify.

  4. #34
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,915
    Hey Hey,

    It's working.... I forgot to account for the hidden fields at the starm of the form... Now I just need to make it loop for each file uploaded but that should be simple enough

    Thanks for your help everyone.

    Peace,
    HT

  5. #35
    Senior Member JPnyc's Avatar
    Join Date
    Jan 2005
    Posts
    2,734
    AHA! Okie doke. Time to go out and pillage.

  6. #36
    Senior Member JPnyc's Avatar
    Join Date
    Jan 2005
    Posts
    2,734
    That also explains why the error on the dropdown box with the proper syntax. Because it wasn't referencing the dropdown element. Anyway, glad it works.

  7. #37
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,915
    Thanks for all your help.... it was greatly appreciated.

  8. #38
    Senior Member JPnyc's Avatar
    Join Date
    Jan 2005
    Posts
    2,734
    My pleasure. I don't get to do quite as much coding on the job as I'd like, so this is how I get my fill

Posting Permissions

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