Thanks for replying but it didn't hemop me much i tried it before.
The problme is that i am using a custom form instead pf SearchControl
and i hvae coded it this way-
gSearchForm = new google.search.SearchForm(false,
document.getElementById("searchform"));
gSearchForm.setOnSubmitCallback(null, CaptureForm);
gSearchForm.input.focus();
function CaptureForm(searchForm) {
var wifisearch= "wifi"+" "+searchForm.input.value;
gLocalSearch.execute(wifisearch);
return false;
}
as given in the example.
BUt I am not getting all the results of the search.
On Jun 24, 3:37 pm, Marcos Farias <[email protected]> wrote:
> Hi Mandvika Rathore,
>
> I'm not sure if this will help you, but I achieved that using the
> following code:
>
> var searchControl = new google.search.SearchControl();
> * **var options = new google.search.SearcherOptions();*
> * **options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);*
> options.setNoResultsString("Sua pesquisa não encontrou nenhuma página
> correspondente.");
> var siteSearch = new google.search.WebSearch();
> siteSearch.setUserDefinedLabel("Resultados");
> siteSearch.setUserDefinedClassSuffix("siteSearch");
>
> *searchControl.addSearcher(siteSearch, options);*
>
> Rgds
> ----------------------
> Marcos Fariashttp://www.justdigital.com.br/http://twitter.com/MarcosFariasBr
>
> On Thu, Jun 24, 2010 at 4:29 PM, mandvika rathore <[email protected]>wrote:
>
> > Thanks for replaying to my last message. I really appreciate it
>
> > I have another problme. I used this example ---
> >http://www.google.com/uds/samples/places.html
> > to develop a page with custom search form using
> > google.search.SearchForm. As given in this example too, I see only
> > four results of a search. I tried to use options.setExpandMode and
> > passed EXPAND_MODE_OPEN as a variable but it didn't work. Probably,
> > because I am using a custom search form.
>
> > What I want is use the custom form but display all the results with
> > pagination . How can I achieve this. If you could help, it will be
> > great.
>
> > --
> > 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]<google-ajax-search-api%[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.