Re: Javascript Google Search, No response on url's with Hyphens in the address

63 views
Skip to first unread message

Jeremy Geerdes

unread,
Apr 15, 2013, 7:47:49 AM4/15/13
to google-ajax...@googlegroups.com

Unfortunately, you're going to have to be a bit more detailed for us to provide any real help. For instance, which API are you using: the Custom Search API (CSAPI) or deprecated Web Search API (AJAX)? Also, a lot of this would be answered if we could see your page/app in action, working or not. The link you provided to the script timed out with no response from the server.

Jg

On Apr 15, 2013 6:34 AM, <tss.don...@gmail.com> wrote:

tss.don...@gmail.com

unread,
Apr 16, 2013, 4:01:31 AM4/16/13
to google-ajax...@googlegroups.com
Well I linked the script which you can see what I am using.

I did not code the script myself so I have no idea what version of the API I am using.

The page its used on: http://www.a-t-i-s.com/search.php

The Script: http://a-t-i-s.com/static/js/search_script.js

// URL of Google's AJAX search API
var apiURL = 'https://ajax.googleapis.com/ajax/services/search/'+settings.type+'?v=1.0&callback=?';

I take it, its the older version as the script I used was taken from a tutorial from a couple years back.

tss.don...@gmail.com

unread,
Apr 16, 2013, 4:04:41 AM4/16/13
to google-ajax...@googlegroups.com
Sorry if I came across rude I just woke up and read what you said completely wrong done that a couple times already to my clients this morning and its not even 9am yet :(

Jeremy Geerdes

unread,
Apr 16, 2013, 7:29:25 AM4/16/13
to google-ajax...@googlegroups.com

Once again, I am getting server timeouts from both of those links to a-t-i-s.com. So those links are of no help to me.

The line of code is a bit more useful, telling me that you're using the AJAX API. In this case, there are a few things to note. If you're setting a site restriction (I.e., by including site:xyz.com in your query), it is very common for the results to be extremely limited or even 0 in number. The API was deliberately crippled in such queries to restrict abuse from SEO and other applications. The CSAPI would probably do a better job for you, particularly considering the AJAX API will be discontinued no later than May 2014.

Given that I am getting server timeouts from your links, it should probably also be noted that, regardless of which API you're using, Google can't search domains or URLs that are not accessible to the general public.

Jg

--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/zPj-ZBlhQAQJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

tss.don...@gmail.com

unread,
Apr 16, 2013, 9:38:42 AM4/16/13
to google-ajax...@googlegroups.com
Not sure why you are getting time outs I can view those pages fine and no one else has ever reported a problem getting to the links I have provided (asked for help on stack overflow here: stackoverflow.com/questions/15967030/javascript-google-search-my-url-not-working-others-are/ )

Reply all
Reply to author
Forward
0 new messages