zipnode: Sorry I missed you in the IRC channel earlier today, and thanks for providing the link to your page. The problem that you're having has nothing to do with your getQuery() function. It has everything to do with the fact that you're not loading the jsapi loader until AFTER you try to load the Search API. This results in a JS error in googlesearch.js which brings the whole page to a screeching halt. To fix it, simply move the line in your code reading as below:
<script type="text/javascript" src="http://www.google.com/jsapi"></script> to a position BEFORE this line: <script type="text/javascript" language="Javascript" src="/js/googlesearch.js"></script> If you have further problems, I will be around the IRC channel again in appr 2 hours. Or you can just respond to this thread. Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On May 14, 2010, at 9:29 AM, zipnode wrote: > Great article and exactly what I was looking for. For some reason my > getQuery script isn't working as expected - although I do see the para > being passed - progress! > > Any help would be really great. I'm afraid I'm stuck. > > http://www.snowbound.com/main/177/1285 > > > > On Apr 26, 1:38 pm, "Jeff S (Google)" <[email protected]> wrote: >> Hi omr, >> >> Thanks for reporting the charset issue. Big oops on my part, not >> testing international characters in all browsers. :-( I've fixed the >> issues and went with accept-encoding on the form itself since that >> should work even if the HTML is in a different character encoding. >> >> http://ajax-apis.appspot.com/two-page-search >> >> Happy coding, >> >> Jeff >> >> On Mar 25, 12:42 pm, omr <[email protected]> wrote: >> >>> A note to Jeff: >> >>> It seems to me that the fix mentioned above is necessary in order to >>> execute searches containing extended characters (i.e., for languages >>> other than English). I wonder if you might want to update the example >>> on the blog to implement this fix? >> >>> -- omr >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google AJAX APIs" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group >> athttp://groups.google.com/group/google-ajax-search-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
