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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -