Directly after the line starting var customSearchControl = add the following 
line:

customSearchControl.setLinkTarget(google.search.Search.LINK_TARGET_TOP);

The CSC documentation could use some info about the class methods. I'll raise 
this with the dev team.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
jrgeer...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Mar 10, 2010, at 8:57 AM, Al_T wrote:

> When you click on a link in the search results, it opens the link in a
> new window.  I want it to open in the current window.
> 
> http://www.pmiapp.com/product-search.html
> 
> Search for "pore" (our company manufactures porosity testing
> instruments).
> 
> 
> On Mar 10, 9:49 am, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>> Do you have a link that we can look at to see what you're doing now? It's 
>> very difficult to tell you what to do without knowing what your page is 
>> doing right now.
>> 
>> Jeremy R. Geerdes
>> Effective website design & development
>> Des Moines, IA
>> 
>> For more information or a project quote:http://jgeerdes.home.mchsi.com
>> jrgeer...@gmail.com
>> 
>> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan 
>> Church!
>> 
>> On Mar 10, 2010, at 8:45 AM, Al_T wrote:
>> 
>>> I just upgraded to a business account for the company I work for.  The
>>> code works fine and looks great on the site.  The problem I'm having
>>> is all the links open in a new window.  I saw on the Class Reference
>>> page (http://code.google.com/apis/ajaxsearch/documentation/
>>> reference.html) where it says something about
>>> ".setLinkTarget(linkTarget)" and I was wondering how I would implement
>>> this into the code to get the links to open in the current
>>> (target="_top") browser.  I'm not seeing anything that says where to
>>> add the code, or what specific part of the example to use.
>> 
>>> Thanks for the help.
>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Google AJAX APIs" group.
>>> To post to this group, send email to 
>>> google-ajax-search-...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> google-ajax-search-api+unsubscr...@googlegroups.com.
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/google-ajax-search-api?hl=en.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google AJAX APIs" group.
> To post to this group, send email to google-ajax-search-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-ajax-search-api+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to google-ajax-search-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-ajax-search-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to