Hi all
I'm doing my first CSS with a CGI, and I'm haivng some configuration problems.
I'm on a Mac, Panther.
I've got a CGI that prints a head with "@import url" to connect to a
stylesheet. The
web page comes out fine, but without the stylesheet applied.
The CGI is in the systemwide cgi-bin
(/Library/WebServer/CGI-Executables), and I've
tried the stylesheet in both the systemwide web documents folder, and
my own local
web folder. Same effect - zip. I've tried little variations on the
import (slashes, etc), to
no effect. I've been advised that the @import is the correct method
(although I have no
experience here).
If I save the source of the page to a file in my local web folder, and
simply open it up as a
static page, the CSS is applied as it should be. No trouble there.
The Apache log gives me complaints about the imported file not
existing, and one
weird one about not being able to find a file called cpan.css. What the dilly?
Mike
--
"It's beyond my ken... and my Barbie, and all of my action figures." 9 6987
After serious contemplation, on or about Friday 29 April 2005 5:25 pm ex***********************@earthlink.net wrote: Hi all
I'm doing my first CSS with a CGI, and I'm haivng some configuration problems. I'm on a Mac, Panther.
I've got a CGI that prints a head with "@import url" to connect to a stylesheet. The web page comes out fine, but without the stylesheet applied.
The CGI is in the systemwide cgi-bin (/Library/WebServer/CGI-Executables), and I've tried the stylesheet in both the systemwide web documents folder, and my own local web folder. Same effect - zip. I've tried little variations on the import (slashes, etc), to no effect. I've been advised that the @import is the correct method (although I have no experience here).
If I save the source of the page to a file in my local web folder, and simply open it up as a static page, the CSS is applied as it should be. No trouble there.
The Apache log gives me complaints about the imported file not existing, and one weird one about not being able to find a file called cpan.css. What the dilly?
Mike
Did you use the escape character "/" in front of the "@" character? Try
"/@import "myfavorite.css: unless you are using the format"
print qq~
<html>
<body>
</body>
</html>~;
--
Later,
Darrell Stec da*****@neo.rr.com
Webpage Sorcery http://webpagesorcery.com
We Put the Magic in Your Webpages
On 2005-04-29 17:23:38 -0400, Lauri Raittila <la***@raittila.cjb.net> said: in comp.infosystems.www.authoring.stylesheets, Mikey wrote: The web page comes out fine, but without the stylesheet applied
URL?
What I have is essentially
print '<style type="text/css" title="text/css">
<!--
@import url("the_stylesheet.css");
-->
</style>';
But where should the stylesheet be located?
--
"It's beyond my ken... and my Barbie, and all of my action figures."
>> I've got a CGI that prints a head with "@import url" to connect to a stylesheet. The web page comes out fine, but without the stylesheet applied.
The CGI is in the systemwide cgi-bin (/Library/WebServer/CGI-Executables), and I've tried the stylesheet in both the systemwide web documents folder, and my own local web folder. Same effect - zip. I've tried little variations on the import (slashes, etc), to no effect. I've been advised that the @import is the correct method (although I have no experience here).
If I save the source of the page to a file in my local web folder, and simply open it up as a static page, the CSS is applied as it should be. No trouble there.
The Apache log gives me complaints about the imported file not existing, and one weird one about not being able to find a file called cpan.css. What the dilly?
Mike Did you use the escape character "/" in front of the "@" character? Try "/@import "myfavorite.css: unless you are using the format" print qq~ <html> <body> </body> </html>~; --
Thanks, but no joy. I put my snippet above.
It seems like doing a print '<stuff>'; in my cgi is not the
best method. I was thinking of using CGI.pm .
--
"It's beyond my ken... and my Barbie, and all of my action figures."
On 2005-04-30 02:33:52 -0400, Darrell Stec
<da**********@webpagesorcery.com> said: After serious contemplation, on or about Friday 29 April 2005 5:25 pm ex***********************@earthlink.net wrote:
Hi all
I'm doing my first CSS with a CGI, and I'm haivng some configuration problems. I'm on a Mac, Panther.
I've got a CGI that prints a head with "@import url" to connect to a s
I suddenly realized that I may have two problems here, or a problem of a
different sort.
My Apache log gives me this:
[client 127.0.0.1] File does not exist: /Library/WebServer/Documents/cpan.css
[client 127.0.0.1] File does not exist: /Library/WebServer/Documents/cpan.css
[client 127.0.0.1] script not found or unable to stat:
/Library/WebServer/CGI-Executables/the_stylesheet.css
[client 127.0.0.1] script not found or unable to stat:
/Library/WebServer/CGI-Executables/the_stylesheet.css
Now what could "cpan.css" be? It's not a file referenced by my CGI or
my stylesheet. Is
there a CPAN pm that needs to be installed, and some file put up in my
web page folder?
--
"It's beyond my ken... and my Barbie, and all of my action figures."
On 2005-04-30 02:33:52 -0400, Darrell Stec
<da**********@webpagesorcery.com> said: After serious contemplation, on or about Friday 29 April 2005 5:25 pm ex***********************@earthlink.net wrote:
Hi all
I'm doing my first CSS with a CGI, and I'm haivng some configuration problems. I'm on a Mac, Panther.
I've got a CGI that prints a head with "@import url" to connect to a s
Okay, it looks like there was a css file used for the cpan website; why Apache
is looking for it is beyond me. My browser did not have a default stylesheet
selected.
I set the default stylesheet to my CGI's, and that worked fine. Then I put the
browser back to no default, and that ended the references to cpan.css in the
Apache log. Weirdness.
However... I cannot get the @import url to work, and I figure it must be either
some fundamental setup problem with Apache.
I can get the following to work:
<link rel="stylesheet" type="text/css"
href="http://localhost/the_stylesheet.css" />
But naturally I don't want to have hard references in my CGIs.
Please excuse me as I tend to ramble in my posts. A decade of bad habits.
Mike
--
"It's beyond my ken... and my Barbie, and all of my action figures."
On 30/04/2005 14:29, Mikey wrote:
[snip] print '<style type="text/css" title="text/css">
I don't think that text/css is a very good name for your style sheet.
The value of the title element may be presented to the user so they can
choose between alternate style sheets, so the name should be meaningful.
If you only have one overall style for the document, you could do away
with the title attribute altogether.
<!--
It is not necessary, nor really desirable, to "hide" SCRIPT or STYLE
element content anymore. This particular technique was necessary in the
past, but not any longer.
@import url("the_stylesheet.css");
[snip]
But where should the stylesheet be located?
In the same location you would expect if that were a link: the directory
of the current document. Probably /cgi-bin/, which I doubt is the most
appropriate location for a style sheet.
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Mikey wrote: What I have is essentially print '<style type="text/css"> @import url("the_stylesheet.css"); </style>'; But where should the stylesheet be located?
If you use full path from the DocumentRoot to the CSS file, it will
work. You are starting from the current directory which is
../cgi-executable/ and your CSS file is not there, obviously.
From your other posts I'd say the path should be
"/the_stylesheets.css". That is, you have put the stylesheet in the
DocumentRoot.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: phillip |
last post by:
This is interesting, I have attached my web.config file and the
exception I have been logging. I created a library which provide data
access to a database and a control system. The library is...
|
by: Water Cooler v2 |
last post by:
I know that we can add a single name value entry in app.config or
web.config in the configuration/configSettings/appSettings section like
so:
<add key="key" value="value" />
Question: I want...
|
by: Jess Chadwick |
last post by:
I am attempting to use the Enterprise Library (Jan 2006) Cryptography block
to encrypt a credit card number in my ASP.NET 2.0 Commerce Server
application. Everything is configured correctly, as...
|
by: Michael Lang |
last post by:
I was basically wanting to know how to use the System.Configuration
namespace to be able to load an arbitrary number of unknown attributes on an
element in a custom section in the .config into a...
|
by: Jeff Hegedus |
last post by:
I have a dll that requires some configuration data. I put the configuration
data in a custom configuration section in a config file that is loaded in
the installation folder of the dll. If I...
|
by: Alberto |
last post by:
Can you tell me how to read and modify a value in the app.config file using
this class?
Thank you very much
|
by: Arno R |
last post by:
Hi all,
I am sending mail from my apps with CDO nowadays.
However I have one client where this will not work until now.
I am thinking this is related to the provider where the client has his...
|
by: =?Utf-8?B?RG91Z2llIEJyb3du?= |
last post by:
Hi
I've written custom configuration section (inherits from
System.Configuration.ConfigurationSection) to simplify the contents of the
config file and to make life easier when accessing them in...
|
by: Mike |
last post by:
Hi
I have problem as folow:
Caught Exception: System.Configuration.ConfigurationErrorsException:
An error occurred loading a configuration file: Request for the
permission of type...
|
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= |
last post by:
Hi, thanks, mister
The code
string rutaConfig = tbRutaConfigServicioBase.Text;
'// Map to the application configuration file.
ExeConfigurationFileMap configFile = New...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |