Click to See Complete Forum and Search --> : Words after space is not showing in Text Box
bharadwajrv
September 19th, 2002, 12:30 AM
Hi,
while displaying the string( it contains 3 to 4 words saperated by space) in text box using <input type=text>
it is skipping all the words after the first space.
how to display a string of more than one words in the text box
thanks in adv.
Venu
Surrendermonkey
September 19th, 2002, 03:30 AM
Are you using
value=these words
in the input tag?
If so, you might find
value="these words"
more expedient.
Zvona
September 19th, 2002, 09:33 AM
Once again, this is a decent example, why every value of an attribute should be included in quotes :
<input type="text" value="Foo Bar" />
<input type=text value=Foo Bar />
websmith99
September 23rd, 2002, 04:07 PM
I agree with Zvona, in that it's important to be XHTML compliant. It's cleaner, and avoids issues such as this.
Here's another example. If you are using JSP in your architecture then you are familiar with the <% and %> delimiters for server-side scriptlets nested within client side code on your .jsp files(same principle as in ASP).
Well, some versions of the WebLogic app server parser will choke when it comes across the following:
<td width=15%>
It might misinterpret the %> to be a closing JSP delimiter, and cause an exception since there wasn't a matching opening delimiter. Now, if you had done:
<td width="15%">
Then you wouldn't ever run across this bug.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.