in my Sencha Touch 2 app, I need to handle the redirect events myself. By this, I mean that I need to be able to handle href events and redirect myself.
I am using the following code:
Ext.Viewport.element.addListener("tap", function(e) { e.stopEvent(); e.stopPropagation(); e.preventDefault(); var href = e.target.getAttribute("href");
None of the above functions work (stopEvent, stopPropagatioon, preventDefault). An application always opens a link in my web view of the application.
Is there any possible way to disable href opening links?
source share