Load page dynamically in jQTouch

3 thoughts on “Load page dynamically in jQTouch”

  1. Thank you for this Raul, but what if the page you are loading is called via ajax. So instead of (#callback), can you write a bind function for an html page?

    What I’m trying to achieve is to preload the large page2.html and provide the ‘loading’ notification on page1.html. So when the animation occurs, page2.html is fully loaded.

    If possible, urgent response will be appreciated.

  2. Hi Oz,
    You can load the large page (page2.html) inside a new element and attach the element to the BODY of page1.html once the new page is loaded:

    I think this should work but I haven’t tested this code. Please try it and if it does not work send me an email and I will be happy to help with this.

    -Raul

  3. Thank you so much Raul. I ended up delivering the app as is last week, but I will definitely give this a try and let you know.

Leave a Reply