facebook

change the labels of the combobox at runtime: DUP

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #339709 Reply

    Publio Decio
    Member

    edit by support-octavio: question have been answered here: http://www.genuitec.com/support-genuitec/viewtopic.php?p=18229#p18229
    Do you have any idea of how to change the labels of the combobox at runtime?

    For example in the case of APP multi language.

    The example you entered does not work, i’ve the 2.5 dev-5.
    I entered my code 4 example

    Thank You
    Alessandro

    function Combo(container_id, comboData)
    {
    var lCombo = $(‘ac-mtchome-hidden-select-‘ + container_id);
    lCombo.remove(0);
    lCombo.length = 0
    lCombo.selectedIndex = 0;
    var noOfOptions = comboData.length;
    for (var i = 0; i < noOfOptions; i ++ )
    {
    var oOption = document.createElement(“option”);
    oOption.text = comboData[i];//item;
    oOption.value = i;
    lCombo.add(oOption);
    }
    }

    #339746

    Publio Decio
    Member
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: change the labels of the combobox at runtime: DUP

You must be logged in to post in the forum log in