views:

343

answers:

2

Hi Guys,

I've got the google cse on my site to display results in the right place but when i click on them it opens in a new page, i want it to open in the same page but can't figure it out.

All the files are uploaded and the page can be found at

http://www.alwaystwisted.com/sandbox/stagecraft/template.html

Thanks in advance

Regards

Stu

+1  A: 

I found the info and changed some of my javascript (the last bit within the page)

function OnLoad() { var cseo=new CSEOverlay("016190657123569369479:3uma0emyzom", document.getElementById("searchbox_016190657123569369479:3uma0emyzom"), document.getElementById("results_016190657123569369479:3uma0emyzom")); cseo.searchControl.setLinkTarget(GSearch.LINK_TARGET_PARENT); } GSearch.setOnLoadCallback(OnLoad);

and it works...

Stuart Robson
A: 

Stu,

I've looked far and wide on the internet looking how to have Google CSE results pop up in a pop up/lightbox effect. Can you give me a little more information on how you did it? Which hosting option did you choose (Search element, Iframe, Google-hosted page)? Can you explain what javascript I need in the header? I looked at the source code of your template.html page but I'm not sure what I need.

Your help would be greatly appreciated!

Houston

Houston