JQuery Mobile Page Aliases -


is possible add aliases page in jquery mobile hash change either name cause page shown?

background
hello everyone, making mvc style jquery mobile app each page has own javascript controller. on jqms pagebeforeshow event relevant controller renders page using mustache template before shown.

in app have 3 jqm page containers in document body this:

<div data-role='page' id='profile'></div> <div data-role='page' id='editprofile'></div> <div data-role='page' id='register'></div> 

these pages use same controller , mustache template because have similar content creates lot of duplicate content after visit each page.

what prefer single jqm page loaded when hash changes either #profile, #editprofile or #register.

does know if jquery mobile supports or if there viable workaround?

thanks

you can use changepage transition page specified page id.

$.mobile.changepage ('#profile'); $.mobile.changepage ('#editprofile'); $.mobile.changepage ('#register'); 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -