PDA

View Full Version : Outside linking in .cgi


TWcast
08-06-2007, 02:08 PM
I have a .cgi script I am using for the main part of my site, and have since added seperate folders with other scripts. My problem is, when you click on a link in the .cgi pages, the new page and folder DO come up, but the address bar is still on the .cgi script, thus not allowing people to "log in" to the other programs on my site.

My question is: Is there a way to write a code snippet to allow outside linking? I am not too technical, so I hope you understand my question.

To have a look, go to http://www.tackwagon.com (http://tackwagon.com) and then click the link for community. Under the header image, is a list of links. Click on any link, and you will still see the .cgi address in the addy bar.

BUT, when click on an adsense code, it comes up with the right address in the bar, leaving my site completely.

Thanks for any help on this matter.

nkrgupta
08-06-2007, 07:59 PM
The reason you links are opening without a change in the address bar is the use of frames.

A view source shows:

<frameset rows=0,80,0.1 frameborder=NO border=0 framespacing=0>

<frame src="welcome.cgi?do=top" name=right frameborder=NO name=top scrolling=NO>

<frame src="login.cgi?com=&command=&showblog=&basicor=&who=&all=&blog=&addcomment=&subscribe=&group=&showuser=&play=" frameborder=NO scrolling=AUTO name=down>

<frame src="welcome.cgi?do=bt&" name=right frameborder=NO name=top scrolling=NO>
</frameset>

Take a look at http://www.w3.org/TR/html4/present/frames.html to get an idea of how frames work. But unfortunately, your site's HTML is very poorly written and needs to be overhauled in order to be even decent enough.