Discussion Board
-
How to Change input mode to "123" in XHTML
2004-05-25, 10:25
#1
Registered User
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 !!!
-
Registered User
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';">
-
Registered User
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 !!!!
-
Registered User
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
-
Forum Rules