I am currently developing a Web App under jQTouch, and I want to know how I should proceed to redirect the user automatically to another page of my Web App.
For instance, let's suppose I have this code :
<div id="foo1">
...
</div>
<div id="foo2">
...
</div>
Now, let's suppose that the currently visible block is foo1
. Which code should I write in my JavaScript file to redirect to block foo2
(as though I clicked a link with href="#foo2"
)?
Thanks and sorry for my English (I'm French).
A standard link
will not work, but you are on the right track, it just has to be in the correct setting (either a button, or a list). so either:
or
will work.