Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Targeting frames

Quote Reply
Targeting frames
Hi everyone!

I am running Links 2.0 on a frames-based site in the typical context of one frame being used as a navigation frame while a second frame is the target for content. I wish to put the "Home|Add Site|Modify Site|..." stuff in the navigation frame. I am using the templates version and between looking at the cgi scripts and site_html_templates.pl, have sufficiently confused myself as to how I can specify a target window. It's definately not as simple as specifying target="parent.contentWindow" in the anchor tag!

Is this even possible since the pages are cgi generated pages?

Any assist would be most appreciated!

Jim

Quote Reply
Re: Targeting frames In reply to
<a href "http://..........." TARGET="frame name here">.....</a>

Quote Reply
Re: Targeting frames In reply to
In your template files, you can also specify this inside your <head>...</head> tags:
Code:
<BASE TARGET="default_target">
where default_target is the name of the frame windown to open the files in. This does have a drawback though. If you want something to open outside the default_target window, you will have to specify something like target="_blank" as part of the anchor for the link. Otherwise, all links will be displayed in the default_target frame window when clicked on.

I hope this helps.

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/