[thelist] Dynamically Generated External CSS file (fwd)

Martin martin at members.evolt.org
Thu Jun 7 20:46:20 CDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric Engelmann wrote on 7/6/01 11:52 pm

><snip>But you could do it with basic server side stuff.</snip>
>
>--> Good point. But the externally linked dynamic file has the advantage of
>being able to run in *any* file (htm,asp,cf), on any server, without any
>sort of server side parsing. I'm sort of a stickler for pure static HTML
>where possible. :-)

But not pure static css, right?

>As for your querystring concept (which is quite ingenious I must say), 

Like most ingenuity, born out of pure laziness. I was testing multiple
stylesheet variants, and didn't want to have to do a separate set of
HTML files for each one (which can get quite tedious when you're
doing 20 stylesheets and testing with 3 files, even if it's a single
line change)

>you
>should be able to get the Referrer URL (Not sure that the external css file
>could detect the referrer and query string, but I assume it would) or by
>reading the cookie and do the dynamic style change via the external file
>method, too.

True.

Cheers
Martin

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
Comment: Content after the signature block is *not* signed

iQA/AwUBOyAtkXHoHnCoNczLEQIznACgxnfbvCr6EfygNa4TX0kKEExlDjgAoPVO
6I/0v0aAGmyACGzjFG5ABqqP
=8jYs
-----END PGP SIGNATURE-----


_______________________________________________
email: martin at easyweb.co.uk             PGP ID: 0xA835CCCB
       martin at members.evolt.org      snailmail: 30 Shandon Place
  tel: +44 (0)774 063 9985                      Edinburgh,
  url: http://www.easyweb.co.uk                 Scotland





More information about the thelist mailing list