SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape crash: form.elements[16].options[1].value

    Netscape Just dies after reading this. It sends an error to the os and the os destroys the app.. Anyone else have a way to get this information without accessing it through the way above? I tried dumping it into a stack and setting a value and then pushing it back into the options array but it did the same.


    Thanks,

    brett

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If "form" is the name of the form then it should be document.form, but otherwise you should be able to access the value that way without netscape crashing.

  3. #3
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, what is the exact version of netscape you are using.

    this is what I put in:
    alert(document.report.elements[16].options[0].value);
    this still crashes netscape.

    It understands that
    document.report.elements[16].options[0] is an option object but its properties just don't work:
    this is what I have for a select statement:
    <select name="involved[]" multiple size=3>
    <option> something1
    <option> somethingelse2
    </select>

  4. #4
    SitePoint Evangelist goughb's Avatar
    Join Date
    Sep 2000
    Location
    Chicago
    Posts
    526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, note to self. When doing large forms double check for all </select> lines before starting javascripting.

    Thank you Anarchos!


Bookmarks

Posting Permissions

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