calling DHTML to nested table within script?
Posted on 2000-05-09
I have a dhtml script with image map & graphic. It is rather lengthy. Rather that hardcode it into each of my multiple cgi scripts, I would like to keep it separate and have the cgi call it into a table cell.
Unfortunately, I am not so pro at cgi (I am editing a downloaded script) and am not sure of the best ways to (a) include the html and (b) escape or 'print' the html.
I have it defined thus:
open(FILE, "/welmap.html") || die print"please work";
and later called:
<td width="125" rowspan="4" valign="top" bgcolor="#ffffcc">$welmap</td>
This results in a 500 error. The entire welmap.html is
(2) a table in and of itself;
(3) Successfully called in and used in SHTML
Nothing is escaped. Oh yeah, and if I cut and paste the html from the welmap.html document directly into the cgi script (defining $welmap) it works fine. So it's not something in the dhtml itself. I just need to know how to call the .html file, and escape the html once it loads.
Is such a nested table compatible with Perl? And if so, can you *PLEASE* help me figure out how?
Thanks for your time!