page showing from cache , blinking and back to page
i have some page in my app,
suppose i logout(click) from my app then successfully go the logout_page , suddenly last page i visited appearing and go back to the logout_page again .
I done data-cache="never" in page , but app getting hang .
1) i checked event but . only one event is firing .
2) i realised that the page showing again is a dummy one from memory .
3) how can i solve this issue ,
i am using the below code to logout
- $("#drLoginButton_ac").unbind();
- $("#drLoginButton_ac").bind('click',function(event, ui)
- {
- message(" loout click");
- logout_main();
- message("after loout click");
- });
and this is the logout function
- function logout_main()
- {
- $.mobile.urlHistory.clear;
-
- window.localStorage.clear();
- if(parseInt(android_version) < 3)
- {
- $.mobile.changePage('index.html#page3_loginmain', { transition: "fade"});
- $('index.html#page3_loginmain').trigger('create');
- }
- else
- {
- $.mobile.changePage('index.html#page3_loginmain', { transition: "slide"});
- $('index.html#page3_loginmain').trigger('create');
- }
-
- }
My jquery version is : js/jquery.mobile-1.0.min.js
thanks
Sarath