I figured it out on my own...

For those interested I could not use the Control Panel generated
code.  Instead I used to different refinments, one with the "-" in
front of the directory name the other with the containing the
directory name.  The code I then put in my search results is below:

<script type="text/javascript">
  google.load('search', '1', {language : 'en'});
  google.setOnLoadCallback(function() {

                var cseId = "001672037142232886188:j-oox3u5ply";
                var siteSearchCtrl = new google.search.SearchControl();
    var searcher;
    var options;

                // create Website searchers.
                searcher = new google.search.WebSearch();
          options = new google.search.SearcherOptions();
          searcher.setSiteRestriction(cseId, "Waterloo Honda Website
Search");
          searcher.setUserDefinedLabel("Waterloo Honda Website Search");
          siteSearchCtrl.addSearcher(searcher, options);
          // create Used Car searchers.
                searcher = new google.search.WebSearch();
          options = new google.search.SearcherOptions();
          searcher.setSiteRestriction(cseId, "Waterloo Honda Pre-Owned
Vehicle Search");
          searcher.setUserDefinedLabel("Waterloo Honda Pre-Owned Vehicle
Search");
          siteSearchCtrl.addSearcher(searcher, options);

 
siteSearchCtrl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
 
siteSearchCtrl.setLinkTarget(google.search.Search.LINK_TARGET_PARENT );
    siteSearchCtrl.setNoResultsString('Sorry no results found please
try again.');

          // draw in tabbed layout mode
          var drawOptions = new google.search.DrawOptions();
        
drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
        
drawOptions.setDrawMode(google.search.SearchControl.EXPAND_MODE_OPEN );

          // Draw the tabbed view in the content div
          siteSearchCtrl.draw('cse', drawOptions);

    siteSearchCtrl.execute(getQuery());
    document.getElementById('query-input').value=getQuery();
    customSearchControl.draw('cse');
    customSearchControl.execute(getQuery());
    document.getElementById('query-input').value=getQuery();
  }, true);
</script>

Good Luck to anyone who uses this post...

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

Reply via email to