Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-28-2013, 06:50 PM   PM User | #1
m2244
Regular Coder

 
Join Date: Jun 2012
Posts: 129
Thanks: 1
Thanked 1 Time in 1 Post
m2244 is an unknown quantity at this point
How to call this custom function on a swipe event

Hello,

Does anyone know how to get this swipe to work reliably? I had it working when I was using the full jQuery mobile version but with this custom jQuery mobile file it doesn't work. I want to get away from the complete jQuery mobile framework because it is invasive and I am only using swipe and maybe 1 or 2 other functions eventually.

I attached the custom jQuery file in case anyone needs it. I am not sure why this is not working.

I guess I just need to know how to call the function when a user swipes the screen.

Code:
	$('body').live("swipeleft", function(){
		
		$('#glossaryToolTip').css({display:'none'});
		if($(window).width() <= 1024)
		{
			goToNext();
		        alert($(window).width());
		}
	});
Attached Files
File Type: zip cusom_jquery_mobile.zip (17.4 KB, 22 views)
m2244 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:59 AM.


Advertisement
Log in to turn off these ads.