Hi I currently have a search page I created where the user can search
for items on the site, the search box and results are on the same
page. The client would also like there to be a search form on the page
and once submitted show there results on the page I created. Is this
possible? This is what I have right now for the search page.

 function OnLoad() {

        // create a search control
        var searchControl = new google.search.SearchControl();
        
searchControl.setLinkTarget(google.search.SearchControl.LINK_TARGET_SELF);


        // web search, open
        var options = new google.search.SearcherOptions();
 
options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);

                var siteSearch = new google.search.WebSearch();
        siteSearch.setUserDefinedLabel("Search Results");
        siteSearch.setUserDefinedClassSuffix("siteSearch");
        siteSearch.setSiteRestriction("ophea.net");
        searchControl.addSearcher(siteSearch, options);
        // tell the searcher to draw itself and tell it where to
attach
        searchControl.draw(document.getElementById("search_control"));

      }
      google.setOnLoadCallback(OnLoad, true);


Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX API" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to