What about creating a custom tag that passes an attribute.
<CF_JAVASCRIPT Enabled='YES'>
That way the javascript would be in a .cfm file. This does not hide it
from the browser, but it does add a layer of security around grabbing a
.js file.
In the custom tag you would have an if statement:
<cfif isDefined('attributes.enabled')>
<!--- process javascript --->
<script language="JavaScript1.2" src="checkfields.js"></script>
<cfelse>
<!--- do not process javascript --->
</cfif>
This way a person could not put in there address bar "checkfields.js",
like Dan Haley had mentioned, to grab the javascript source file.
Just a thought.
Jim M.
[EMAIL PROTECTED]
--- Dan Haley <[EMAIL PROTECTED]> wrote:
> The only problem with that is that the user can put checkfields.js
> into
> their address bar and download the file directly.
>
> Dan
>
> -----Original Message-----
> From: Gabriel(sinectis) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 26, 2000 12:24 PM
> To: CF-Server
> Subject: RE: Comment out Javascript in browser but not ColdFusion?
>
>
> If you put your code in a separate file with "js" extension and
> include it
> in your template.
> Something like this
>
> <script language="JavaScript1.2" src="checkfields.js">
> </script>
>
> where checkfields.js is your javascript file
>
> gabriel
>
> -----Original Message-----
> From: Robert Sher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 26, 2000 2:19 PM
> 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
>
------------------------------------------------------------------------------
> To unsubscribe, send a message to [EMAIL PROTECTED]
> with 'unsubscribe' in the body or visit the list page at
www.houseoffusion.com
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com