Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextBox Values in Netscape

Status
Not open for further replies.

thisguy

Programmer
Jan 29, 2003
9
US
I was just wondering if anyone has run into this problem before.

I am trying to set the value of a textbox, to a PHP variable. Everything works correctly in IE, but not in Netscape.

In Netscape when the page loads it appears as if there is nothing in the textbox, but if you place the cursor in the box it is as if the cursor is sitting at the end of the value (but the value is not visible). Now if the user types one keystroke in the textbox, the original value set by the PHP variable appears; along with the key typed by the user.

I then went and checked the page source in Netscape, and it all reads fine (the value of the variable is exactly where it should be, and the syntax is correct). I also cut that line of code out of the page source from Netscape, pasted it into a new HTML document and previewed it on Netscape, and it works.

If anyone has any ideas, or a place where I can find more information about this, please let me know.

Thanks in advance,
!ThisGuy
 
Version of Netscape?

How does it do in Mozilla and Opera?

My idea, is what my idea usually is with netscape... a tag improperly closed.

Are you using HTML or XHTML? Have you tried closing the input tag?

Does your tag look like?
Code:
<input type=&quot;text&quot; name=&quot;user&quot; value=&quot;Heya!&quot; />

If that is how you're filling in the field, and none of the other questions lead to anything useful you can always cheat and use javascript (obviouslly not 100% effective, but pretty close)

-Rob
 
The Version of Netscape I’m using is 7.02, and at the moment I am not running Mozilla or Opera.

I’ve checked the tags and everything looks good, I would post the code here, but it is really long and I’m not sure what is and is not pertinent to the problem.

On this page, I am using JavaScript to toggle the visibility of 8 different <div> tags depending on which link is clicked at the top of the page. I thought it might have to do with the z-index of the <div> tags, but it is just a hunch.

I could use JavaScript to fill in the fields, but I think the problem goes deeper than that. After fooling around with it for a bit, I’ve also realized that once the focus is placed within one of the text boxes I cannot click anything else on the page unless I tab through the page and cause the focus to move elsewhere. I also have a text box where the value is hard coded and this value also does not appear in the box.

I am using an input field - type text. I’ve written the code to these fields as:
<input type=&quot;text&quot; name=&quot;user&quot; value=&quot;Subject&quot; >

Thank you both for trying to help with this.
!ThisGuy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top