On Sat, 27 Sep 2003, Puneet Kishor wrote:

PK>see, the problem is not really being able to fire two frames (yes, js
PK>is the solution)... the problem is firing them from one perl script
PK>calculating/creating values that have to be displayed in two frames...
PK>as I understand... one script usually has one template associated with
PK>it (although it could have more templates... there is nothing in the
PK>docs that says it can't). What I cannot to is fire two scripts...
PK>because all the relevant calculations are in one script... I just want
PK>to take the results and divvy them up into two frames.

Ah.

It's still sort of do-able, depending on your reason for frames.  If
they're just there to, say, provide scrollbars and you don't mind
refreshing the whole page, you can do something like this:

Button launches script into _top.  Script builds all the frames, writes
them out (either as complete HTML files or as parms to be stuffed in
H::T later) to something persistent, then returns the top-level HTML to
the browser.  That top-level HTML either refers to files that were just
written, or to a subsidiary script that just populates templates.  (In the
former case, you have to worry about expiring old files and handling
404's; in the latter you just have to worry about expiring old data, and
the subsidiary script can gracefully handle references to data it can't
find.)

It's not quite as pretty as just refreshing two frames, but I can't think
of any other way to do it.  Depending on the structure of your page, you
might be able to make the frames that need refreshed a nested framed page,
though.

-- 
Karen J. Cravens  [EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to