/ 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?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function () { // <div id="account"></div> is the page to which i'm transitioning $('#account').bind('pageAnimationStart', function (evt, info) { // this alert never fires alert(info.direction); if ('in' === info.direction) { // do stuff } }); });