Which one to use for calling REST in dojo -


i need call rest api provided google maps engine in link

https://developers.google.com/maps-engine/documentation/requests

i need make request these api using dojo framework

please let me know 1 use dojo/request, dojo/request/xhr.. 1 have use.. ,

how can decide 1 used based on what?

thanks chiru

i think should looking @ dojo/request/script. reason you're trying load cross-domain data, , browsers block xhr requests cross domain.

if don't want use jsonp (it's kind of "hack" commonly used on web), google maps api support setting access-control-allow-origin header, means cross domain requests google maps api work (look @ google maps api docs more information). drawback work in modern browsers afaik.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -