Search found 137 matches

by leven.steve
Sun Dec 04, 2016 10:20 am
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

I'm not expert enough to understand all of the inner workings on this but I had similar non-sequencing issues when I played around with it. In particular if I used ".when" it didnt work as expected. There's possibly better ways to do this (Appery?) The important things are this: 1. the starting poin...
by leven.steve
Sat Dec 03, 2016 6:35 pm
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

jQuery version below. Maybe Appery or some else can do a better version with a parameter for the upload function and the return value but I'm sure you can make this work and extend it in some way. You could also try using the "Q" library, see here: https://github.com/kriskowal/q code debugger; conso...
by leven.steve
Fri Dec 02, 2016 3:24 pm
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

See here for jQuery promises:
https://api.jquery.com/promise/
If I get time I'll try and make it work because no doubt I'll need it in the future!

Good examples here http://joseoncode.com/2011/09/26/a-wa...
by leven.steve
Fri Dec 02, 2016 3:23 pm
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

OK, for jQuery apps (ie not Angular) you need to work with promises as per the jqueyr documentation her:
https://api.jquery.com/promise/
by leven.steve
Fri Dec 02, 2016 3:20 pm
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

No, not seen that. My app is Angular and not Ionic or jQuery Mobile.
I just tested var $q = Apperyio.get("$q"); in one of those other app types and it gives the error you're seeing.
So either queues aren't available or there is a different syntax?
by leven.steve
Mon Nov 28, 2016 10:06 am
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

Based on the example I gave you with functions func1(), func2(), etc. I would put your service call to uploadImage and uploadRawData inside func1() and func2() [rename as say qUploadImage() and qUploadRaw() and then in those functions you can put the service call and return the promise. Don't use a ...
by leven.steve
Wed Nov 23, 2016 3:40 pm
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

Joe

That's what the $q achieves but in my opinion much simpler.
At first I struggled to understand it and make it work but now I use it a lot in order to ensure things happen in the sequence I want.

If you get stuck I can post another example?
by leven.steve
Mon Nov 21, 2016 10:20 am
Forum: Moved from Get Satisfaction
Topic: Rest API data access never returns data on first attempt to connect
Replies: 15
Views: 1020

Rest API data access never returns data on first attempt to connect

Max, I believe you use Amazon EC2 for hosting the apps?
Couldn't you replicate the content across multiple zones/regions and then launch the app from the nearest region based on geolocation of the user?
(Just asking)
by leven.steve
Mon Nov 21, 2016 8:25 am
Forum: Moved from Get Satisfaction
Topic: Appery Platform Bug! When calling services.
Replies: 27
Views: 2207

Appery Platform Bug! When calling services.

$q example - outputs to console Fire a function with this code from a button: code // $q test - call 3 functions in sequence // use $timeout to simulate different success delays var $q = Apperyio.get("$q"); var promises = []; promises.push($scope.func1()); promises.push($scope.func2(...