Results 1 to 10 of 10

Thread: String format

  1. #1
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question String format

    Hi I would like to format a textbox string to display a set of charecters rather than the actual text, how can I achieve that?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    huh?
    gotta explain more.

    you want to mask what someone is typing? you want to have it start with a value? you want???

  3. #3
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    huh?
    gotta explain more.

    you want to mask what someone is typing? you want to have it start with a value? you want???
    Yes! there you got it, it must start with a value

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    value="whoa, I'm controlling what it says at the start1!!!!1111"

    Like this:
    <input type="text" value="TEXT">

    random note: for text areas, it works slightly differently:
    <textarea>TEXT HERE</textarea>


    For both, it'll be there... the user can modify/delete/keep as is.


    There are some fancy ways in JS to make it just show up first (like "password") then dissapear after you click in it, but I don't know those, and doesn't seem needed... look them up if you want though.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I think you're missing the point.
    By far the best way to do this is <input type="password">. Using Javascript to show other characters is possibly, but not at all recommended.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah, that will mask the text you're typing. I'm still very unsure of what your asking...

  7. #7
    Join Date
    Apr 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    what I am asking is, I am editing a record set from the database, and the form that displays that record, one of the fields is for displaying a password, and when I change the TextMode property of that field to password, it does not display anything in that field.

    Try to drop a text field on the ASP form and make the Text property of that field to anything, and change the textmode to password then run the application to see.

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Totally didn't follow that. Maybe Twey will, or you can rephrase.

    Questions:
    1. Why?
    2. What?
    3. Can using password fields work?

    I'm still quite unclear on what your question actually is.

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    What's this "TextMode" property? An ASP form is (or should be) exactly the same as a normal HTML form.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah, I'm lost.

Bookmarks

Posting Permissions

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