i've searched around and tried some solutions, but i can't get event.preventDefault() working on a simple page transition bind:
$("#trainingmodus").bind('pagebeforeshow', function(event, data) {
event.preventDefault();
console.log("trainingmodus going off screen ");
app.canvasGeneralHide(function(){
//data.deferred.resolve( data.absUrl, data.options);
});
});
What i'd like to accomplish is to delay the page transition after some other transitions have finished. However, event.preventDefault() does not seem to be working.
In the documentation it's not explicitly stated if and how each function can use a callback, but i assumed that it would, just as the pagebeforeload listener?
I've looked at several other problems, like this one: e.preventdefault(); not working
I've also tried to use
event.stopImmediatePropagation();
or
event.stopPropagation();
which both had, alas, no effect.