Sander Kristel
Posts: 0
Joined: Sun Dec 29, 2013 4:47 pm

Execute list event

Hi,
I've set up the following code on a Button Click event.

for(i = 0; i < 7; i++) {
localStorage.setItem('SkipVariable',i);
EYFSQuestionListService.execute({});
alert(i);
}

I have also added an alert to the EYFSQuestionListService success event to test. The above alert shows 7 times and then the Success event alert shows 7 times rather than showing the above alert, success alert, above alert, success alert etc?

What gives? :)

Thanks,
Sander

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

Execute list event

Hello Sander,

Probably because of event's order http://docs.appery.io/documentation/w...
Please try to use Complete event instead of Success.

Sander Kristel
Posts: 0
Joined: Sun Dec 29, 2013 4:47 pm

Execute list event

Thanks

Return to “Issues”