Zn2O / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

AJAXSearch: need a way to expose the cursor property and gotoPage() in GSearch #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
r401

Detailed description:
Should you choose to not use the provided HTML interface returned by the
AJAX API as documented in 

http://code.google.com/p/gwt-google-apis/wiki/GettingStartedAJAXSearch

You are at a disadvantage for retrieving all results from the query.
Currently, there is no way to tell how many search results are returned,
you only get the first few (4) results fed through the callback.  The API
supports a cursor property that shows other results that can be fetched,
and a gotoPage() method.

Workaround if you have one:
Use the JSON style queries documented at:

http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje

You can model the JSON results as objects that exend JavaScript Object 
see: 
http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(google-web-tool
kit-doc-1-5)t(DevGuideJSOverlays)

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/540b0bc42
ff2e7cb#

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 4 Jul 2008 at 11:36

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 9 Jul 2008 at 6:39

GoogleCodeExporter commented 9 years ago
This patch adds gotoPage() and methods on gotoSearch() to access the .cursor 
properties.

Original comment by galgwt.reviews@gmail.com on 9 Jul 2008 at 7:53

Attachments:

GoogleCodeExporter commented 9 years ago
Committed as r434.

Original comment by mmendez+personal@google.com on 23 Jul 2008 at 3:20

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 13 Oct 2008 at 8:58

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 6 Nov 2008 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 21 Dec 2009 at 1:57