Nice, your instructions worked, the line
"cseo.searchControl.setLinkTarget("_top");" did the trick, along with
the modified part for "new CSEOverlay".

Much appriciated, thank you :-)

Regds

On Jan 10, 12:29 pm, Jeremy Geerdes <[email protected]> wrote:
> To set a link target with the CSE overlay, you need to alter the code  
> that Google provides in two ways. First, locate the line that reads in  
> part "new CSEOverlay(" and MODIFY so that it starts out like this  
> (leave the rest of the line intact):
>
> var cseo = new CSEOverlay(
>
> And second, ADD a line AFTER that complete call (Watch out! They tend  
> to spread the thing across three lines, one for each argument!):
>
> cseo.searchControl.setLinkTarget(...); // Insert whatever you want to  
> use as the target in place of the ...
>
> 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 10, 2009, at 4:55 AM, tskype wrote:
>
>
>
> > Yes, my site uses overlay :http://t2.dk
>
> > On Jan 8, 11:46 pm, Jeremy Geerdes <[email protected]> wrote:
> >> Are you using the CSE overlay?
>
> >> 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 4:21 PM, tskype wrote:
>
> >>> Hi all, im also looking for a target=_top for my GCS Ajax API  
> >>> results,
> >>> seems as if the HTML code (<input type="hidden" name="newwindow"
> >>> value="1" />)  as posted in
> >>>http://groups.google.com/group/google-custom-search-cse-and-your-site
> >>> ...
> >>> doesent seem to function for me ...
>
> >>> Any ideas?, help much appriciated, thanks
>
> >>> On Jan 8, 5:33 pm, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to