RE: Netscape 4 not rendering Textboxes

by Francois de Beer <fbeer(at)sars.gov.za>

 Date:  Mon, 5 Jun 2000 08:58:56 +0200
 To:  "''hwg-techniques(at)mail.hwg.org ' '" <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Lets get back to the issue I had with the boxes...
The point is/was that if I put the textbox in a form, I can't reference it
with script coz I get its name/id/value by using:

<HTML id="theHTML">
Then I use a loop to run trough all the INPUT Tags and get their names/id's
with:

if (theHTML.all[i].tagName == 'INPUT')
	{
		//alert(theHTML.all[i].id); // to check the ID
		var varVal = theHTML.all[i].value;
	}

If these <INPUT>'s were in a form, the script would have to be:

	var varVal = formName.theHTML.all[i].value;

which doesn't work of course

So. Instead of arguing about what is correct and what is not, the issue
remains.
Is there a way to get the values out of <INPUT>'s on a page/in a form if
there is 20+ <INPUT>'s and you don't know their names, other than the way I
did it?

If there is no other way, then it sometimes will HAVE TO BE possible to use
<INPUT>'s outside a <FORM></FORM> ???

HWG hwg-techniques mailing list archives, maintained by Web Professional Association - IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.