CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2001
    Location
    UK
    Posts
    308

    Words after space is not showing in Text Box

    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
    Venu Bharadwaj
    "Dream it. U can do it!"

  2. #2
    Join Date
    Sep 1999
    Location
    Leeds U.K. (Proud to be Sheffield Born)
    Posts
    202

    value=-

    Are you using
    value=these words
    in the input tag?
    If so, you might find
    value="these words"
    more expedient.

  3. #3
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99
    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 />
    Zvona - First aid for client-side web design

  4. #4
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured