homepage Welcome to WebmasterWorld Guest from 54.145.183.190
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Google / Google Desktop Tools and Google Labs Projects
Forum Library, Charter, Moderator: open

Google Desktop Tools and Google Labs Projects Forum

    
Google Api question: how to control the output result?
zozzen

5+ Year Member



 
Msg#: 4203627 posted 2:02 pm on Sep 18, 2010 (gmt 0)

Hi, I'd like to adopt Google ajax api on my website but i find it very difficult to use.

By using the code below, I can roughly get 1 result by entering a keyword.

My question is:
1. How to get more results? ( I've spent an hour searching the documentation in google code but still fail to get the relevant guiding...)

2. The current search output shows both titles and abstracts of each result, just like an ordinary search output we can see in Google search. Is it possible to strip the abstract and display only titles?

please give me some hints. Even a link to relevant documentation will be very useful.... I'm totally lost. Please help.

<script language="Javascript" type="text/javascript">

//<![CDATA[
google.load('search', '1');

function OnLoad() {
var searchControl = new google.search.SearchControl(null);

searchControl.addSearcher(new google.search.WebSearch());

searchControl.draw(document.getElementById("searchcontrol"));
}
google.setOnLoadCallback(OnLoad);

//]]>
</script>

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google Desktop Tools and Google Labs Projects
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved