I'm adding pages run time when swipeleft is happened. But when swiperight happened I can't return the previous page that I'm created with sliding from left to right.
I have added the data-direction="reverse"
to the pages but it didn't create left-to-right effect.
Is there any way to do this?
By using data-rel="back" jQuery Mobile will mimic the back button, see "Back linking" here: http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/pages/docs-pages.html
A maybe easier way using JQM would be:
or also, within js as:
data-direction="reverse" does not belong on the page, you add it to the link:
will send you to page.html with a reverse transition.