Take the 2-minute tour ×

I'm making an phonegap app for the android platform. In this app i want swipe navigation within multiple html pages. Please tell me how i can do this. Either it is done in single html page or i've to create multiple html page for this swipe navigation.

Thanks In Advance. preet

share|improve this question

1 Answer 1

up vote 5 down vote accepted

If you are using jquery mobile then it is easy to do that because jquery support swipe,swipeleft and swiperight touch event.


A swipe event, triggered when the user swipes either vertically (20 or fewer pixels) or horizontally (30 or more pixels)


A left-directed swipe, triggered when the user swipes to the left 30 or more pixels


A right-directed swipe, triggered when the user swipes to the right 30 or more pixels

use this:

$("ul").delegate("li", "swipe", function() {
share|improve this answer

Your Answer


