$.jQTouch.goTo is not a function Options

Posted by Max Fraser on Stack Overflow See other posts from Stack Overflow or by Max Fraser
Published on 2010-05-22T15:14:01Z Indexed on 2010/05/22 15:20 UTC
Read the original article Hit count: 358

Filed under:
|

I am trying to use the goTo function to rotate between images, here is my basic JS:

<script type="text/javascript" charset="utf-8"> 
          $.jQTouch(); 
          $(function () { 
            $('.touch').live('swipe', function (event, info) { 
              alert('called' + info.direction); 
              var id = $(this).parent().next().attr("id"); 
              alert(id); 
              $.jQTouch.goTo(id, 'slide'); 
            }); 
          }); 
 </script> 

This works great up until I get to the $.jQTouch.goTo(id, 'slide');

line and then I get the following error:

$.jQTouch.goTo is not a function 

How do I access this goTo function?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jqtouch