I don't see why it wouldn't be possible, but it's tough to tell you  
what to do without a little more clarity in your description.  It  
could be  as easy as adding another WebSearch object to the  
SearchControl that's just not restricted to your site (i.e., in  
addition to the one you already have).

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 18, 2008, at 3:01 PM, Chris wrote:

>
> 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