Forum OpenACS Q&A: rendering page in a frame

Collapse
Posted by Nagita Karunaratne on
Hi,

Has anyone able to render a page within a frame window.

I want to put the dotLRN index page into a frame but the frame HTML tag asks for a 'src' parameter and dotLRN generates pages as strings.

I have tried to:

1. define the frameset in dotlrn-master which creates the frames but then I have no way of loading the page

2. define the frameset in index page and have an empty dotlrn-master but this does not render at all.

What i want to do is assemble a page consisting of links to all the communities, classes, forms, faqs, calendars etc. Then place it in the left frame. Selecting a link places the corresponding item in the right frame.

Is this possible? Any hints?

Collapse
Posted by Nagita Karunaratne on
Hello,

Think I've solved this problem by copying the way the CMS package implements the same thing.

The index page for the CMS does not seem to use a 'master' template. It just defined the frameset and loads the correct frame by calling a tcl script directly. I just put the tcl that gets the links into that script and added the script name to the src parameter of the appropriate frame tag.

I wouldn't have thought you could call a tcl script from a <frame> tag.