I am trying to get data from Google Search, "cross-domainly". I come up with PHP, but I don't want to use it. I want to get the data directly using JavaScript. But how? JSONP? or other?
Asked
Active
Viewed 447 times
0
-
Related: http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy – Rob W Apr 14 '12 at 18:08
-
You probably would like to use Google's custom search API, see here: [link](http://stackoverflow.com/questions/6978242/how-to-load-googles-custom-search-enginecse-js-apis-after-page-loads) – dennisg Apr 14 '12 at 18:12
1 Answers
1
you can use google search API just by ajax,like jQuery.get().because Google's javascript API get around the cross-domain security in AJAX

little bitter gourd
- 56
- 2
-
I am now using YQL to fetch data from other domains (you probably realized this question is quite old). Anyway, I will accept your answer because you are the only person who answered in the past year. ;) – Derek 朕會功夫 Jan 16 '13 at 08:18
-
one week ago I called google custom search API by ajax,so i want to konw how dose google javascript api get around cross-domain.not jsonp,what is...i search in stack,then i see you question. – little bitter gourd Jan 16 '13 at 08:26
-