Hi,

I'm just trying the basic api for the first time, and it's working
fine.  However it shows just one result, and you have three very small
tabs.  Clicking the second one shows "more results", and the third one
shows "all results".

I would like to have it default to showing "all results", though I
haven't been able to make that happen yet.

I'm sure it's simple, if one of the experienced users on here could
offer some advice I'd definitely appreciate it.

It's this version:

    google.load('search', '1');

    function OnLoad() {
      // Create a search control
      var searchControl = new google.search.SearchControl();

      // Add in a WebSearch
      var webSearch = new google.search.WebSearch();

      // Restrict our search to pages from Optrics.com
      webSearch.setSiteRestriction('www.optrics.com');

      // Add the searcher to the SearchControl
      searchControl.addSearcher(webSearch);

      // tell the searcher to draw itself and tell it where to attach
      searchControl.draw(document.getElementById
("searchcontentinner"));

      // execute an inital search
      searchControl.execute('Spam Firewall');
    }

    google.setOnLoadCallback(OnLoad);

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