Loading Separate Pages With Animation in JQTouch
- by Donovan Keith
I'm trying to convert a database-driven multiple-choice-style study website (written in JSP) into an iPhone app using JQTouch.
If I load all of the Q&A's into their own divs in the same file I can easily link and animate between them using links to hashtags, like: a class="button" href="#question22"
Unfortunately this isn't practical. The logic of the website as it currently works requires calls to a number of dynamically generated pages; I can't include every question in its own div in the same flat file.
How would I go about dynamically (pre)loading the next question (a JSP page like AskQuestion.jsp?questionId=Kzhctand ) then serving that up within the app after the user presses a button?
Thanks for any help you might offer.
-Donovan