Spidy has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedding CGI into frames?
by shenme (Priest) on Sep 10, 2004 at 04:07 UTC | |
Some people have used invisible frames to interact with CGIs. It's just like normal CGI, except that you take care not to reset the frameset. As for parameter sharing among frames, the usual idea is to have variables declared outside of the individual frames, plus some Javascript routines to manage transfering data around between the frames. If I sound vague it's because it has been awhile set I set one of those up... three years since I last touched it. Here's some disconnected (and ugly (and old (very old))) snippets: From the first CGI: These are separate routines as in-between I build up and output the large Javascript data arrays. All this was patched together from various books and hints around the web. The books are better now, I suppose. Good luck. | [reply] [d/l] [select] |
|
Re: Embedding CGI into frames?
by Errto (Vicar) on Sep 10, 2004 at 04:10 UTC | |
I'm not sure what you mean by embedding CGI into frames. When you have an HTML frameset, you can specify the URL for each frame, and you are perfectly free to have that URL be a CGI program. If you would like to have a single CGI script generate an HTML document that appears in multiple frames, then you should use <iframe> tags within the body of that document. For your second question, it is not possible for a server-side CGI program to automatically query the parameters from other frames that happen to be loaded in the client. However, this can be done on the client-side using Javascript. This site has some FAQs that I have found helpful in the past. | [reply] [d/l] |
|
Re: Embedding CGI into frames?
by monkey_boy (Priest) on Sep 10, 2004 at 08:41 UTC | |
I should really do something about this apathy ... but i just cant be bothered
| [reply] |
|
Re: Embedding CGI into frames?
by Spidy (Chaplain) on Sep 10, 2004 at 13:52 UTC | |
Also, would it be possible to get the parameters using something like param('framename.varname')? | [reply] |