Remember, ColdFusion is server side and JS is client side. As far as CF
is concerned, there is no JavaScript, there is no HTML, there is only
NON CF crap.

So, it doesn't matter if you are working around JS or HTML, your lock is
the same, Example:

<script>

        function annoyMe() {
                <CFLOCK SCOPE="Session" TYPE="ReadOnly" TIMEOUT=3>
                alert("Hi #JSStringFormat(Session.Name)#");
                </CFLOCK>
        }
</script>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Chris Norloff [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 13, 2001 9:29 AM
> To: CF-Talk
> Subject: lock var inside JS script?
> 
> 
> I'm reviewing some code, and found a
> "<cfif not session.web_access>" inside a javascript function.
> 
> I assume this read should be locked, but I'm not sure how to 
> do it inside the js function.
> 
> I could move session.web_access into another scope before the 
> js function, but since it's someone else's code I'm wary of 
> doing that because it could have effects I can't see now.
> 
> Ideas?
> 
> thanks,
> Chris Norloff
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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