I'm making an app for the BlackBerry PlayBook using jQuery Mobile, and in a page (actually a div
with data-role='page'
), I've got a lot of (say, 125) buttons each with a unique text. I've used the a
tag with data-role='page'
for this.
There's a separate page like the above, but with different content in the same HTML file. The content in this page depends on the button clicked in the page 1.
So my question is, how can I load the page 2, along with the associated content, according to the button clicked in page 1? I need to pass the text in the middle of <a>
and </a>
tags to the page 2 and load the content accordingly.
Any help greatly appreciated.