jQTouch pageAnimationStart callback not firing


/ Published in: JavaScript
Save to your folder(s)

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?


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.