During the Load of a Page I am running some JavaScript. If an error condition occurs can I abort the Page Load?
During the Load of a Page I am running some JavaScript. If an error condition occurs can I abort the Page Load?
Hello! Could you clarify what do you mean on "Abort Page Loading" - does it mean you want to saty on curent page and do not navigate to the next page if there is some error?
Yes, exactly. I have my main page with some buttons. When I click a button I navigate to a different page. On the page load JS is executed and if an error occurs I want to stay on my main page.
Working on it...
use codeTiggr.navigateTo('prevScreenName', {
reverse: false
});/code
where prevScreenName - name of previous screen
Well, it does go back to the previous page but the page is greyed out with the hourglass spinning.
Before returning to the previous page remove spinner with following code:
codeTiggzi.hideSpinner();/code
GREAT...THANKS!!
Work great...THANKS for all the help.