I don't think there's any need to use a CFContent tag

----- Original Message -----
From: "Bill Killillay" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 10:23 AM
Subject: CF / JS question


> Ok let me setup what I am trying to do here:
>
> I have been testing/playing with this and almost have it, but yet I am a
> million miles away too.
>
> If I do:
> <script language="JavaScript" src="library/validatesearch.js"></script>
> like normal all works fine.
>
> I can rename the .js file to .txt and then make the page call like so:
> <script language="JavaScript" src="library/validatesearch.txt"></script>
> and this also works.
>
> Now say that I rename the .js file to .cfm and do it like so
> <script language="JavaScript" src="library/validatesearch.cfm"></script>
> then in the .js file which is now a CFM template I had the following
> CFHeader, but it throws JS errors.
>
> <cfheader name="Content-Disposition" value="text/javascript">
>
> I think that I am on the right track here, but it's just a matter of
getting
> the content types setup right, anybody got any ideas, am I on the right
> track, should I be using CFCONTENT?
>
> Thanks,
> Bill K.
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to