×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    2

    How to Change input mode to "123" in XHTML

    Just wondering how to change the input mode to "123" in XHTML and WML

    I've try the following code but it does not change the input mode to "123".


    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" format="nnnnnnnn"/>


    Behaviour on 6600:

    1) user can still input character.
    2) error message will be prompted if invalid character is inputted when user want to exit the input box.

    Anyone can help ??? Thx !!!

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    23
    Maybe the 6600 only accepts the CSS like format

    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" style="-wap-input-format: 'NNNNNNNNNN';">

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    2
    Thx but It's not work ! I've tried

    1)
    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" style="-wap-input-format: 'NNNNNNNN';"/>

    2)
    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" style="-wap-input-format:NNNNNNN"/>

    3)
    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" style="-wap-input-format:N*"/>

    4)
    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" style="-wap-input-format:*N"/>

    5)
    <input type="text" name="userid" id="userid" size="8" maxlength="8" value="" style="-wap-input-format:*n"/>

    6) all the "*" , "n", "N" combination !

    but they all not work ! They can validate the input but can't change the input mode to "123"

    thx !!!!

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    12
    Hi daytai,
    The following code works on the 6600 :

    <input class="pincode" size="4" format="AAAA"/>

    with the WCSS instruction

    input.pincode{
    -wap-input-format: NNNN;
    }

    But it may depend on the version of the browser you have...

    Remi

Posting Permissions

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