If you can't call google.load to initialize the search api, you probably won't be able to use the Javascript API at all because every search request requires the addition of a script element to the page head, which won't exist in your plugin. So you'll probably have to resort to the REST side of the API from some other language. You can find information about that in the documentation under "Flash and Other Non-Javascript Environments" at the links below:
http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On Mar 31, 2009, at 5:00 AM, [email protected] wrote: > > I require the API to generate a series of search results returned as > an object, from which i can directly take the user to top result, or > any numbered result I choose. Since i am developing an extension, my > code that calls the API is within a .js file as part of the extension > files, not as a script within an html page. I find that this prevents > the primary instruction google.load ("search", 1) from executing as > from what I understand it attempts to use the page DOM and since there > is no page in my case execution stops and I can't make use of the API > > any suggestions please? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
