You can't open a separate page in a div element. You must use an  
iframe contained within that div element. In that case, the process  
for setting the link target is exactly the same as it would be for  
opening it in a specific window. Give the iframe a name, and pass that  
name to the searcher's setLinkTarget method. The link below will  
provide some more information on the iframe element:

https://developer.mozilla.org/en/HTML/Element/iframe

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

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://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, at 
http://jgeerdes.blogspot.com 
  !


On Dec 7, 2009, at 5:45 AM, wunder_y wrote:

> I have implemented a google search customised engine using the Google
> Ajax Search
> API on my website.
> I would like the links embedded in the search results to open in a div
> and
> not on a new page or on the same page.
> How can i set the link target to a "div" and not a "frame" as frames
> are already
> deprecated. The "object" element also does not seem to work.
>
> Any Ideas ?
>
> --
>
> 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 
> .
>
>

--

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