facebook

Event handler for TABBar Button Not triggering – CLOSED

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

    Hello Support,

    I have an event handler declared to capture onclick for the TABBar button#1:

    
    $("#m1-iASC-tabBar1-page1").on({
        click:function(){displayAward();},
        blur:function(){TINY.box.hide();}
    });
    

    It works great in the Test Center. However it will not trigger in the iPhone.

    To verify my code, I created a button and I am calling the displayAward() from it to make sure it works and displays. That part also works OK on the iPhone.

    I am using M1 ver 2.3.2(hot-fix 1, 20130425) in Win7 Home Premium
    It is happening in the Test Center and on the iPhone IOS 6.13
    It is happening on Android 4 Galaxy Note-II phone.

    Thanks for any help.

    TG

    #342941 Reply

    Hi TG,

    The issue is with the click event binding. Instead of that, I would suggest you to use the page change handler for MP widget: http://www.genuitec.com/mobile/docs/tabbedNavigation/images/page_change_actions.png

    i.e. In your On page change set the if – else sentences to know what multipage page is active and fire the appropriate action:

    var page = $(newPage).attr("id");
    var prefix = "m1-Myapp-";
    
    if(page==prefix+"page1"){
        callFunctionForPage1();
    }
    //and so on
    
    #342966 Reply

    You are a life saver Octavio.
    This worked like a charm.

    Thanks, TG

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Event handler for TABBar Button Not triggering – CLOSED

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