×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2

    Numeric input in 3650

    Hi,
    I'm trying to define an input field that should accept numeric value in length upto 12 digits.
    I've tried adding format="*N" style="-wap-input-format:*N" to the input tag but this did not work.
    Any ideas ???

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    196
    Hi,

    you should use style sheet, but there is limitations, like valid values are only from "1N" to "9N" in case of numerics.
    .format_9n { -wap-input-format: "9n" }

    However, if the author wants to implement 10 numeric chars, it can be achieved by using format "NNNNNNNNNN" (type N ten times).

    If you need more than ten digits, you use "*n".

    BR,
    Pete

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    2
    Hi,

    Thanks for the info.

    Since I need a numeric value up to 12 digits, i've tried using the "*n" value. It does not work (when striking a key in the field, an alphabetic char is prompted).

    Any ideas ?

  4. #4
    Super Contributor
    Join Date
    May 2003
    Posts
    839
    Hello!

    Did you use that "*n" on the style sheet?!?

    .format_n { -wap-input-format: "*N" }

    I have tested, that it works.

    Br,
    Tum

  5. #5
    Registered User
    Join Date
    Sep 2003
    Posts
    4

    It is not true. -wap-input-format: "*N" does not work on Nokia 3650

    I have tried, and tried and tried implementing all the things mentioned above. But let's face it numeric input does not seem to work for me and the Nokia 3650. :-(

    I have attached a simple xhtml page containing the code. I can't see anything wrong with it, maybe one of you can?
    But the fact is that Nokia 3650 phone will not change the text input to numeric input.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
    <html>
    <head>
    <title>Nokia Numeric Input Test</title>
    <style type="text/css">
    .format_n {-wap-input-format: "*N";}
    </style>
    </head>
    <body>
    <form action="http://something" method="post" name="numericInputTest">
    <input class="format_n" size="7" value="" title="myTitle1" type="text" name="name11" />
    <input style="wap-input-format: *N" size="7" value="" title="myTitle2" type="text" name="name2" />
    </form>
    </body>
    </html>

    What am I doing wrong???
    Last edited by farfanukel; 2003-10-16 at 14:36.

  6. #6
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    334
    Hi!

    I tested your code with my Nokia 3650 and first input field

    <input class="format_n" size="7" value="" title="myTitle1" type="text" name="name11" />

    seemed to work ok.

    Can you please provide more information?


    Kind regards,

    sami / Forum Nokia Developer Support

  7. #7
    Registered User
    Join Date
    Sep 2003
    Posts
    4

    RE: More information

    What kind of information would you like me to provide to you?

    I just find it very, very strange that the same code exucetes diffenrently on same type on Nokia Phone.

    But please let met know what other type of information tou need, because i would really like to get this functionality working on my phone.

    Thank you in advanced.

  8. #8
    Registered User
    Join Date
    Dec 2003
    Posts
    4
    Strange - I uploaded this exact test to my server and I get a "REPLY UNKNOWN" error when I try to browse to the code...

    What causes this error?

Posting Permissions

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