Hi Monks I have been trying to link an external css to my run mode but have been unsuccessful so far. I have tried three ways of doing it 1. directly in template file like so..
<LINK REL=StyleSheet href="file:///C:/Program Files/Apache Software Fo +undation/Apache2.2/cgi-bin/myapp/templates/basic.css" TYPE="text/css" + MEDIA=screen>
2. declared as template var in runmode and used TMPL_VAR in path above in template file
sub browse : Runmode { my $self = shift; my $template = $self->load_tmpl("browse_form.html"); $template->param (CSS => 'file:///C:/Program Files/Apache Software + Foundation/Apache2.2/cgi-bin/linkmotor/templates/basic.css'); + return $template->output; }
3. Declated in runmode like so..
$self->query->start_html( -style => {'src'=>'http://www.mystyle.com/st +yles/style.css'} );
The problem is that when I view source in the first 2 ways, I see the linking with css path and when I copy source and save it as a dummy html file, it works - the styles take over. Why then it doesn't recognize css via calling the runmode? Thanks in advance for your help.
In reply to CGI::Application run mode does not recognize external css by Prat824
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |