I have an app which uses jQuery Mobile and Knockout.js with PhoneGap, the problem is that the events only work on the first page, on the second page I do not know where should I attach the events, I have tried (inside the header tag and also before the </body> tag) with events "pagebeforeshow", "pageinit", and a load function on the "body" tag, but I cannot work with the event.
Please let me know if I can use another event or function in order to work with events not only in the first page.
I have understood that in PhoneGap apps, the DOM loads once, the first time, is it ok if I create a plugin in order to have all the definitions?
The events of both pages work on my machine's browsers(FF and Chrome), the problem only happens on Android and Blackberry, after building the app with PhoneGap.