I take your point.
I have had a reason for trying to parse .js files through cf though. I was trying to
use CF to dynamically generate the menu
arrays in the dhtml HierMenu scripts. This would not work because any cf code that I
tried to use was being caught as a js syntax
error because it was not being parsed by cf. I could modify the version 3.X scripts
and get them to work with coldfusion but I
have tried just about everything to get the 4.X version to work with cf but they do
not seem compatible. I tried adding .js files
to be parsed by cfserver but that didn't work. I didn't get an error but the menus did
not get built.
Has anyone had any luck using hiermenus 4.X with cf?
[EMAIL PROTECTED] wrote:
>
> Note to note...
>
> All I did was <LINK REL="StyleSheet" TYPE="text/css"
> HREF="style.cfm">, with no changes to iis, and it worked fine. (Which
> doesn't affect my earlier point that there's nothing gained in doing this.)
>
> Robert
>
> -----Original Message-----
> From: C Frederic Valone [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 10:59 AM
> To: CF-Talk
> Subject: Re: CF and custom style sheets
>
> Just a note here,
> I tried to map .js files to cf in iis and it didn't parse them as cf when
> called as <LINK REL="StyleSheet" TYPE="text/css"
> HREF="style.cfm"> I would bet it doesn't like css files much better in that
> format. If anyone has had any luck configuring cf to
> parse these files I would like to get your method.
> Thanks,
> Frederic
>
> Sean Daniels wrote:
> >
> > On 5/10/01 1:27 PM Scott Weikert wrote:
> >
> > > <LINK REL="StyleSheet" TYPE="text/css" HREF="style.cfm">
> > >
> > > I've had some hassles trying to link the page like this... it doesn't
> seem
> > > to properly execute the CF code within.
> > >
> > > Anyone out there tried to do this same thing, and succeeded? Input would
> be
> > > most welcome.
> >
> > Two suggestions:
> >
> > 1. Make a new style sheet for each option, and use:
> >
> > <cfoutput>
> > <LINK REL="Style Sheet" TYPE="text/css"
> HREF="#attributes.stylesheet#.cfm">
> > </cfoutput>
> >
> > Name you style sheets stylegreen.css, styleblue.css, etc.
> >
> > OR
> >
> > 2. Add a mapping in IIS if you can to have CF parse .css files. I've never
> > done this, but conceivably it could work... If you have that much control
> of
> > your environment.
> >
> > Obviously option two would be preferable so you don't have to maintain
> > multiple style sheets.
> >
> > - Sean
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists