|Subject:||Re: Netscape hidden fields - array - multiple fields with same name|
|Posted by:||Mark S Reichman (mark.reichm…@rl.af.mil)|
|Date:||Thu, 17 Jul 2003|
I figured this out... Please disregard..... Happy days again... -
> First off.. Thanks to Grant Wagner for help in a previous thread
> related to this one.
> I am at a total loss... I have multiple fields in a form with the
> same name. Lets call the fields with the same name "junk_array". My
> first field of junk_array is a input type=hidden. All the others
> fields in junk_array that follow are type=text. I can reference this
> first hidden field in IE with document.form.field.value. In, fact
> my form works absolutely wonderful in IE 6. However, netscape 4.7
> does not recognize my first field in the array as the hidden field.
> Netscape sees the first visible text field as the first field in the
> array, subscript 0. What totally and utterly perplexes me, is that,
> from a previous thread, I can do this and get 9999 back in an alert
> box in Netscape and IE. So, this proves Netscape doesn't have some
> evil code that disregards hidden fields. I guess...
> <body onload="alert(document.myForm.test.value);">
> <form name="myForm">
> <input type="hidden" name="test" value="9999">
> <input type="hidden" name="test" value="8888">
> <input type="text" name="test" value="6">
> <input type="text" name="test" value="3">
> I even copied these fields directly below the opening <form> tag in my
> form and both Netscape and IE see the first hidden field as as
> subscript 0.
> However, my form is much more complicated. I have tables within
> tables and about 30 other fields. In my form I cannot for the life of
> me get Netscape to recognize the first hidden field of junk_array to
> zed as index 0.
> Somehow, If I make the first type=hidden fields visible, netscape does
> work nicely. Why when I toggle type=hidden to type=text does Netscape
> cooperate. What is happening here? Anyone else have this problem with
> hidden fields in Netscape? I could post the code to my form but it is
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
Netscape hidden fields - array - multiple fields with same name posted by mark.reichm…@rl.af.mil on 17 Jul 2003