If there were a way to keep the browser from caching javascript, then I can
hide it.  I've been playing around with this every once in awhile, and
thought I had it, but IE caches the javascript and allows a workaround.  My
method is to call the javascript as such <script type="text/javascript"
src="js.cfm">.  Since the source of the javascript is a .cfm file I can then
include conditional logic to keep it from being viewed directly, but I have
to use different code for IE and for Netscape.  It works, just IE allows the
workaround because the javascript is cached and it doesn't go back to the
server, which means I can't validate the source of the request.

Ho hum, back to the drawing board!

Dan

-----Original Message-----
From: Robert Sher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 26, 2000 10:19 AM
To: CF-Server
Subject: Comment out Javascript in browser but not ColdFusion?


Is there a way to comment out Javascript codes to prevent the browser from
displaying them?  I would like to hide my Javascript from public view but
not from ColdFusion so that ColdFusion can process it.  Thanks in advance.
----------------------------------------------------------------------------
--
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to