hide - Jquery Mobile: Can I use stopPropagation in the pagebeforehide handler? -


on 1 of pages, want ask users first whether want navigate away. when user answers no, no transition should occur.

i tried code:

$('#ptakecardset').live('pagebeforehide',function(event, ui){     event.stoppropagation(); }); 

but doesn't work. new page still loaded.

does have same problem?

you may getting bit live event - : http://api.jquery.com/event.stoppropagation/

since .live() method handles events once have propagated top of document, not possible stop propagation of live events. similarly, events handled .delegate() propagate element delegated; event handlers on elements below have been executed time delegated event handler called.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -