i try with this Thanks Jeremy R. Geerdes
On Fri, Oct 24, 2008 at 3:51 PM, Jeremy Geerdes <[EMAIL PROTECTED]> wrote: > > If you're using a default search control, you can use CSS to hide the > SearchForm. All you have to do is include this in your CSS: > > .gsc-search-form{display:none;} > > Now, if you want to use the regular search form later, you're going to > need to make that a little more specific, but you get the idea. > > Once that's done, you can create your own search form using Javascript > or HTML, etc. You will then use the form's onsubmit event to call the > search control's execute method, as below: > > <form id="mySearchForm" onsubmit="return executeMySearch(this);"> > <input type="text"/> > <input type="submit" value="Go!"/> > <div id="branding"></div> > </form> > > And then your executeMySearch function is going to look like this: > > function executeMySearch(a){ > mySearchControl.execute(a.inputs[0].value); > return false; > } > > You can also assign the onsubmit handler using JS, like this: > document.getElementById('mySearchForm').onsubmit=function(){return > executeMySearch(this);}; > > Etc. A couple of things to remember as you build your custom form, > though: first, if the only reason you're building a custom search > form is so that you can style the form's appearance, you can use > Mozilla Firefox with the Firebug extension installed to get the > className information on the regular search form and style it that > way. And second, the TOU explicitly require that search results be > clearly associated with their branding (i.e., the little "powered by > Google" bit that appears in the default SearchForm). In other words, > even with your custom search form, you must provide that branding in > close proximity to the results. > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project quote: > http://jgeerdes.home.mchsi.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! > > > > > On Oct 24, 2008, at 3:56 AM, cppatidar wrote: > > > > > Hello all > > > > I am a web developer and i want to integrate google search in my web > > site i already have google api key and i also copy the ajax search > > code its working but it also make the text box of search and serch > > button but i want to integrate the search functionality with my own > > text box and search button > > > > please help me > > thanks > > > > > > > > > > -- Chandra Prakash Patidar ------------------------------------- Web Devloper --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to Google-AJAX-Search-API@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---