Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Launching links in frameset * ignore the others

Quote Reply
Launching links in frameset * ignore the others
I'm attempting what should be a fairly easy mod that launches the site links inside of a frameset with a footer containing a rating form specific to the site in the main frame. It will also have a link to colapse the frameset, and to return to the directory of sites. So here's the deal, I'm thinking of just using an external script, which will be called by the jump.cgi script. What I need to know is how can I get the site's title from inside the jump.cgi, in order to pass it along to the frame script. Here is what I started with: (inside jump.cgi)

# Let's get the URL.
open (URL, "<$db_url_name") or &error ("unable to open url database: $db_url_name. Reason: $!");
while (<URL> ) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");
# My addition, I need to put the title
# into $title
# Frame it Mod ~ Let's get the title.
open (URL, "<$db_links_name") or &error ("unable to open links database: $db_links_name. Reason: $!");
while (<URL> ) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");

# I need help with getting this variable ;(



Further on, I added this:

# Now let's send the user to the url..
print "Location: http://www.gqfitness.com/cgi-bin/frameit.cgi?url=$goto&title=GQ+Fitness.com,+Directory:$title\n\n"

# ... this part should work,
# once I have the $title variable ...

Help pleez Wink



------------------