facebook

On Page Change

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

    Kendra Mavis
    Member

    Hi, I’m a newbie and i’m using mobione on making my app.

    I’m making a function that will change the image of my tab bar once the Home page of my multipage is active and will change again once the other page is active. I’m having trouble with my web app using mobione.

    my problem is i don’t know how to call the active page that’s being click on the tab bar.

    Is there any code that will call the active page that’s being click on the tab bar?

    I have this code, but it’s not working i think there’s something wrong on the condition or the variable declared:

    var activePage = $(newPage).attr('Home'); //Home is the id of the page on multipage
    if (activePage == 'm1-multiPage1-Home') {Home is the id of our page1 of our multiPage1
    //some other code
    }else if (activePage == 'm1-multiPage1-About') {  //About is the id of our page2 of our multiPage1
    //some other code
    }else if (activePage == 'm1-multiPage-ContactUs') {ContactUs is the id of our page3 of our multiPage1
    
    //some other code
    else{
    
    //some other code
    }

    Is there someone who could help me to achieve this, I’m having a hard time figuring stuff. 🙁

    Any reply will be appreciated. 🙂 ^_^

    #350497 Reply

    Code_A
    Member

    Is this a double post? viewtopic.php?f=8&t=7438

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: On Page Change

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