Solved

input box does not appear in NN

Posted on 2000-04-07
6
205 Views
Last Modified: 2010-04-09
I have some html that works with IE5 , but not NN 4.72
The problem is that the text input box does not appear in NN.
Can someone tell me what is wrong?

<html>
<head>
<title>TextField</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table>
 <b>TextField</b>
 <input id="textField" type="TEXT" name="textField" value="" size=10 maxlength=10>
</table>
</body>
0
Comment
Question by:omom
6 Comments
 
LVL 1

Accepted Solution

by:
hkmdj earned 50 total points
ID: 2694758
Netscape requires the use of a form tag around any input.  Change it to be:

<table>
<b>TextField</b>
<form name="myform">
<input id="textField" type="TEXT" name="textField" value="" size=10 maxlength=10>
</form>
</table>
</body>

Also, if this doesn't work in Netscape, place the form tags outside of the table.

I know Netscape desires the tags for the input.

David Johnson
http://davidj.org/
0
 

Expert Comment

by:yolish
ID: 2695017
You are missing the tr and td tags for the table... You put those in and it should work...

<table>
<tr>
<td><b>TextField</b></td>
<td><form name="myform">
<input id="textField" type="TEXT" name="textField" value="" size=10 maxlength=10></td>
</tr>
</table>
</form>

</body>

0
 
LVL 1

Expert Comment

by:Subhuman
ID: 2695333
I've seen a page that's missing a text field in NS only, I've looked at the source several times, and it is as it should be, so maybe this problem is a little more complex than it appears at a first glance.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Expert Comment

by:chsoh
ID: 2695363
yes hkmdj is correct, NS need a form tag !
you can just change the <table> tag to <form> tag
is the most simple way too !!
0
 

Author Comment

by:omom
ID: 2705384
hkmdj,
You are correct!

Which would be better:
1. Use one pair <form>...</form> for everything
2. Use a pair of  <form>...</form> for each input

Lock if you want the points.
Thanks.
0
 
LVL 1

Expert Comment

by:hkmdj
ID: 2705504
One pair of form tags for everything should do it.  It would depend on what your form is doing for you.  There are two important attributes to the form tag, they are method and action.  More often than not, the method is post and the action is the name of the page to post the info to.

I would still throw some <tr><td></td></tr> tags in there to keep your code clean for IE and NN.

Have a great night!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question