Thank you for the quick reply.
Now then: that header you suggested causes the responseText to be "undefined".
//adding your header here makes no difference
those 3 give me a responseText. I have not tried just one header than the next, so I'm not sure which one does the magic. But I'll keep them as a copy/paste template, they might all come in handy.
now my issue is the line:
var the_results = eval(the_response);
The code stops there and goes no further. Inserting an alert(the_results); after this is not executed. (if I use only the header you gave me, alert(the_results); gives me the undefined that I mentioned).
For some reason, I am getting the entire source of the page back from Google, when I just want the search results. Also, when using the real Google, the number of results per suggestion is no longer returned. The response was expected to be "suggestion1=numResults&suggestion2=numResults" or something like that so that I could split it out; it just does not work that way anymore. The "js=true" does not seem to make a difference either, the response is the same with and without it.
I think I got what I could from this, I just have to move on. If I was requesting something from my own server, I think I could make the responseText usable and hopefully without needing eval(), which chapter 17 will get into. Of course, writing a script to talk to any outside/third party website would be tough, there is no easy way to allow for changes made to their site, unless standards are adhered to (like using the "login using facebook" feature on a site outside of facebook).
Again, thank you for the fast reply.