Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
superbullet #1
Creating a custom cflock in cfscript.
I have been thinking on how to do this for a few days now. I am building a few
pages in cfscript, where the ENTIRE page is cfscript, no cftags, the only area
I allow cftags are user-defined functions (methods).
And the problem is locking, when reading and writing to sessions and
application variables. I have not found a way to do this without escaping the
script from within the cfscript block. Lets say we set like 10 application
variables, and we need to surround it with a cflock in cfscript, how can I
possibly do this without closing the cfscript block? The reason I don't want to
close it is becuase I am using try and catch within it, and closing it wouldn't
make it work correctly.
So what I am looking for is something like a custom cflock like:
<cfscript>
variables.cflock()
{
code...
}
</cfscript>
Or something liek this, as long as I can do it without closing the cfscript
block or putting the entire lock code into a component or udf.
Any ideas would be appreciated here.
superbullet Guest
-
<cfscript> autocaps problem </cfscript> - betcha can't fix this!
First, I'll tell you up front that I am clueless when it comes to cfscript. So I apologize if this question is off topic. I have a nice little... -
Creating Custom Line Styles
How can I create a basic line style of my own (or a custom one). It's quite particular what I want. I'm doing spome CAD illustrations and I need... -
Creating custom classes
Hi all, I have a problem where I am creating objects in a loop. I have the problem that when setting instance properties, the properties of the... -
Creating a Custom Cursor
I used photoshop to create a custom black and white cursor. It is 16x16 grayscale. It's saved as a bitmap. I guess that makes it 8 bit instead of 1... -
Creating a custom scrollbar? I got nothing.
Hello everybody, I did a little research on this forum and took a peek at the director-online.com tutorial and still have been unable to find an... -
superbullet #2
Re: Creating a custom cflock in cfscript.
Does anybody have any ideas?
superbullet Guest
-
jorgeloyo #3
Re: Creating a custom cflock in cfscript.
I would also like to find out.
I also prefer cfscript for many things, but cflock and cftransaction are two reasons i use CFML in a component still.
jorgeloyo Guest



Reply With Quote

