List Info

Thread: Re: Customizing the Search box?




Re: Customizing the Search box?
user name
2007-12-22 04:44:28
I have the same question and was wondering if there is a way
to
exclude the standard search box (to define my own search
form), or at
least customize the placement of the search form elements
(input box,
search button, Google branding) - at the moment, these are
being
rendered in a table.

The raw-searchers example still uses the search box from the
API,
however I did come across another example online (http://
www.visualdxhealth.com/) which seems to use a customized
search box -
but the solution seems a bit complex.



On Dec 21, 4:16 am, "jgeerdes [AJAX APIs
"Guru"]"
<jgeer...mchsi.com> wrote:
> Can yo provide a link to the malfunctioning
application?
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.m
chsi.com
> jgeer...mchsi.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google AJAX API" group.
To post to this group, send email to
Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Customizing the Search box?
user name
2007-12-22 06:35:34
Absolutely.  You can build an entirely custom search form as
long as
you remember two things:

(1) Use the form's onsubmit handler to call a function that
will (a)
execute your searcher(s) with the relevant input information
and (b)
stop the actual submission of the form via preventDefault()
AND return
false (different browsers like different things here).

(2) Your control has to include the Google branding
somewhere.  In
this case, you'll want to use the GSearch.getBranding()
method, which
is detailed in the documentation.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.m
chsi.com
jgeerdesmchsi.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google AJAX API" group.
To post to this group, send email to
Google-AJAX-Search-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-AJAX-Search-API-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )