aym / google-ajax-apis

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

CustomSearchControl Clear-button kills Refinement Tabs #484

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the CustomSearchControl is used with a Custom Search Engine that has 
Refinement Labels, so that the Refinement Labels are displayed in Tabs, 
clicking the Clear ('x') button kills the tabs:  The control fails to display 
the tabs after subsequent queries.

Demonstration:

Start with this sample code:

   http://code.google.com/apis/ajax/playground/#custom_search_control

Edit the CustomSearchControl constructor argument:  Change it to the ID of a 
CSE that has Refinement Labels, e.g.:  017576662512468239146:omuauf_lfve

   var customSearchControl = new google.search.CustomSearchControl('017576662512468239146:omuauf_lfve');

Test 1:

Run the edited sample code.  The sample code issues an initial query using the 
execute() method.  After search results appear, observe that the Refinement 
Labels are presented in tabs.

Click the Clear ('x') button.  Enter another query, observe search results, and 
observe that the tabs are NOT restored.

Test 2:

Run the edited sample code again.  After search results appear, observe that 
the Refinement Label tabs are displayed.

Click a Refinement Label tab:  Choose any Refinement that produces a result set 
that differs from the initial results.

Click the Clear ('x') button.  Re-enter the same query as in the last search.  
Observe that the tabs are NOT restored.  (Observe that the result set is the 
same as for the last search: this demonstrates that the last selected 
Refinement remains in effect.)

Original issue reported on code.google.com by omr99...@yahoo.com on 6 Jul 2010 at 11:18

GoogleCodeExporter commented 8 years ago

Original comment by jscud.w...@gmail.com on 7 Jul 2010 at 11:26

GoogleCodeExporter commented 8 years ago
This has been fixed.  Thanks for reporting, and please let us know if there are 
any more problems!

Original comment by adam.fel...@gtempaccount.com on 15 Jul 2010 at 10:50