yep this works but its not what i want and for my concerns it doesnt make sense then to let a single Searcher define the target since i guess the SearchControll overwrites this definition anyway with a global setting
so is it not possible to give a single Searcher of a SearchControll an individual target setting? On 9 Jan., 13:20, Jeremy Geerdes <[email protected]> wrote: > Try searchControl.setLinkTarget(); > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project > quote:http://jgeerdes.home.mchsi.comhttp://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com > [email protected] > > Unless otherwise noted, any price quotes contained within this > communication are given in US dollars. > > If you're in the Des Moines, IA, area, check out Debra Heights > Wesleyan Church! > > And check out my blog, Adventures in Web Development, > athttp://jgeerdes.blogspot.com > ! > > On Jan 9, 2009, at 5:24 AM, ivo.bathke wrote: > > > > > well youre right > > but it still opens up _blank each Searcher. > > heres the code: > > .... > > var pdfSearch = new google.search.WebSearch(); > > pdfSearch.setUserDefinedLabel("BlaBla"); > > pdfSearch.setSiteRestriction("blabla.de/pdf/"); > > pdfSearch.setQueryAddition("filetype:pdf"); > > pdfSearch.setLinkTarget(google.search.Search.LINK_TARGET_BLANK); > > > var htmlSearch = new google.search.WebSearch(); > > htmlSearch.setUserDefinedLabel(" Volltextsuche"); > > htmlSearch.setSiteRestriction("blabla.de"); > > htmlSearch.setQueryAddition("filetype:html"); > > htmlSearch.setLinkTarget(google.search.Search.LINK_TARGET_SELF); > > > var options_pdf = new google.search.SearcherOptions(); > > options_pdf.setExpandMode > > (google.search.SearchControl.EXPAND_MODE_CLOSED); > > var options_html = new google.search.SearcherOptions(); > > options_html.setExpandMode > > (google.search.SearchControl.EXPAND_MODE_CLOSED); > > > searchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET); > > searchControl.addSearcher(pdfSearch,options_pdf); > > searchControl.addSearcher(htmlSearch,options_html); > > .... > > > On 8 Jan., 17:33, Jeremy Geerdes <[email protected]> wrote: > >> Each searcher should have a .setLinkTarget() method. > > >> Jeremy R. Geerdes > >> Effective website design & development > >> Des Moines, IA > > >> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp > >> ://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com > >> [email protected] > > >> Unless otherwise noted, any price quotes contained within this > >> communication are given in US dollars. > > >> If you're in the Des Moines, IA, area, check out Debra Heights > >> Wesleyan Church! > > >> And check out my blog, Adventures in Web Development, > >> athttp://jgeerdes.blogspot.com > >> ! > > >> On Jan 8, 2009, at 10:30 AM, ivo.bathke wrote: > > >>> Hi there, > >>> i would like to see setLinkTarget method in the options for each > >>> Search object. > > >>> So that a BlogSearch opens as target _blank and a restricted > >>> WebSearch > >>> opens as target_self. > > >>> Is this already possible in some other way? > > >>> cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
