Page 1 of 1

Abort Page Loading

Posted: Fri Apr 12, 2013 12:30 pm
by Roger

During the Load of a Page I am running some JavaScript. If an error condition occurs can I abort the Page Load?


Abort Page Loading

Posted: Fri Apr 12, 2013 12:39 pm
by Maryna Brodina

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?


Abort Page Loading

Posted: Fri Apr 12, 2013 12:41 pm
by Roger

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.


Abort Page Loading

Posted: Fri Apr 12, 2013 1:43 pm
by Maryna Brodina

Working on it...


Abort Page Loading

Posted: Fri Apr 12, 2013 2:12 pm
by Maryna Brodina

use codeTiggr.navigateTo('prevScreenName', {
reverse: false
});/code

where prevScreenName - name of previous screen


Abort Page Loading

Posted: Fri Apr 12, 2013 2:24 pm
by Roger

Well, it does go back to the previous page but the page is greyed out with the hourglass spinning.


Abort Page Loading

Posted: Fri Apr 12, 2013 2:31 pm
by Alena Prykhodko

Before returning to the previous page remove spinner with following code:

codeTiggzi.hideSpinner();/code


Abort Page Loading

Posted: Fri Apr 12, 2013 2:34 pm
by Roger

GREAT...THANKS!!


Abort Page Loading

Posted: Fri Apr 12, 2013 2:44 pm
by Roger

Work great...THANKS for all the help.