Hey,
As this is outside of your domain, you can't use XHR unless they offer CORS. 
Also the request doesn't seem to be JSONP compatible which rules a script tag 
out. Hm.... I'm out of options. Either you use a server to rout your request 
through or you try to make the call somehow jsonp like e.g. with YQL or 
something similar.
Regards,
Martin

Am 17.07.2012 um 21:58 schrieb slah:

> Hi everybody,
> I'm trying to call an url and get back the result.
> the url is outside my domain, it's the geocoding service from google.
> Here's a sample of an url: 
> http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
> 
> which component could be used to achieve this.
> 
> I've tried this code without success:
> 
> var iframe = new
> qx.ui.embed.Iframe('http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true');
>                                                               
> iframe.addListener("load", function(e){
>       alert(e.getData())                                      
> }, this);
>                                                               
> but the event never get fired.
> 
> Thanks and Regards
> 
> PS: I don't like to show raw results to the user.
> 
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/get-result-from-an-url-call-tp7580665.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to