go ahead... be a heretic | |
PerlMonks |
Included cgi does not get CSS formatted?by Jman1 (Acolyte) |
on Apr 07, 2009 at 00:53 UTC ( [id://755904]=perlquestion: print w/replies, xml ) | Need Help?? |
Jman1 has asked for the wisdom of the Perl Monks concerning the following question:
RESOLVED:
The problem was that I was doing
$c->start_td(-id=>'foo', -width=>'20', -valign=>'top'), instead of $c->start_td({-id=>'foo', -width=>'20', -valign=>'top'}), The CSS must look for 'foo' and it didn't find it because the perl script was incorrect. It provided <td> instead of <td id="foo" etc>. --------------------- I inherited a webpage which includes a .inc file. The resulting combination is somehow styled by a CSS file. It works great. I want to change from the .inc file to a perl script so that it can change dynamically. I created a script which outputs exactly the same contents of the .inc file and included it by simply changing the line <!--#include file="foo.inc"--> with the line <!--#include file="cgi-bin/bar.pl"--> I'm using apache with server-side includes turned on. Everything works perfectly except that no formatting is applied to the portion of the page which was previously described by the .inc file and now is created by the .pl file. Any ideas? I've tried adding a link to the CSS file as a parameter to the the start_html method ('-type'=>'text/html', '-src' => '/css/foo.css'). I tried renaming the .pl to a .css. (Dumb idea, but worth a shot.) Apologies if this is a dumb question. I've never used CSS before.
Back to
Seekers of Perl Wisdom
|
|