×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    3

    Problem web view tag "select" - Meego

    Hi

    I have a big problem with my QML Application
    When I select any option in "select" tag of webivew, not work ? I´m using N9 for tests.
    I tested for Symbian^3, it works. Any idea ?

    Thanks

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Problem web view tag "select" - Meego

    What do you mean with "select" tag?

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    3

    Re: Problem web view tag "select" - Meego

    gnuton,

    Follwing my example:

    <select onchange="setParcel()" id="ddlListaParcelas" name="ddlListaParcelas">
    <option value="">Digite a quantidade de parcelas acima</option>
    <option value="">1</option>
    </select>

    I think that my problem is a javascript. Only not understand why in Symbian^3 it works without problems.

    Thanks.

  4. #4
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Problem web view tag "select" - Meego

    Ok you meant the HTML tag. In theory JS code should work on MeeGo too.
    Could you show us a minimal working code?

  5. #5
    Registered User
    Join Date
    Dec 2011
    Posts
    3

    Re: Problem web view tag "select" - Meego

    gnutton,

    My JS ...

    function somenteNumeros(id, e)
    {
    var ddl = document.getElementById('ddlListaParcelas');
    var key;
    var achou = 0;
    if(id.value > 0 && id.value < 25 && isNaN(id.value) == false)
    {
    for (var i = 0; i < ddl.options.length; i++)
    {
    if (id.value == (ddl.options[i].value.split('|')[1])) {
    ddl.options[i].selected = true;
    achou = 1;}
    }
    if (achou == 0 && id.value > 0)
    {
    id.value = ddl.options[ddl.options.length - 1].value.split('|')[1];
    ddl.options[ddl.options.length - 1].selected = true;
    }
    else if (achou == 0)
    ddl.options[0].selected = true;
    }
    else if (id.value != '')
    {
    ddl.options[ddl.options.length - 1].selected = true;
    id.value = ddl.options[ddl.options.length - 1].value.split('|')[1];
    return true;
    }
    else
    {
    ddl.options[0].selected = true;
    return false;
    }
    }
    function setParcel()
    {
    var ddl = document.getElementById('ddlListaParcelas');
    var txt = document.getElementById('txtParcela');
    for (var i = 0; i < ddl.options.length; i++)
    {
    if (ddl.options[i].selected == true)
    {
    txt.value = ddl.options[i].value.split('|')[1];
    }
    }
    }

    Thanks

  6. #6
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Problem web view tag "select" - Meego

    Do you get any error message? is the txt variable null?

Similar Threads

  1. ERROR: module "com.nokia.meego" is not installed
    By WilburWoo in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-11-11, 02:26
  2. Replies: 3
    Last Post: 2011-08-25, 11:42
  3. "Installation failed!" and then "Select Access Point" dialog pops up
    By stolik in forum [Archived] Nokia Smart Installer for Symbian
    Replies: 5
    Last Post: 2011-03-05, 00:31
  4. avoiding "select access point" message"
    By oyuky in forum Symbian
    Replies: 4
    Last Post: 2008-05-30, 14:32
  5. how to change text of "select" and "cancel" button of menu system
    By bigboy0918 in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-11-21, 06:44

Posting Permissions

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