Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 38983 invoked from network); 25 Sep 2009 12:27:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 12:27:02 -0000 Received: (qmail 82041 invoked by uid 500); 25 Sep 2009 12:27:01 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 82022 invoked by uid 500); 25 Sep 2009 12:27:01 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 82013 invoked by uid 99); 25 Sep 2009 12:27:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 12:27:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.4.92.90] (HELO mout0.freenet.de) (195.4.92.90) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 12:26:50 +0000 Received: from [195.4.92.25] (helo=15.mx.freenet.de) by mout0.freenet.de with esmtpa (ID Gucheng.Ye@freenet.de) (port 25) (Exim 4.69 #92) id 1Mr9sb-0002rr-QH for modperl@perl.apache.org; Fri, 25 Sep 2009 14:26:29 +0200 Received: from mail-px0-f192.google.com ([209.85.216.192]:36416) by 15.mx.freenet.de with esmtpsa (ID Gucheng.Ye@freenet.de) (TLSv1:RC4-MD5:128) (port 465) (Exim 4.69 #94) id 1Mr9sb-0004qN-Hf for modperl@perl.apache.org; Fri, 25 Sep 2009 14:26:29 +0200 Received: by pxi30 with SMTP id 30so3323265pxi.7 for ; Fri, 25 Sep 2009 05:26:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.25.40 with SMTP id c40mr4793wfj.265.1253881588014; Fri, 25 Sep 2009 05:26:28 -0700 (PDT) In-Reply-To: <1253881028.2736.3598.camel@localhost.localdomain> References: <1253881028.2736.3598.camel@localhost.localdomain> Date: Fri, 25 Sep 2009 20:26:27 +0800 Message-ID: <5712f7b20909250526k487b9227j65a334e3ea00e930@mail.gmail.com> Subject: Re: problem with CSS in a dynamic document From: =?UTF-8?B?5Y+25a2k5Z+O?= To: Chuck Crisler Cc: modperl@perl.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/9/25 Chuck Crisler : > > use CGI; > use DBI; > > my $query=3Dnew CGI; > ... > # output a document > print $query->header(); > print $query->start_html(-title=3D>"Howdy", > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 -style=3D>{-src=3D>'./dynamic.css'}); > print $query->h1('Form Data'); > > > Here is the contents of the file dynamic.css, which I located in the > cgi-bin directory, which is where the perl script is also located. > You may want to put dynamic.css into apache's document directory (/path/apache/htdocs) and change the corresponding line to: -style=3D>{-src=3D>'/dynamic.css'}); All files under cgi-bin are tried to executed by apache.