jquery mobile - Programmatically changing page in JQM -
i have jquery mobile 1.3.0 app pages. have page (#menyside) in index.html, have bound event to:
$(document).on('pagebeforeshow', '#menyside', function(event){ // check local storage, , times this: $.mobile.changepage("otherpage.html", { transition: "slideup"} ); } });
i check values in local storage, , based on values might want change page programmatically. works when open app first time, not when reopen app (i.e. document loaded in browser, reloaded)
am binding wrong event? tried @ events in documentation didn't find better...
Comments
Post a Comment