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. 🙂 ^_^