I am Using jquery mobile for UI. I tryied navigate to other page using $.mobile.loadPage("pageurl"); but it is not working.
Please help me to figure it out.
This topic has been locked.
4 replies Latest Post - 2012-11-07T16:43:10Z by SystemAdmin
Pinned topic Problem with JQuery Mobile loadpage
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
IdanAdar 2700059KWB741 PostsACCEPTED ANSWER
Re: Problem with JQuery Mobile loadpage2012-11-01T07:54:06Z in response to muthamilarasanAs you are facing jQuery Mobile issues, you should consult with the jQuery sample projects and documentation.
Other than that, as you have not supplied a project to look at - we cannot help.
IBM Worklight Mobile Platform
Paramasivan.G 270005EUEH33 PostsACCEPTED ANSWER
Re: Problem with JQuery Mobile loadpage2012-11-01T09:38:18Z in response to IdanAdarHi Idan Adar,
PFA for the Sample app. When i use $.mobile.changePage i'm getting the following error.
Uncaught TypeError: Cannot call method 'changePage' of undefined at file:///data/data/com.jQueryMob/files/www/default/jQueryMob.html:15
Kindly provide me with your workaround and suggestions.
SystemAdmin 110000D4XK2327 PostsACCEPTED ANSWER
Re: Problem with JQuery Mobile loadpage2012-11-07T16:43:10Z in response to Paramasivan.GI would start by making sure you're using the right version of jQuery.
alert( $().jquery );
Should display 1.8.2, since that's the version of jquery you have in js/jquery.js
If it displays 1.6.4, it won't work.
Remove all instances of:
window.$ = WLJQ;
window.$ = window.jQuery = WLJQ;
etc. (anything that assigns WLJQ to $)
I would also advice you to move all your application code under: wlCommonInit()
Let me know how it goes after you make those changes :)