facebook

Combobox if else statement: CLOSED

💡
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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #339272 Reply

    paulD
    Member

    He everyone,

    Just wondered if anyone got a little example of implementing a if statement with a combobox? Ive got my combobox working well and transiting to screens nicely using

    var pageId = $(‘select[name=”combobox1″]’).val();
    phoneui.gotoPage(pageId);

    What i would like to do is fire a function based on the .val to run some animations on the gotoPage screens. Did some searching but didn’t come up with anything. You probably won’t beleive this but my javascript is getting better sloooooooooooowly. 🙂

    Thanks

    Paul

    #339278

    Brandon
    Member

    If you want to check the value:

    var pageId = $(‘select[name=”combobox1″]’).val();
    if (pageId == ‘m1-myScreen’)
    {
    phoneui.gotoPage(pageId);
    }else
    {
    //do this
    }

    #339283

    Stu Wade
    Member

    Can you not use the PostPageTransition function?

    If (this is a page that needs action)
    {code for the action};

    #339291

    paulD
    Member

    Thanks for the replys fella’s got it working with your help!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Combobox if else statement: CLOSED

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