Loading Separate Pages With Animation in JQTouch
Posted
by Donovan Keith
on Stack Overflow
See other posts from Stack Overflow
or by Donovan Keith
Published on 2010-03-18T00:31:58Z
Indexed on
2010/03/18
0:41 UTC
Read the original article
Hit count: 793
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
© Stack Overflow or respective owner