Google Ads: Was: Setting a Cookie...

2004-12-08 Thread Bill Stephenson
Thanks for the pointer Bob, I read a few of the Google links you pointed out and now understand why this cannot be done. I guess I'll have to work a little bit around this one. I found that I can set/read/manipulate a cookie with JavaScript, (GoLive has some tools for this) but I haven't tested

RE: Setting a Cookie...

2004-12-08 Thread Bob Showalter
Bill Stephenson wrote: > How can I set a cookie when someone visits my home page? > > I've tried using a server side include like so > > # code # > #!/usr/bin/perl -w > > # This is in my html page: > # [snip cgi ] Your code to set the cookie

Re: Setting a Cookie...

2004-12-08 Thread Bill Stephenson
I apologize, the code I sent previously does create an error, this code does not... # code #!/usr/bin/perl -w use strict; use CGI qw/:standard/; use CGI::Carp('fatalsToBrowser'); my $Q = new CGI; my $demo_uses; $demo_uses = $Q->cookie('demo_tracker'); if (

Setting a Cookie...

2004-12-08 Thread Bill Stephenson
How can I set a cookie when someone visits my home page? I've tried using a server side include like so # code # #!/usr/bin/perl -w # This is in my html page: # use strict; use CGI qw/:standard/; use CGI::Carp('fatalsToBrowser'); my $Q = new CGI;

RE: Using a CSS file

2004-12-08 Thread Graeme St. Clair
David & Sean: the hints about cgi-bin and htdocs (plus my own unfollowed-up attempt at 'src' => '../blah.css' were enough. I simply moved blah.css to htdocs, and bingo. Lawrence: you seem to be suggesting something close to my $css approach, but as I have a couple of other pages to bring into lin

Re: Using a CSS file

2004-12-08 Thread Lawrence Statton
> > > 2) 'blah.css' contains only the CSS specs, nothing else. Is that as it > > should be? > > Yes > Well -- or not :) Just as we can use Perl to produce valid HTML, we can use Perl to produce valid CSS. I use it often to produce dynamic CSS based on User-Agent to work around gross deficien

Re: Using a CSS file

2004-12-08 Thread Sean Davis
On Dec 8, 2004, at 10:52 AM, David Dorward wrote: On Wed, Dec 08, 2004 at 07:47:09AM -0800, Graeme St. Clair wrote: [Wed Dec 08 10:30:01 2004] [error] [client ###.###.###.###] c:/program files/perl_apache/apache/cgi-bin/fred/blah.css is not executable; ensure interpreted scripts have "#!" first

Re: Using a CSS file

2004-12-08 Thread David Dorward
On Wed, Dec 08, 2004 at 07:47:09AM -0800, Graeme St. Clair wrote: > [Wed Dec 08 10:30:01 2004] [error] [client ###.###.###.###] c:/program > files/perl_apache/apache/cgi-bin/fred/blah.css is not executable; ensure > interpreted scripts have "#!" first line Looks like your server is configured to

Using a CSS file

2004-12-08 Thread Graeme St. Clair
I have code like this in a Windows XP sys, w. Apache 1.3.27 and Perl 5.6.1:- $formData = new CGI(); print $formData->header( -expires=> 'now'); print $formData->start_html( -title => $title, # -style => { 'src' => 'blah.css' },