I am trying to migrate existing phonegap project into worklight. Phonegap app is using $.mobile.changePage() for page navigation. Will this function reload the existing DOM or creates a new DOM. As worklight suggest to use single DOM object, if I use $.mobile.changePage() will it have any impact on worklight application behaviour.
Asked
Active
Viewed 669 times
1 Answers
0
Please read the following IBM Worklight Getting Started training module: Building a multi-page app (sample project).
jQuery.mobile.changePage()
http://api.jquerymobile.com/jQuery.mobile.changePage/
.load()
http://api.jquery.com/load/
Please read the above documentation to understand the difference between changePage
and load
.

Idan Adar
- 44,156
- 13
- 50
- 89
-
I have gone through the IBM Worklight training modules and I am quite clear about the page fragmentation concept. But I am really confused to figure out the difference between the functionality provided by $.mobile.changePage() and worklight's $('selector').load(); Sir, Could you please explain me in detail. – Sep 11 '13 at 12:32
-
1) $('selector').load() is not Worklight's - it is jQuery's. 2) they are not the same at all. 3) See my updated answer. – Idan Adar Sep 11 '13 at 12:57