rdulepet
Posts: 0
Joined: Wed Nov 30, 2011 7:27 pm

Touch Events:SwipeLeft and Swiperight events?

I am building a Twitter Search API app using Tiggr. I would like to show 15 results per page and then navigate to next page by sending request again to Twitter. Assuming I generate native code for iPhone or Android, how do I handle SwipeLeft or SwipeRight motion. I don't see those events, can you please guide me as to how I can bind these events?

Essentially I am looking to support Touch Events akin to:
http://jquerymobile.com/demos/1.0a4.1...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Touch Events:SwipeLeft and Swiperight events?

We are working on adding swipe events but they are currently not supported out-of -the-box. But, you should be able to add them with custom JavaScript.

rdulepet
Posts: 0
Joined: Wed Nov 30, 2011 7:27 pm

Touch Events:SwipeLeft and Swiperight events?

Thats fine if custom javascript works too. Hmmm... wonder what I am doing wrong. In the mobile app screen page_load event I add following code, and I tried this both a GRID level (have a grid in the page) and at the page level but doesnt seem to detect.

$('[dsid="mobilescreen1"]').bind('swipeleft',function(event, ui){
alert('This page was swiped left');
});

$('[dsid="mobilescreen1"]').bind('swiperight',function(event, ui){
alert('This page was swiped right');
});

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Touch Events:SwipeLeft and Swiperight events?

Thanks.. looking at this.

Christian Weyer
Posts: 0
Joined: Mon Dec 19, 2011 5:29 pm

Touch Events:SwipeLeft and Swiperight events?

Has this been solved, BTW?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Touch Events:SwipeLeft and Swiperight events?

Oops.. sorry that we left it unanswered. Checking right now.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Touch Events:SwipeLeft and Swiperight events?

The code above is correct, the only different is that the event has to be attached to mobilecontainer1:

code
$('[dsid="mobilecontainer1"]').bind('swipeleft',function(event, ui){
alert('This page was swiped left');
});

$('[dsid="mobilecontainer1"]').bind('swiperight',function(event, ui){
alert('This page was swiped right');
});
/code

Feeniix_
Posts: 0
Joined: Tue Dec 20, 2011 5:45 am

Touch Events:SwipeLeft and Swiperight events?

I've created a new project (swipe input) and am selecting the mobilecontainer on the page, I click on events, but when I select load (or anything, for that matter) it's not automatically changing the GUI so I can select the type of event, etc. I've shared the app with a href="mailto:support@gotiggr.com" rel="nofollow"support@gotiggr.com/a if you'd like to investigate this?

Regards,
Jiamee

Feeniix_
Posts: 0
Joined: Tue Dec 20, 2011 5:45 am

Touch Events:SwipeLeft and Swiperight events?

PS. I've tried firefox 9.0.1 and internet explorer 7.

Regards,
Jaimee

Feeniix_
Posts: 0
Joined: Tue Dec 20, 2011 5:45 am

Touch Events:SwipeLeft and Swiperight events?

Or am I supposed to actually place the code on the screen load? :-/

Return to “Issues”