Jeremy,
first of all - thanks for a great post. It helped me a lot so far.
I've got 1 question:
Also, I'm very new to AJAX API and when I went through tutorials and
Developer's Guide they suggest using SearchControl that wraps multiple
(or just one) Searches, but better yet, it allows the user to specify
the search query with a nice ready GUI. Unfortunately I wasn't able to
modify your code to work with SearchControl - any hints on that would
be greatly appreciated.
So far, I added a webSearch to a SearchController and I switched this
function: setSearchCompleteCallback to be called on the Contoller
instead of the search itself. Unfortunately it produces an error
somewhere else in other JS code parts...
My goal is to let the user specify the query.
Again, thanks for the great work you do. I hope with a little more
help I'll be able to fix my code to work as I intended.
Regards,
Marek
On Aug 13, 8:36 am, Jeremy Geerdes <
jrgeer...@gmail.com> wrote:
> In that same place where you see result.html.cloneNode(1), you can
> access the url and title via result.unescapedUrl and
> result.titleNoFormatting.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://
jgeerdes.wordpress.com
>
jgeer...@mchsi.com
>
> 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, athttp://
jgeerdes.blogspot.com
> !
>
> On Aug 13, 2009, at 8:32 AM, obo jo wrote:
>
>
>
> > thank you very much!
> > i only have one problem now, i cant get each result's url and title as
> > raw data like that:
>
> > result.url,result.title.
>
> > i can only get the entire result from
>
> > result.html.cloneNode(1)
>
> > how can i get the url specificly?
>
> > On Aug 13, 2:22 pm, Jeremy Geerdes <
jrgeer...@gmail.com> wrote:
> >> The API will only returnresultsin sets of 8, but you can get up
> >> to 8
> >> sets of 8 for a total of up to64results. Check out my blog entry
> >> about how you can get all of theseresultssequentially at the link
> >> below. Make sure to read the comments, too, as there's a critical bug
> >> fix in there.
>
> >>
http://jgeerdes.blogspot.com/2008/12/how-to-get-all-results-
> >> available...
>
> >> Jeremy R. Geerdes
> >> Effective website design & development
> >> Des Moines, IA
>
> >> For more information or a project quote:
http://jgeerdes.home.mchsi.comhttp
> >> ://jgeerdes.blogspot.comhttp://
jgeerdes.wordpress.com
> >>
jgeer...@mchsi.com
>
> >> 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, athttp://
jgeerdes.blogspot.com
> >> !
>
> >> On Aug 13, 2009, at 5:18 AM, bo jo wrote:
>
> >>> i have trouble getting more then 8resultswith the gWebSearch.
>
> >>> even tho i placed this code:
>
> >>> gWebSearch.setResultSetSize(google.search.Search.LARGE_RESULTSET);
>
> >>> when i try to loop over theresultsi only get 8
>
> >>> for (var i = 0; i < gWebSearch.results.length; i++)
>
> >>> so what i wanna do is to find a way to get like 50results, or if it
> >>> cant be done, do getresultsstarting from a variable, so i can