Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GoogleCallback(jqueryObj, data) {
- console.log('data', data);
- }
- $(function () {
- $.ajax({
- url: 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0?key=*ТУТ КЛЮЧ*&q=PHP&callback=GoogleCallback&context=?',
- dataType: "jsonp",
- error: function() {
- console.log(':(((');
- }
- });
- });
- /* callback */
- GwebSearch.RawCompletion('0', null, 400, 'invalid version', 200)
- function googleSearch(e){
- $.ajax({
- url:'https://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q='+e+'&callback=GoogleCallback&context=?',
- dataType: 'jsonp'
- });
Add Comment
Please, Sign In to add comment