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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidden field for 'value=' is truncated

Status
Not open for further replies.

nancyredig

Programmer
Dec 6, 2000
4
US
I have 2 frames...one with hidden fields passed from form to form. This final form needs to allow for one last edit. The hidden.Name.value will display using 'alert' all characters and the length is OK. But the following only displays up to the first space. In other words, the input of ' Somebody Fullname' will display (alert) as' Somebody Fullname' but the following only displays Somebody.


document.writeln(&quot;<TR><TD BGCOLOR='Blue'><B><font color='white'>Name: *</font></B></TD><TD><INPUT name='Name' value=&quot; +hidden.Name.value +&quot; type='text' maxlength=50 size=30></TD></TR> &quot;)

Many grateful thanks for help!
 
try to do view source on the generated page
surprise !! if the name was &quot;somebody name&quot; you'll see :
<INPUT name='Name' value=somebody name type='text'>

obviously now you 'see' that what is missing is only a quote

<INPUT name='Name' value='&quot; +hidden.Name.value +&quot;' type='text'> will be better

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top