For my phonegap app which i build with jquery mobile i use rel=”external” if I want to go to another page, for example if I want to go from index.html to users.html..
I use this option because otherwise i can’t use javascript functions in users.html.. for example it doesn’t execute whats in the document.ready.. But.. if I use rel=”external” then it will work..
The problem is, is that if I use rel=”external” the transition(slide) won’t work any more.. Does someone know why it is so?
Try to use pageinit instead of document.ready and rel=”external”. This is triggered after the page is initialised. There are other events you can use as well, depending on your needs such as pageshow or bagebeforeshow.
More on jQM events http://jquerymobile.com/demos/1.1.1/docs/api/events.html
Here’s what they say about document.ready: