Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling Frames Guru's

Status
Not open for further replies.

jez

Programmer
Apr 24, 2001
370
VN
Hey there,

I have a set of perl scripts that populate a '3-frame' frameset (i.e. the results of each script is what appears in each frame).

Like most framesets different pages and scripts appear in the main (non-nav) frame.

How can i link to the frameset but not with the default main page (that is the one coded in the html of the frameset).

This may be a bit trickier, since i mentioned non of the pages are static - i.e. any links are to scripts not pages.
But i don't see that this should be that much of a problem.

I could create other framesets that mirror the first, but this might get out of hand and is just a work-around.

Any ideas?


Many thanks

Jez :)
 
You should be able to use a NAME=FrameName inside your <FRAME> TAG and then put your CGI information into Target=FrameName. Are your Perl script SSI (Server Side Includes)?
 
You should be able to use a NAME=FrameName inside your <FRAME> TAG and then put your CGI information into Target=FrameName. Are your Perl scripts SSI (Server Side Includes) or regular CGI calls?

If they are regular CGI calls your could just use:

<A HREF=&quot;script.cgi?var1=1&var2=3&quot; TARGET=&quot;FrameName&quot;>Link Text</A>

Otherwise you'll have to find out how to output text to the right frame using Perl.
 
Well what I am trying to do is to link from the main frame of one framset to a different frameset with something other than the main frame content in it.
This might sound strange but it is because the site doesn't use frames as a rule, but the scripts really need them to be efficient.

The scripts organise some files that are available for download, and one section using them (and frames) needs to link to the other section using them, but to specific pages generated by the scripts.

BUT I have thought of a way, and that is to change the contents all three frames so that they appear to be the other page (this works because the frames are the same size), and then just making sure that all links have the right target value.
It is a bit messy as one section's pages will appear under the URL of a completely different area...and any changes to either framesets pages/scripts will have to take this into account but it'll work.
Oh and they are regular CGI scripts.

Many Thanks

Jez
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top