Tuesday, 10 September 2013

jQuery mobile footer toolbar keep resetting

jQuery mobile footer toolbar keep resetting

Recently I started to dig into jQuery mobile UI. It seems that I can
create multiple "pages" in one file and a floating navbar which is very
nice. However, when I click on the buttons on the navbar, it does bring me
to the new page, but the navbar also resets itself.
I think the problem is because I need to put the HTML for the navbar to
every <div> page I have (sub-question: Is it necessary that I have put
multiple copies of the navbar in each of the page? Because it seems very
redundant.)
http://jsfiddle.net/DerekL/9tgF6/
Try clicking on the "About" button and the "new" navbar appears and
replaced the old one.

No comments:

Post a Comment