×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    1

    *PN WAP/WML mask on input field

    Hello,

    I've detected that models 6030, 6230i and 5140i have an error in the web browser that allow users to input characters of any type in a field defined as Numeric and Password in a WAP page.

    The code i'm using is this (two versions):

    <input name="input3" value="123" maxlength="10" size="10" emptyok="true" format="*PN" />

    <input name="input4" value="123" maxlength="10" size="10" emptyok="true" format="*N" type="password"/>

    ¿Does anybody know about this issue?.

    Thanks.

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    2

    Smile Re: *PN WAP/WML mask on input field

    I ended up searching this group for the exact same problem with model 6060

    I have the same error in the web browser that allows users to input characters of any type in a field defined as Numeric.

    Example page here:

    http://www.envelopesystem.org/env/tr...=Entertainment

    This page works properly with my Openwave V7 Simulator. Does anyone else have success entering numeric values from their browsers?

    Does anyone know of a work-around??

    Regards,
    frasmus

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    2

    Re: *PN WAP/WML mask on input field

    Well ok then. Since the page I wrote is not valid XML markup, could someone point me to a page (Any Page!) that contains an input field with a mask that forces numeric entry???

    I'm quite disappointed with this phone since it doesn't deliver the functionality I bought it for in the first place. Supposedly it has WAP 2.0. If it fails to comply with the most basic of things, forcing numeric characters, then what good is having a standard, I would like to know?

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    9

    Re: *PN WAP/WML mask on input field

    No matter how hard you try there are always some phones and browsers that won't obey the form rules in WML and in XHTML it's even worse..

    Better let user enter what they want but do the control on server side.




    ------------------------------------------------

    http://twilightwap.com
    http://prodigits.co.uk
    Last edited by ahmetozen; 2007-01-15 at 00:39.
    http://twilightwap.com
    http://prodigits.co.uk

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    Re: *PN WAP/WML mask on input field

    Unforunately al lot of browser do not obey the 'numeric' input fields. A trick you can use is to translate the input string serverside into numeric.

    e.g. if the user inputs 'adgj', this will be translated to '2345'
    Write a server side script that translates each letter from the alphabet and * and # into its numeric position of the mobile phone keypad.

  6. #6
    Registered User
    Join Date
    Mar 2005
    Posts
    9

    Re: *PN WAP/WML mask on input field

    -------------------------------
    http://twilightwap.com
    http://prodigits.co.uk

  7. #7
    Registered User
    Join Date
    Mar 2005
    Posts
    9

    Re: *PN WAP/WML mask on input field

    Quote Originally Posted by spectra1
    Unforunately al lot of browser do not obey the 'numeric' input fields. A trick you can use is to translate the input string serverside into numeric.

    e.g. if the user inputs 'adgj', this will be translated to '2345'
    Write a server side script that translates each letter from the alphabet and * and # into its numeric position of the mobile phone keypad.
    I don't agree, this method may cause a lot of confusion, let visitor change input type on his/her phone that's the easiest way for all

    ------------------------------------------------

    http://twilightwap.com
    http://prodigits.co.uk
    http://twilightwap.com
    http://prodigits.co.uk

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    Re: *PN WAP/WML mask on input field

    I also have fairly good results on most browsers (including Windows mobile) using the following syntax:

    <input type='text' name='phone' size='15' width='120' maxlength='15' istyle='4' style="-wap-input-format: 'NNNNNNNNNNNNNNN'" wml:format="NNNNNNNNNNNNNNN" format="*N" value='' onkeypress='if ((event.keyCode < 48) || (event.keyCode > 57)) event.returnValue = false;' />

    Note, this example is for numeric input of 15 digits. Change it accordingly

    Still, on some browsers it doesn't respect the numeric input. e.g. on Sony w950, it allows the first 'digit' to be any character..... but it's a start.

Similar Threads

  1. Replies: 2
    Last Post: 2006-01-31, 11:46
  2. Input field
    By kotse0 in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2002-09-06, 15:40

Posting Permissions

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