Page 1 of 1

Execute list event

Posted: Sat Jan 11, 2014 10:33 am
by Sander Kristel

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


Execute list event

Posted: Sat Jan 11, 2014 12:52 pm
by Alena Prykhodko

Hello Sander,

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


Execute list event

Posted: Sun Jan 12, 2014 12:45 pm
by Sander Kristel

Thanks