Gossamer Forum
Home : Products : Links 2.0 : Customization :

jump.cgi - here's the modification for using it within a frame.

Quote Reply
jump.cgi - here's the modification for using it within a frame.
Hello all,

My website is using the Links script within a frame. One of the problems I had was the script would open the target web page in the frame window, which it is designed to do. Well I have modified the jump.cgi so that it opens the selected web page in a new browser window. The modification is simple. At the bottom of the script replace the following lines:

# Now let's send the user to the url..
if ($goto) {
print "Location: $goto\n\n";
}

With this:

# Now let's send the user to the url..
if ($goto) {
print "Window-target: new\n";
print "Location: $goto\n\n";
}

I hope this proves useful to someone else.

Regards,
Howard Griffith
Webmaster - U.S.S. Voyager (NCC-74656)
http://www.ncc74656.com
Quote Reply
Re: jump.cgi - here's the modification for using it within a frame. In reply to
I handled the same problem in a different way.

I added a "target=_blank" to the a href in site_html.pl where it defines what a link should look like. That way every link opens a new browser window.

What I'd be interested in is how to make the "jump hack" (where people can increase there "hits" by linking back ... part of the MegaLinks Mod) take the user to the entry page for the site. Anyone got any ideas?



------------------
Tony & Roxy
webmaster & webmistress
www.freedomacres.com
Quote Reply
Re: jump.cgi - here's the modification for using it within a frame. In reply to
it's the same!!!!!
Quote Reply
Re: jump.cgi - here's the modification for using it within a frame. In reply to
A new question about frames...

Having it open in a new window is a definate benefit, but would you know how to make it actually create a frame page from scratch, so that the result has the link page, i.e. microsoft.com, in a large top frame, and a navigation bar page that I would create leading users back to the main directory in a small bottom frame?

Robert.
Quote Reply
Re: jump.cgi - here's the modification for using it within a frame. In reply to
Thanks for this thread. Tried each on my site and they work great.
Quote Reply
Re: jump.cgi - here's the modification for using it within a frame. In reply to
Are you saying have it open within a new frame set? IF that's the way you would want it, create your new frame and call it index.html. Put it in your links folder. rename the index.html to whatever you want, like 2_window_pane.html. You would write your new frame index.html to then open that renamed index. I haven't seriously looked at the code though so you might need to go through the scripts and make any changes such as the page builds. You could probably also change the link to you links so that it references a different file name and use index.html as one of the referenced frames. Maybe I'm not clear but should be fairly easy to do.