Posted By

segdeha on 10/03/09


Tagged

callback jqtouch pageAnimationStart


Versions (?)

jQTouch pageAnimationStart callback not firing


 / Published in: JavaScript
 

I'm building my first jQTouch application. I want to do stuff before the user transitions to a particular page, but the callback never gets called. What am I doing wrong?

  1. $(function () {
  2. // <div id="account"></div> is the page to which i'm transitioning
  3. $('#account').bind('pageAnimationStart', function (evt, info) {
  4.  
  5. // this alert never fires
  6. alert(info.direction);
  7.  
  8. if ('in' === info.direction) {
  9. // do stuff
  10. }
  11. });
  12. });

Report this snippet  

You need to login to post a comment.