lishevita has asked for the wisdom of the Perl Monks concerning the following question:
I need to include a file along the lines of: <!--#include virtual="/directory/structure/file.pl?project=projectName-->
But I have a problem. I don't know in advance what project I need to include. I want that to be passed to the file in the main URL like:
www.site.com/directory/file.shtml?project=projectNatme
I have parsed the variable into a usable Javascript variable, and tried to write the include file into the page like
document.write( '<!--' + '#include virtual="/directory/structure/'+'file.pl?project='+projectName+'"-->');
in an attempt to pass the information onward to the Perl script, but this is not working. (If I don't split up the include call, the include happens without the variable being added. If I do, it doesn't work at all.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Telling a file included in a web page something
by clwolfe (Scribe) on Jun 28, 2006 at 03:23 UTC |