Roger
Posts: 0
Joined: Fri Mar 29, 2013 1:10 pm

Abort Page Loading

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Abort Page Loading

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?

Roger
Posts: 0
Joined: Fri Mar 29, 2013 1:10 pm

Abort Page Loading

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Abort Page Loading

Working on it...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Abort Page Loading

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

where prevScreenName - name of previous screen

Roger
Posts: 0
Joined: Fri Mar 29, 2013 1:10 pm

Abort Page Loading

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Abort Page Loading

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

codeTiggzi.hideSpinner();/code

Roger
Posts: 0
Joined: Fri Mar 29, 2013 1:10 pm

Abort Page Loading

GREAT...THANKS!!

Roger
Posts: 0
Joined: Fri Mar 29, 2013 1:10 pm

Abort Page Loading

Work great...THANKS for all the help.

Return to “Issues”