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 7013
After serious contemplation, on or about Friday 29 April 2005 5:25 pm ex************* **********@eart hlink.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.infosystem s.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_styles heet.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**********@w ebpagesorcery.c om> said: After serious contemplation, on or about Friday 29 April 2005 5:25 pm ex************* **********@eart hlink.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**********@w ebpagesorcery.c om> said: After serious contemplation, on or about Friday 29 April 2005 5:25 pm ex************* **********@eart hlink.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_styles heet.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_styles heet.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 written in
C#. I created a small .exe file to test that the library builds
propertly from configuration and that it communicates properly. This
work great in the System.Windows.Forms. However, when I use the
library in a web enviroment things...
|
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 to add a dictionary of name-value pairs. In other
words, instead of a single name-value, I want to add a name-value
collection in there. I could do this:
|
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 evidenced by the fact
that it is running on a production box using the same web.config (but not
the same parent web.config). When I call the EncryptSymmetric() method, I
get this error:
Server Error in '/Store' Application....
|
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 NameValueCollection.
Basically I want to do something similiar to what occurs with a
System.Configuration.Provider.ProviderBase Initialise method - the provider
is passed a NameValueCollection containing attribute names and their
associated...
|
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 install the dll to the same
directory as the exe which uses it, everything works as expected but if I
load the dll in any other directory, I get the following error...
2007-02-04 16:36:51,171 DEBUG CentrifugeBHO.CentrifugeBHO -
dllPath =...
| |
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 internet-account.
I am using cdosys with 'late binding'. I try to send mail with an attachment to a few mailaddresses (strTo)
The *exact same code* (with other smtpserver-login and pw strings) does work on various other PC's with various other...
|
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 code.
The configuration section is contained within the exe (it's a simple test
case!) and everything works well debugging within the IDE or if the
application is deployed on a drive or share that has been granted full trust.
For the share the...
|
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 'System.Security.Permissions.FileIOPermission,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed. (machine.config) --->
System.Security.SecurityException: 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 ExeConfigurationFileMap();
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |