Tuesday, December 23, 2014

Re: check wallet garden / internet connection

Okay thank you for the overview of possibilities. I will investigate the CORS approach.

Am Montag, 22. Dezember 2014 19:07:07 UTC+1 schrieb Jens:
You have to live with the JavaScript constraints which means you either make a request to the domain the app is served from or the server must support CORS headers to allow cross origin requests. If both are not possible then JSONP is the only other solution to make requests to any domain that supports JSONP. 
If you don't like the JSONP approach then publish your own URL somewhere in the internet and let it use CORS headers so you can make a request to that URL.

Alternatively if your app is wrapped with a native app frame (e.g. UIWebView on iOS) then you might implement something natively in Objective-C and call it through JavaScript.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment