Try putting the .setRestriction call AFTER the .draw call. jg
On Tue, Nov 13, 2012 at 10:46 AM, headtailgrep <[email protected]>wrote: > Hi all, > I'm racking my brain trying to get ImageSearch to return only large or > extra large images, everything else under my control seems to be fine. > Ultimate goal: Restrict to my site only (working), Display search results > only (working), return only X number of results (6 or 7) (working), only > show images (working) and popup layout (working). > But my search control is returning results for images at 200x150 AND high > resolution (large, Xlarge) images. I want to display high res image results > only. No matter what I do to try and control using > ImageSearch.SetRestriction it fails to behave as expected. > Here's a pastebin for proper formatting: > *http://pastebin.com/KUUJmFBw* <http://pastebin.com/KUUJmFBw> > Ignore the commented out code, it is redundant. > What is confusing me is as follows: > I define and call the Custom Search Control at line 19 > at line 25 I call the DrawOptions method and these successfully stick > So based on line 25, I define the ImageSearch method and set the options > at line 30. > Then I Draw and Execute the control at 32 and 33. > In the arguments i'm adding the variables/methods I called at 25/28. > Drawoptions successfully update but ImageSearch.* options fail to work. > I'm certainly missing something. Any tips highly appreciated with thanks. > > -- > 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] > To view this message on the web, visit > https://groups.google.com/d/msg/google-ajax-search-api/-/0GdVIhTCueoJ > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en > -- Jeremy R. Geerdes Generally Cool Guy Des Moines, IA If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! http://www.debraheightswesleyan.org -- 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] To view this message on the web, visit http://groups.google.com/group/google-ajax-search-api?hl=en_US For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
