Search found 136 matches

Go to advanced search

by w
Mon Jun 17, 2013 10:51 am
Forum: Issues
Topic: How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?
Replies: 5
Views: 1560
 
Jump to post

How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?

Or imagine that the response of the 1st service.execute is the request input for the 2nd service.execute etcetera... It's just a matter of being able to queue service.execute statements and start another when the previous one has completed. I guess a lot of Appery users will need this functionality?
by w
Mon Jun 17, 2013 10:48 am
Forum: Issues
Topic: How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?
Replies: 5
Views: 1560
 
Jump to post

How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?

Hi Marina, How do you suggest using it with for example this: precode for(var i=0; i<=10; i++){ localStorage&#46;setItem("counter", i); service&#46;execute({}); } In the success event of the service: alert("Service " + localStorage&#46;getItem("counter") + &...
by w
Mon Jun 17, 2013 10:09 am
Forum: Issues
Topic: How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?
Replies: 5
Views: 1560
 
Jump to post

How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?

The question to use deferred objects with Appery service.execute is: does service.execute return a promise object? From the deferred object jquery documentation: precode $&#46;when( doAjax(), doMoreAjax() ) &#46;done(function() { console&#46;log( 'I fire once BOTH ajax requests have comp...
by w
Mon Jun 17, 2013 9:01 am
Forum: Issues
Topic: How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?
Replies: 5
Views: 1560
 
Jump to post

How can i execute a service multiple times, but one after the other? So a so-called waterfall effect?

How can i execute a service multiple times, but one after the other? So a so-called waterfall effect? For example: for (var i=0; it get it how to make it work with Appery services, because you have no custom callback functions or explicit ajax calls (most of the examples of deferred objects on inter...
by w
Mon Jun 17, 2013 8:51 am
Forum: Issues
Topic: list empty returns javascript error
Replies: 31
Views: 5459
 
Jump to post

list empty returns javascript error

Ok, thank you!

by w
Fri Jun 14, 2013 10:51 am
Forum: Issues
Topic: Pass request parameter or any parameter with a service.execute({}) ?
Replies: 20
Views: 4459
 
Jump to post

Pass request parameter or any parameter with a service.execute({}) ?

Yes, but all examples for deferred objects work with the direct ajax calls, which are made transparent by Appery by the custom Appery service.execute({}) call. The end goal is that each service.execute({}) call in the for loop is executed only when the one before has finished (in essence: has finish...
by w
Fri Jun 14, 2013 9:18 am
Forum: Issues
Topic: Pass request parameter or any parameter with a service.execute({}) ?
Replies: 20
Views: 4459
 
Jump to post

Pass request parameter or any parameter with a service.execute({}) ?

Can I use these extended request params in the service success event also? My goal is to 'label' a service.execute execution. So I have a for-loop: precode for (var counter=0; counter < x&#46;length; counter++){ service&#46;execute({ data: { "executionNumber": counter } }); } /code...
by w
Fri Jun 14, 2013 8:16 am
Forum: Issues
Topic: Pass request parameter or any parameter with a service.execute({}) ?
Replies: 20
Views: 4459
 
Jump to post

Pass request parameter or any parameter with a service.execute({}) ?

Can I pass a variable or request parameter with the service.execute({}) method, so that I can use this variable in the service mappings? For example service.execute({ param1="1"}); or something like that? Because I have a for-loop which executes a service multiple times, but each time with...
by w
Fri Jun 14, 2013 7:52 am
Forum: Issues
Topic: list empty returns javascript error
Replies: 31
Views: 5459
 
Jump to post

list empty returns javascript error

For the moment I solved it with this, but if there are a lot of items, it is very inefficient because of the 2 find instructions: precode Appery('lstContacten')&#46;find('li')&#46;each( function(){ var delete = true; $(this)&#46;find('a[dsid="mobilelistitem1_3"]')&#46;each(...
by w
Fri Jun 14, 2013 7:12 am
Forum: Issues
Topic: list empty returns javascript error
Replies: 31
Views: 5459
 
Jump to post

list empty returns javascript error

It is not working, the hidden element is still removed with this find: Appery('lstContacten').find('li').not('[dsid="mobilelistitem1_3"]').remove(); When I do a Appery('lstContacten').find('li').not('[dsid="mobilelistitem1_3"]').each( function(){ alert($(this).prop('outerHTML'));...

Go to advanced search