RE: CFSCRIPT Question

2005-12-30 Thread Snake
I was sure I read that tags were allowed inside cfscript blocks somewhere,
but it doesn't appear to work.

-Original Message-
From: Andy Mcshane [mailto:[EMAIL PROTECTED] 
Sent: 30 December 2005 10:46
To: CF-Talk
Subject: CFSCRIPT Question

I have a large block of cfscript that I now have to add a stored procedure
call into the middle of. I normally use cfstoredproc elsewhere but how do I
call a stored procedure from within cfscript? 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227977
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT Question

2005-12-30 Thread Andy Mcshane
 how do I call a stored procedure from within cfscript? 

Wrap it in a cffunction tag and call it as a function.

Paul

Now I feel stupid, knew it would be something simple! Thanks.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227978
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT Question

2005-12-30 Thread Adrocknaphobia
Sounds like you are using cfscript unnecessarily.

-Adam

On 12/30/05, Andy Mcshane [EMAIL PROTECTED] wrote:
  how do I call a stored procedure from within cfscript?
 
 Wrap it in a cffunction tag and call it as a function.
 
 Paul

 Now I feel stupid, knew it would be something simple! Thanks.

 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227982
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT Question

2005-12-30 Thread Ben Doom
Is it ever actually necessary?  :-)

--Ben

Adrocknaphobia wrote:
 Sounds like you are using cfscript unnecessarily.
 
 -Adam
 
 On 12/30/05, Andy Mcshane [EMAIL PROTECTED] wrote:
 
how do I call a stored procedure from within cfscript?

Wrap it in a cffunction tag and call it as a function.

Paul

Now I feel stupid, knew it would be something simple! Thanks.


 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227986
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT Question

2005-12-30 Thread Aaron Rouse
Probably not, could be debated that it was on older versions of CF.  I
personally am a cfscript nazi, use it a lot more than I really should.

On 12/30/05, Ben Doom [EMAIL PROTECTED] wrote:

 Is it ever actually necessary?  :-)

 --Ben




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228013
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFScript acting single-threaded

2005-12-22 Thread Adrian Showater
Thanks for the explanation.  The loop endpoint being processed multiple
times is I'm sure the sulprit, and would explain why the loop would break
out after folowing one string to its conclusion.  I unfortunatly deleted the
CFSCRIPT syntax or I would gladly post the example, but thanks for the
offer.

Adrian Showalter
Software Developer
Holmes BizNet
www.HolmesBizNet.com
330.893.3901 ext 102




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227510
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFScript acting single-threaded

2005-12-21 Thread Adrian Showater
Has anyone had issues with cfscript syntax where it doesn't function
correctly?  I had an issue in a CFC where I was looping through an array and
then making recursive method calls to the same method doing the looping.
The loop was supposed to make a call for every item in the array, but it
would just make a call for the first item and then apparantly break out of
the loop, as if it was single threaded and could only handle one task at a
time.  I then took the same exact code, and formated in as tags with no
additional changes other than to convert the script syntax for the method
call into a cfinvoke tag, and it worked fine.  What's up with that?

Adrian Showalter
Software Developer
Holmes BizNet
www.HolmesBizNet.com http://www.HolmesBizNet.com
330.893.3901 ext 102


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227483
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFScript acting single-threaded

2005-12-21 Thread Barney Boisvert
There are some subtle differences between CFSCRIPT constructs and
their equivalent tag-based constructs.  I'd wager that's the
culprit.  The usual suspect: the endpoint of CFLOOP is evaluated once
when CFLOOP runs initially, while the endpoint of a CFSCRIPT for loop
is evaluated each iteration.

If you post a test case written both ways, I'm sure someone (quite
possibly myself) can help figure out the specifics.

cheers,
barneyb

On 12/21/05, Adrian Showater [EMAIL PROTECTED] wrote:
 Has anyone had issues with cfscript syntax where it doesn't function
 correctly?  I had an issue in a CFC where I was looping through an array and
 then making recursive method calls to the same method doing the looping.
 The loop was supposed to make a call for every item in the array, but it
 would just make a call for the first item and then apparantly break out of
 the loop, as if it was single threaded and could only handle one task at a
 time.  I then took the same exact code, and formated in as tags with no
 additional changes other than to convert the script syntax for the method
 call into a cfinvoke tag, and it worked fine.  What's up with that?

 Adrian Showalter

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227484
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript Common Functions and Best Practices

2005-12-08 Thread Larry Lyons
Setting commonly used functions to a 'permanent' memory scope such as server 
or application is a good idea. A better one would be to create a CFC that 
contains the common functions as well as common data and store that CFC in 
the memory scope.

How would that work under a clustered environment? I had thought that in a 
clustered environment, CFC's are not serializable unless you use sticky 
sessions.

thx,

larry 

--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226549
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
Ryan,

I store my UDFs in a CFC called UDFLib. The UDFLib then in turn composes its
own sub libraries for easier code organization:

// Inside the INIT for UDFLib
THIS.Array = CreateObject(component, udflib.ArrayLib).Init(THIS);
THIS.String = CreateObject(component, udflib.StringLib).Init(THIS);
THIS.System = CreateObject(component, udflib.SystemLib).Init(THIS);
THIS.Validation = CreateObject(component,
udflib.ValidationLib).Init(THIS);
 etc ...


Then I store the parent library in the APPLICATION scope, but inside of a
ServiceFactory. I am new to OOP and not sure if this is the best method, but
then in my page pre-request area I have

REQUEST.UDFLib = APPLICATION.ServiceFactory.GetUDFLib();

Then for anywhere on the page I can use calls like:

REQUEST.UDFLib.Validation.IsEmail(FORM.user_email);

Or 

REQUEST.UDFLib.String.ToMixedCase(qBlam.foo);

Since the ServiceFactory is only created once and stored in APPLICATION and
itself creates and stores one copy of UDFLib, then it gets cached while the
application is running.

Hope that helps at all. 

...
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com

Vote for Pedro
-Original Message-
From: Ryan Duckworth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 5:54 PM
To: CF-Talk
Subject: cfscript Common Functions and Best Practices

Currently we have many functions that we use within cfscript.  We are
storing them in the request scope (see 2 examples below).


Here is what I am don't like about this approach:  Every page hit from
every user is loading these common functions.  I personally am not
convinced that the request scope is the best place for these types of
functions.  I'm sure that many of you out there use functions of your
own and from www.cflib.org.  Is the server scope a better place for
these?  Should we only reload the functions if they are not already
defined in the server scope?

Thanks,
Ryan


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226399
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
Just so you know, you can also use COAL to do something similar.

You just create an object out of COAL, and then you can access your
different libraries at the time you need them.

And all of cflib.org's libraries are already in COAL.

You can check out COAL here: http://coal.ryanguill.com/

On 12/7/05, Ben Nadel [EMAIL PROTECTED] wrote:
 Ryan,

 I store my UDFs in a CFC called UDFLib. The UDFLib then in turn composes its
 own sub libraries for easier code organization:

 // Inside the INIT for UDFLib
 THIS.Array = CreateObject(component, udflib.ArrayLib).Init(THIS);
 THIS.String = CreateObject(component, udflib.StringLib).Init(THIS);
 THIS.System = CreateObject(component, udflib.SystemLib).Init(THIS);
 THIS.Validation = CreateObject(component,
 udflib.ValidationLib).Init(THIS);
  etc ...


 Then I store the parent library in the APPLICATION scope, but inside of a
 ServiceFactory. I am new to OOP and not sure if this is the best method, but
 then in my page pre-request area I have

 REQUEST.UDFLib = APPLICATION.ServiceFactory.GetUDFLib();

 Then for anywhere on the page I can use calls like:

 REQUEST.UDFLib.Validation.IsEmail(FORM.user_email);

 Or

 REQUEST.UDFLib.String.ToMixedCase(qBlam.foo);

 Since the ServiceFactory is only created once and stored in APPLICATION and
 itself creates and stores one copy of UDFLib, then it gets cached while the
 application is running.

 Hope that helps at all.

 ...
 Ben Nadel
 Web Developer
 Nylon Technology
 6 West 14th Street
 New York, NY 10011
 212.691.1134
 212.691.3477 fax
 www.nylontechnology.com

 Vote for Pedro
 -Original Message-
 From: Ryan Duckworth [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 06, 2005 5:54 PM
 To: CF-Talk
 Subject: cfscript Common Functions and Best Practices

 Currently we have many functions that we use within cfscript.  We are
 storing them in the request scope (see 2 examples below).


 Here is what I am don't like about this approach:  Every page hit from
 every user is loading these common functions.  I personally am not
 convinced that the request scope is the best place for these types of
 functions.  I'm sure that many of you out there use functions of your
 own and from www.cflib.org.  Is the server scope a better place for
 these?  Should we only reload the functions if they are not already
 defined in the server scope?

 Thanks,
 Ryan


 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226402
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
Ryan,

I don't know much about COAL, but I can tell you that I am not a big fan of
any framework that requires the installing of Core files outside of the
current application or any mappings of any kind. 

pause for crowd to gasp in disgust 

Between work and home, I work on the same project on as many as 4 different
servers and if I have to do anything except sync of the actually application
directory, it becomes a total nightmare, especially considering that I do
not have access to the wwwroot folder on 3 of the 4 servers. 

I am not putting COAL down, only saying that I don't think I can really take
advantage of it in my current situation.

...
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com

Vote for Pedro

-Original Message-
From: Ryan Guill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 9:06 AM
To: CF-Talk
Subject: Re: cfscript Common Functions and Best Practices

Just so you know, you can also use COAL to do something similar.

You just create an object out of COAL, and then you can access your
different libraries at the time you need them.

And all of cflib.org's libraries are already in COAL.

You can check out COAL here: http://coal.ryanguill.com/


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226403
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
You do not have to put the files outside of the current application or
have any mappings if you dont want.  You certainly can if you want to
take advantage of some features such as the ability to share the same
exactly librarlies across applications, but it is not a requirement.

You can download coal, extract out the folder and stick it right into
your application.  Just make it a top level directory.  Everything
*should* work from there.

And if you had other requirements, it should be easy enough for you to
modify to get it to suit your needs.

But you can just download it, and stick the COAL directory inside your
application directory.  Shouldnt be any problems, and if so, let me
know.

At any rate, just wanted to let you know about it.  If nothing else,
you may be able to look at COAL and how it does things and be able to
adapt something similar to suit your needs.

On 12/7/05, Ben Nadel [EMAIL PROTECTED] wrote:
 Ryan,

 I don't know much about COAL, but I can tell you that I am not a big fan of
 any framework that requires the installing of Core files outside of the
 current application or any mappings of any kind.

 pause for crowd to gasp in disgust

 Between work and home, I work on the same project on as many as 4 different
 servers and if I have to do anything except sync of the actually application
 directory, it becomes a total nightmare, especially considering that I do
 not have access to the wwwroot folder on 3 of the 4 servers.

 I am not putting COAL down, only saying that I don't think I can really take
 advantage of it in my current situation.

 ...
 Ben Nadel
 Web Developer
 Nylon Technology
 6 West 14th Street
 New York, NY 10011
 212.691.1134
 212.691.3477 fax
 www.nylontechnology.com

 Vote for Pedro

 -Original Message-
 From: Ryan Guill [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 07, 2005 9:06 AM
 To: CF-Talk
 Subject: Re: cfscript Common Functions and Best Practices

 Just so you know, you can also use COAL to do something similar.

 You just create an object out of COAL, and then you can access your
 different libraries at the time you need them.

 And all of cflib.org's libraries are already in COAL.

 You can check out COAL here: http://coal.ryanguill.com/


 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226407
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
Ryan,

I appreciate the response. I am definitely interested in at the very least
taking a look at how it works, as I am very new to OOP and very interested
in how you all get things working at such a high level. 

Good to know that I can use it on a project to project basis. I know this
goes against a lot of code reuse ideas, but trust me, its how things become
possible in my work world.

Thanks,
Ben
...
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com

Vote for Pedro

-Original Message-
From: Ryan Guill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 9:39 AM
To: CF-Talk
Subject: Re: cfscript Common Functions and Best Practices

You do not have to put the files outside of the current application or
have any mappings if you dont want.  You certainly can if you want to
take advantage of some features such as the ability to share the same
exactly librarlies across applications, but it is not a requirement.

You can download coal, extract out the folder and stick it right into
your application.  Just make it a top level directory.  Everything
*should* work from there.

And if you had other requirements, it should be easy enough for you to
modify to get it to suit your needs.

But you can just download it, and stick the COAL directory inside your
application directory.  Shouldnt be any problems, and if so, let me
know.

At any rate, just wanted to let you know about it.  If nothing else,
you may be able to look at COAL and how it does things and be able to
adapt something similar to suit your needs.


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226409
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
No problem, let me know if you have any questions.

On 12/7/05, Ben Nadel [EMAIL PROTECTED] wrote:
 Ryan,

 I appreciate the response. I am definitely interested in at the very least
 taking a look at how it works, as I am very new to OOP and very interested
 in how you all get things working at such a high level.

 Good to know that I can use it on a project to project basis. I know this
 goes against a lot of code reuse ideas, but trust me, its how things become
 possible in my work world.

 Thanks,
 Ben
 ...
 Ben Nadel
 Web Developer
 Nylon Technology
 6 West 14th Street
 New York, NY 10011
 212.691.1134
 212.691.3477 fax
 www.nylontechnology.com

 Vote for Pedro

--
Ryan Guill
BlueEyesDevelopment
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399
got google talk?  Chat me at [EMAIL PROTECTED]

The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com

www.ryanguill.com/
The Roman Empire: www.ryanguill.com/blog/

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226411
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfscript Common Functions and Best Practices

2005-12-06 Thread Ryan Duckworth
Currently we have many functions that we use within cfscript.  We are
storing them in the request scope (see 2 examples below).


Here is what I am don't like about this approach:  Every page hit from
every user is loading these common functions.  I personally am not
convinced that the request scope is the best place for these types of
functions.  I'm sure that many of you out there use functions of your
own and from www.cflib.org.  Is the server scope a better place for
these?  Should we only reload the functions if they are not already
defined in the server scope?

Thanks,
Ryan


cffunction name=abort output=false returnType=void
cfabort
/cffunction

cffunction name=sleep access=public returntype=void output=No
cfargument name=milliseconds type=numeric required=No default=1000
cfset createObject('java','java.lang.Thread').sleep(arguments.milliseconds)
/cffunction

cfscript
request.abort = abort;
request.sleep = sleep;
/cfscript


Call from within cfscript tag:
request.sleep(3000);
request.abort();

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226341
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript Common Functions and Best Practices

2005-12-06 Thread Michael Dinowitz
Setting commonly used functions to a 'permanent' memory scope such as server 
or application is a good idea. A better one would be to create a CFC that 
contains the common functions as well as common data and store that CFC in 
the memory scope.


 Currently we have many functions that we use within cfscript.  We are
 storing them in the request scope (see 2 examples below).


 Here is what I am don't like about this approach:  Every page hit from
 every user is loading these common functions.  I personally am not
 convinced that the request scope is the best place for these types of
 functions.  I'm sure that many of you out there use functions of your
 own and from www.cflib.org.  Is the server scope a better place for
 these?  Should we only reload the functions if they are not already
 defined in the server scope?

 Thanks,
 Ryan


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226342
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfscript Common Functions and Best Practices

2005-12-06 Thread Bobby Hartsfield
There was a thread not long ago about storing them in the application scope.
It sounded reasonable but I haven’t tried it so I can't elaborate on any
performance issues it might cause or clear up. You should be able to find
the thread in the archives.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Ryan Duckworth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 5:54 PM
To: CF-Talk
Subject: cfscript Common Functions and Best Practices

Currently we have many functions that we use within cfscript.  We are
storing them in the request scope (see 2 examples below).


Here is what I am don't like about this approach:  Every page hit from
every user is loading these common functions.  I personally am not
convinced that the request scope is the best place for these types of
functions.  I'm sure that many of you out there use functions of your
own and from www.cflib.org.  Is the server scope a better place for
these?  Should we only reload the functions if they are not already
defined in the server scope?

Thanks,
Ryan


cffunction name=abort output=false returnType=void
cfabort
/cffunction

cffunction name=sleep access=public returntype=void output=No
cfargument name=milliseconds type=numeric required=No default=1000
cfset
createObject('java','java.lang.Thread').sleep(arguments.milliseconds)
/cffunction

cfscript
request.abort = abort;
request.sleep = sleep;
/cfscript


Call from within cfscript tag:
request.sleep(3000);
request.abort();



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226343
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Complete CFSCRIPT

2005-12-05 Thread Michael Dinowitz
A long while ago I wrote some step by step docs for CFSCRIPT:
http://www.houseoffusion.com/docs/cfscript.htm
I've decided to update them to include everything you could ever want to know 
about the tag, related syntax and functions. I've started it here:
http://www.houseoffusion.com/docs/cfscript/
and if anyone has any comments or anything to add, please let me know. Error 
handling and UDFs are going in next (they were not in the original doc). 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226073
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Complete CFSCRIPT

2005-12-05 Thread Gaulin, Mark
How about writing functions (var, return, arguments, etc)?

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 10:46 AM
To: CF-Talk
Subject: Complete CFSCRIPT

A long while ago I wrote some step by step docs for CFSCRIPT:
http://www.houseoffusion.com/docs/cfscript.htm
I've decided to update them to include everything you could ever want to
know about the tag, related syntax and functions. I've started it here:
http://www.houseoffusion.com/docs/cfscript/
and if anyone has any comments or anything to add, please let me know.
Error handling and UDFs are going in next (they were not in the original
doc). 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226076
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Complete CFSCRIPT

2005-12-05 Thread John Wilker
great idea Michael!

function syntax would rock for sure.

On 12/5/05, Gaulin, Mark [EMAIL PROTECTED] wrote:

 How about writing functions (var, return, arguments, etc)?

 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 10:46 AM
 To: CF-Talk
 Subject: Complete CFSCRIPT

 A long while ago I wrote some step by step docs for CFSCRIPT:
 http://www.houseoffusion.com/docs/cfscript.htm
 I've decided to update them to include everything you could ever want to
 know about the tag, related syntax and functions. I've started it here:
 http://www.houseoffusion.com/docs/cfscript/
 and if anyone has any comments or anything to add, please let me know.
 Error handling and UDFs are going in next (they were not in the original
 doc).



 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226077
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Need help invoking CFC using CFSCRIPT

2005-12-02 Thread Pete Ruckelshaus
Hi,

I'm building some user-configurable front page widgets for a site that
I'm building.  I'd prefer to use CFSCRIPT for a number of reasons. 
Anyway, I'm having trouble getting any output.  This code, using
CFINVOKE, works fine (it returns the HTML for an image tag):

cfinvoke component=lib.cfc.html_modules method=fpRandImage
returnvariable=img#img#

Yet, this code within a CFSCRIPT block, returns
[EMAIL PROTECTED]:

fpWidgetObj = createObject(component,lib.cfc.html_modules);
newrow = queryAddRow(qryFPSidebar, 1);
temp = querySetCell(qryFPSidebar, order, 3);
temp = querySetCell(qryFPSidebar, type, Image);
temp = querySetCell(qryFPSidebar, content, #fpWidgetObj.fpRandImage#);

I'm returning the data as a query object to make it easier to sort the
data for display on the front page.

Any ideas what I'm doing wrong?

Thanks

Pete

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225984
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Need help invoking CFC using CFSCRIPT

2005-12-02 Thread Dave Watts
 I'm building some user-configurable front page widgets for a site 
 that I'm building. I'd prefer to use CFSCRIPT for a number of reasons. 
 Anyway, I'm having trouble getting any output. This code, using
 CFINVOKE, works fine (it returns the HTML for an image tag):
 
 cfinvoke component=lib.cfc.html_modules method=fpRandImage
 returnvariable=img#img#
 
 Yet, this code within a CFSCRIPT block, returns
 [EMAIL PROTECTED]:
 
 fpWidgetObj = createObject(component,lib.cfc.html_modules);
 newrow = queryAddRow(qryFPSidebar, 1);
 temp = querySetCell(qryFPSidebar, order, 3);
 temp = querySetCell(qryFPSidebar, type, Image);
 temp = querySetCell(qryFPSidebar, content, 
 #fpWidgetObj.fpRandImage#);
 
 I'm returning the data as a query object to make it easier to sort the
 data for display on the front page.
 
 Any ideas what I'm doing wrong?

Method calls in CFSCRIPT need to be written just like they are for built-in
functions:

fpWidgetObj.fpRandImage()

What your code is returning is a pointer to the function, more or less.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225987
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFscript function

2005-10-26 Thread Ken
Hi. I am new to CFC. Can someone help me convert this function from cfscript
to CFML?

cfscript
/**
* Returns the day of the month(1-31) of an Nth Occurrence of a day
(1-sunday,2-monday etc.)in a given month.
*
* @param NthOccurrence A number representing the nth occurrence.1-5.
* @param TheDayOfWeek A number representing the day of the week (1=Sunday,
2=Monday, etc.).
* @param TheMonth A number representing the Month (1=January, 2=February,
etc.).
* @param TheYear The year.
*/
function GetNthOccOfDayInMonth(NthOccurrence,TheDayOfWeek,TheMonth,TheYear)
{
Var TheDayInMonth=0;
if(TheDayOfWeek lt DayOfWeek(CreateDate(TheYear,TheMonth,1))){
TheDayInMonth= 1 + NthOccurrence*7 + (TheDayOfWeek -
DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
}
else{
TheDayInMonth= 1 + (NthOccurrence-1)*7 + (TheDayOfWeek -
DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
}
//If the result is greater than days in month or less than 1, return -1
if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
TheDayInMonth lt 1){
return -1;
}
else{
return TheDayInMonth;
}
}
/cfscript


Thanks,

- Ken


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222382
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFscript function

2005-10-26 Thread Alan Rother
This should work, but I didn't test it
 cffunction access=public name=GetNthOccOfDayInMonth output=No
returntype=any
!--- Args [ASR] ---
cfargument name=NthOccurrence required= type=
cfargument name=TheDayOfWeek required= type=
cfargument name=TheMonth required= type=
cfargument name=TheYear required= type=

!--- Vars [ASR] ---
cfset Var TheDayInMonth = 0
cfset var myReturnVar = 
!--- Action Code [ASR] ---
cfscript
if(Arguments.TheDayOfWeek lt DayOfWeek(CreateDate(Arguments.TheYear,
Arguments.TheMonth,1)))
{
TheDayInMonth= 1 + Arguments.NthOccurrence*7 + (Arguments.TheDayOfWeek -
DayOfWeek(CreateDate(Arguments.TheYear,Arguments.TheMonth,1))) MOD 7;
}
else
{
TheDayInMonth= 1 + (Arguments.NthOccurrence-1)*7 + (Arguments.TheDayOfWeek -
DayOfWeek(CreateDate(Arguments.TheYear,Arguments.TheMonth,1))) MOD 7;
}
//If the result is greater than days in month or less than 1, return -1
if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
TheDayInMonth lt 1)
{myReturnVar = 1;}
else
{myReturnVar = TheDayInMonth;}
/cfscript
!--- Return value [ASR] ---
cfreturn myReturnVar/
/cffunction
 Enjoy
 =]

 On 10/26/05, Ken [EMAIL PROTECTED] wrote:

 Hi. I am new to CFC. Can someone help me convert this function from
 cfscript
 to CFML?

 cfscript
 /**
 * Returns the day of the month(1-31) of an Nth Occurrence of a day
 (1-sunday,2-monday etc.)in a given month.
 *
 * @param NthOccurrence A number representing the nth occurrence.1-5.
 * @param TheDayOfWeek A number representing the day of the week (1=Sunday,
 2=Monday, etc.).
 * @param TheMonth A number representing the Month (1=January, 2=February,
 etc.).
 * @param TheYear The year.
 */
 function
 GetNthOccOfDayInMonth(NthOccurrence,TheDayOfWeek,TheMonth,TheYear)
 {
 Var TheDayInMonth=0;
 if(TheDayOfWeek lt DayOfWeek(CreateDate(TheYear,TheMonth,1))){
 TheDayInMonth= 1 + NthOccurrence*7 + (TheDayOfWeek -
 DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
 }
 else{
 TheDayInMonth= 1 + (NthOccurrence-1)*7 + (TheDayOfWeek -
 DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
 }
 //If the result is greater than days in month or less than 1, return -1
 if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
 TheDayInMonth lt 1){
 return -1;
 }
 else{
 return TheDayInMonth;
 }
 }
 /cfscript


 Thanks,

 - Ken


 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222384
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFscript function

2005-10-26 Thread Alan Rother
Ooppps...
  I missed a couple of things in the arguments setup. This should work.
  cffunction access=public name=GetNthOccOfDayInMonth output=No
returntype=any
!--- Args [ASR] ---
cfargument name=NthOccurrence required=Yes type=string
cfargument name=TheDayOfWeek required=Yes type=string
cfargument name=TheMonth required=Yes type=string
cfargument name=TheYear required=Yes type=string

!--- Vars [ASR] ---
cfset Var TheDayInMonth = 0
cfset var myReturnVar = 
!--- Action Code [ASR] ---
cfscript
if(Arguments.TheDayOfWeek lt DayOfWeek(CreateDate(Arguments.TheYear,
Arguments.TheMonth,1)))
{
TheDayInMonth= 1 + Arguments.NthOccurrence*7 + (Arguments.TheDayOfWeek -
DayOfWeek(CreateDate(Arguments.TheYear,Arguments.TheMonth,1))) MOD 7;
}
else
{
TheDayInMonth= 1 + (Arguments.NthOccurrence-1)*7 + (Arguments.TheDayOfWeek -
DayOfWeek(CreateDate(Arguments.TheYear,Arguments.TheMonth,1))) MOD 7;
}
//If the result is greater than days in month or less than 1, return -1
if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
TheDayInMonth lt 1)
{myReturnVar = 1;}
else
{myReturnVar = TheDayInMonth;}
/cfscript
!--- Return value [ASR] ---
cfreturn myReturnVar/
/cffunction

 On 10/26/05, Alan Rother [EMAIL PROTECTED] wrote:

 This should work, but I didn't test it
  cffunction access=public name=GetNthOccOfDayInMonth output=No
 returntype=any
 !--- Args [ASR] ---
 cfargument name=NthOccurrence required= type=
 cfargument name=TheDayOfWeek required= type=
 cfargument name=TheMonth required= type=
 cfargument name=TheYear required= type=

 !--- Vars [ASR] ---
 cfset Var TheDayInMonth = 0
 cfset var myReturnVar = 
 !--- Action Code [ASR] ---
 cfscript
 if(Arguments.TheDayOfWeek lt DayOfWeek(CreateDate( Arguments.TheYear,
 Arguments.TheMonth,1)))
 {
 TheDayInMonth= 1 + Arguments.NthOccurrence*7 + (Arguments.TheDayOfWeek -
 DayOfWeek(CreateDate(Arguments.TheYear,Arguments.TheMonth,1))) MOD 7;
 }
 else
 {
 TheDayInMonth= 1 + (Arguments.NthOccurrence-1)*7 + (Arguments.TheDayOfWeek- 
 DayOfWeek(CreateDate(
 Arguments.TheYear,Arguments.TheMonth,1))) MOD 7;
 }
 //If the result is greater than days in month or less than 1, return -1
 if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
 TheDayInMonth lt 1)
 {myReturnVar = 1;}
 else
 {myReturnVar = TheDayInMonth;}
 /cfscript
 !--- Return value [ASR] ---
 cfreturn myReturnVar/
 /cffunction
  Enjoy
  =]

  On 10/26/05, Ken [EMAIL PROTECTED] wrote:
 
  Hi. I am new to CFC. Can someone help me convert this function from
  cfscript
  to CFML?
 
  cfscript
  /**
  * Returns the day of the month(1-31) of an Nth Occurrence of a day
  (1-sunday,2-monday etc.)in a given month.
  *
  * @param NthOccurrence A number representing the nth occurrence.1-5.
  * @param TheDayOfWeek A number representing the day of the week
  (1=Sunday,
  2=Monday, etc.).
  * @param TheMonth A number representing the Month (1=January,
  2=February,
  etc.).
  * @param TheYear The year.
  */
  function
  GetNthOccOfDayInMonth(NthOccurrence,TheDayOfWeek,TheMonth,TheYear)
  {
  Var TheDayInMonth=0;
  if(TheDayOfWeek lt DayOfWeek(CreateDate(TheYear,TheMonth,1))){
  TheDayInMonth= 1 + NthOccurrence*7 + (TheDayOfWeek -
  DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
  }
  else{
  TheDayInMonth= 1 + (NthOccurrence-1)*7 + (TheDayOfWeek -
  DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
  }
  //If the result is greater than days in month or less than 1, return -1
  if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
  TheDayInMonth lt 1){
  return -1;
  }
  else{
  return TheDayInMonth;
  }
  }
  /cfscript
 
 
  Thanks,
 
  - Ken
 
 
  

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222385
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfscript: optional arguments in function calling

2005-10-03 Thread wolf2k5
Hi,

I usually prefer CFScript over CF TAGs since it's more concise.

However sometimes TAGs seem better at that, e.g.:

TAGs version:

cfinvoke component=#myCFC# method=myMethod
cfinvokeargument name=myRequiredParam value=#form.myRequiredParam#
cfif structKeyExists(form,myOptionalParam)
cfinvokeargument name=myRequiredParam 
value=#form.myOptionalParam#
/cfif
/cfinvoke

CFScript version:

if (structKeyExists(form,myOptionalParam))
myCFC.myMethod(
myRequiredParam = form.myRequiredParam,
myOptionalParam = form.myOptionalParam,
);
else
myCFC.myMethod(
myRequiredParam = form.myRequiredParam,
);

As you can see, I am forced to write two calls to the same method in
the CFScript version, while I can simply use CFIF in the TAGs version
to include the optional method in the call (only if the optional
variable exists).

As you can imagine, when there are a lot of optional arguments, I need
to duplicate a lot of code with CFScript.

Is there a better way of handling optional arguments in function
calling with CFscript?

Thanks in advance.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219877
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript: optional arguments in function calling

2005-10-03 Thread Ryan Guill
if you are the one writing the code in the methods, saying what is
optional, just make a cfparam of the optionals with the default set in
the method.  Then pass all arguments in.

On 10/3/05, wolf2k5 [EMAIL PROTECTED] wrote:
 Hi,

 I usually prefer CFScript over CF TAGs since it's more concise.

 However sometimes TAGs seem better at that, e.g.:

 TAGs version:

 cfinvoke component=#myCFC# method=myMethod
 cfinvokeargument name=myRequiredParam 
 value=#form.myRequiredParam#
 cfif structKeyExists(form,myOptionalParam)
 cfinvokeargument name=myRequiredParam 
 value=#form.myOptionalParam#
 /cfif
 /cfinvoke

 CFScript version:

 if (structKeyExists(form,myOptionalParam))
 myCFC.myMethod(
 myRequiredParam = form.myRequiredParam,
 myOptionalParam = form.myOptionalParam,
 );
 else
 myCFC.myMethod(
 myRequiredParam = form.myRequiredParam,
 );

 As you can see, I am forced to write two calls to the same method in
 the CFScript version, while I can simply use CFIF in the TAGs version
 to include the optional method in the call (only if the optional
 variable exists).

 As you can imagine, when there are a lot of optional arguments, I need
 to duplicate a lot of code with CFScript.

 Is there a better way of handling optional arguments in function
 calling with CFscript?

 Thanks in advance.

 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219879
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript: optional arguments in function calling

2005-10-03 Thread Raymond Camden
Don't forget you can use argumentCollection to dynamically pass
attributes to a CFC method or UDF. That would let you use cfscript if
you want to. argumentCollection for CFCs/UDFs works the same as
attributeCollection for custom tags.

On 10/3/05, wolf2k5 [EMAIL PROTECTED] wrote:
 Hi,

 I usually prefer CFScript over CF TAGs since it's more concise.

 However sometimes TAGs seem better at that, e.g.:

 TAGs version:

 cfinvoke component=#myCFC# method=myMethod
 cfinvokeargument name=myRequiredParam 
 value=#form.myRequiredParam#
 cfif structKeyExists(form,myOptionalParam)
 cfinvokeargument name=myRequiredParam 
 value=#form.myOptionalParam#
 /cfif
 /cfinvoke

 CFScript version:

 if (structKeyExists(form,myOptionalParam))
 myCFC.myMethod(
 myRequiredParam = form.myRequiredParam,
 myOptionalParam = form.myOptionalParam,
 );
 else
 myCFC.myMethod(
 myRequiredParam = form.myRequiredParam,
 );

 As you can see, I am forced to write two calls to the same method in
 the CFScript version, while I can simply use CFIF in the TAGs version
 to include the optional method in the call (only if the optional
 variable exists).

 As you can imagine, when there are a lot of optional arguments, I need
 to duplicate a lot of code with CFScript.

 Is there a better way of handling optional arguments in function
 calling with CFscript?

 Thanks in advance.

 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219880
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript: optional arguments in function calling

2005-10-03 Thread wolf2k5
On 10/3/05, Raymond Camden [EMAIL PROTECTED] wrote:
 Don't forget you can use argumentCollection to dynamically pass
 attributes to a CFC method or UDF. That would let you use cfscript if
 you want to. argumentCollection for CFCs/UDFs works the same as
 attributeCollection for custom tags.

Thanks, I forgot I could use argumentCollection!

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219890
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript: optional arguments in function calling

2005-10-03 Thread Joe Eugene
I would rather have the method(s) hanlde the logic than the excution
code pass optional arguments.

myCFC.myMethod(form);

Let the method handle all the checking and call other methods if needed.

Joe

On 10/3/05, wolf2k5 [EMAIL PROTECTED] wrote:
 On 10/3/05, Raymond Camden [EMAIL PROTECTED] wrote:
  Don't forget you can use argumentCollection to dynamically pass
  attributes to a CFC method or UDF. That would let you use cfscript if
  you want to. argumentCollection for CFCs/UDFs works the same as
  attributeCollection for custom tags.

 Thanks, I forgot I could use argumentCollection!

 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219937
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFScript Inquiry

2005-09-27 Thread Graham Pearson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Does anyone have examples of how to insert data into a database using
cfscript. My other option is to try to and create a batch file and
execute it with cfexecute.

- --
Graham Pearson, System Administrator / Application Developer
Northern Indiana Educational Services Center
Mishawaka, IN 46544
Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
VOIP Telephone Number: (574) 217-0146

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFDOZpHrwdok4nP6d0RAlATAJ9g8XauIlJvFvhzJrsPsGmVt0L8aQCfRhNq
gW4GPEVC2qcmMGxddEUDahg=
=hSo2
-END PGP SIGNATURE-


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219359
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFScript Inquiry

2005-09-27 Thread Ben Doom
IIRC, you'll need to write your own query function using cffunction and 
cfquery to get this to work.  There is no built-in query function, only 
the tag.

--Ben

Graham Pearson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
  
 Does anyone have examples of how to insert data into a database using
 cfscript. My other option is to try to and create a batch file and
 execute it with cfexecute.
 
 - --
 Graham Pearson, System Administrator / Application Developer
 Northern Indiana Educational Services Center
 Mishawaka, IN 46544
 Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
 VOIP Telephone Number: (574) 217-0146
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.1 (MingW32)
 Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
  
 iD8DBQFDOZpHrwdok4nP6d0RAlATAJ9g8XauIlJvFvhzJrsPsGmVt0L8aQCfRhNq
 gW4GPEVC2qcmMGxddEUDahg=
 =hSo2
 -END PGP SIGNATURE-
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219362
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFScript Inquiry

2005-09-27 Thread Steve Bryant
blatant_plug

You could use my (free) Data Manager component.

http://steve.coldfusionjournal.com/easier_inserts.htm

Example:

database: MS SQL
table: MyTable with fields Field1 and Field2

cfscript
DataMgr = CreateObject(component,com.sebtools.DataMgr_MSSQL).init(mydsn);
DataMgr.load(myTable);

MyData = StructNew();

MyData.Field1 = value1;
MyData.Fields = 3;

InsertedID = DataMgr.insertRecord(myTable,MyData);
/cfscript

/blatant_plug


Hope that helps!

Steve Bryant.
Bryant Web Consulting LLC
http://www.BryantWebConsulting.com/
http://steve.coldfusionjournal.com/

Does anyone have examples of how to insert data into a database using
cfscript. My other option is to try to and create a batch file and
execute it with cfexecute.

- --
Graham Pearson, System Administrator / Application Developer
Northern Indiana Educational Services Center
Mishawaka, IN 46544
Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
VOIP Telephone Number: (574) 217-0146

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219363
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Call cfscript inside cfc - its possible?

2005-09-26 Thread Michel Deloux
Hi all

It's possible to call cfscript functions(application.cfm's living)
inside cfc component? I'm calling this function PrepareSearch and CF
returns an error:


Variable PrepareSearch is undefined.


The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line 40

38 :CFIF arguments.UserField is not 
39 :
40 :
#REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All)#



What's wrong?

Cheers

MD

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219277
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Call cfscript inside cfc - its possible?

2005-09-26 Thread Andy Matthews
You should be able to use any CF function inside a CFC.

I think though that you might have it flipped around. Are you trying to use
a custom function, which you have created, inside cfscript?

If so, then as long as you've defined the function and instantiated it, you
should be able to call it from anywhere on the page.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Michel Deloux [mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 2:41 PM
To: CF-Talk
Subject: Call cfscript inside cfc - its possible?


Hi all

It's possible to call cfscript functions(application.cfm's living)
inside cfc component? I'm calling this function PrepareSearch and CF
returns an error:


Variable PrepareSearch is undefined.


The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line
40

38 :CFIF arguments.UserField is not 
39 :
40 :
#REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All
)#

.

What's wrong?

Cheers

MD



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219278
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Barney Boisvert
You don't have implicit access to the request's 'variables' scope
inside a CFC instance.  You'll need to move the UDF into a scope where
the CFC internals can reference (request, application, etc.).  Though
I wouldn't recommend doing it that way.

A better route would be to put your UDF in a 'utilities' CFC, and then
use that CFC in both your current CFC and in your normal page
processing.  Better encapsulation that way.

cheers,
barneyb

On 9/26/05, Michel Deloux [EMAIL PROTECTED] wrote:
 Hi all

 It's possible to call cfscript functions(application.cfm's living)
 inside cfc component? I'm calling this function PrepareSearch and CF
 returns an error:


 Variable PrepareSearch is undefined.


 The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line 
 40

 38 :CFIF arguments.UserField is not 
 39 :
 40 :
 #REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All)#

 

 What's wrong?

 Cheers

 MD



--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219279
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Dave Carabetta
On 9/26/05, Michel Deloux [EMAIL PROTECTED] wrote:
 Hi all

 It's possible to call cfscript functions(application.cfm's living)
 inside cfc component? I'm calling this function PrepareSearch and CF
 returns an error:


 Variable PrepareSearch is undefined.


 The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line 
 40

 38 :CFIF arguments.UserField is not 
 39 :
 40 :
 #REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All)#

 

 What's wrong?


There's really no such thing as a cfscript-only tag. In your case,
using a cfset will handle the job:

cfif arguments.UserField is not 
  cfset myCleanedValue =
REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All)
/
/cfif

Be sure to propertly var scope the myCleanedValue, but that'll get you going.

Regards,
Dave.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219280
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Tony
i do one of two things...

http://www.revolutionwebdesign.com/blog/index.cfm?mode=entryentry=F198C61E-A5EF-DAA0-5EC6F1AB9C7357F7

or for the link impaired...

http://www.antiwrap.com/?724

or, what i do, is refactor the udf, into a new component or function of the cfc
im using, and then i have it to use as a cfc anyway :)

tw

On 9/26/05, Andy Matthews [EMAIL PROTECTED] wrote:
 You should be able to use any CF function inside a CFC.

 I think though that you might have it flipped around. Are you trying to use
 a custom function, which you have created, inside cfscript?

 If so, then as long as you've defined the function and instantiated it, you
 should be able to call it from anywhere on the page.

 !//--
 andy matthews
 web developer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-

 -Original Message-
 From: Michel Deloux [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 26, 2005 2:41 PM
 To: CF-Talk
 Subject: Call cfscript inside cfc - its possible?


 Hi all

 It's possible to call cfscript functions(application.cfm's living)
 inside cfc component? I'm calling this function PrepareSearch and CF
 returns an error:


 Variable PrepareSearch is undefined.


 The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line
 40

 38 :CFIF arguments.UserField is not 
 39 :
 40 :
 #REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All
 )#

 .

 What's wrong?

 Cheers

 MD



 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219281
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Michel Deloux
Thanks all.
Works fine now. Do you know how?

Simple. Raymond Camden answers for us:

http://ray.camdenfamily.com/index.cfm?mode=entryentry=395FCD72-D363-A830-680B85D89C078C0A

After create an utility cfc and insert:

cfcomponent output=false
cfset init()
cffunction name=init access=public
cfreturn this
/cffunction

cfscript
function blablabla(path)
/cfscript
/cfcomponent

and so on ...bingo! Now you can call all UDF inside utility with cfinvoke.

Thanx Ray and all folks.

Cheers

MD



2005/9/26, Tony [EMAIL PROTECTED]:
 i do one of two things...

 http://www.revolutionwebdesign.com/blog/index.cfm?mode=entryentry=F198C61E-A5EF-DAA0-5EC6F1AB9C7357F7

 or for the link impaired...

 http://www.antiwrap.com/?724

 or, what i do, is refactor the udf, into a new component or function of the 
 cfc
 im using, and then i have it to use as a cfc anyway :)

 tw

 On 9/26/05, Andy Matthews [EMAIL PROTECTED] wrote:
  You should be able to use any CF function inside a CFC.
 
  I think though that you might have it flipped around. Are you trying to use
  a custom function, which you have created, inside cfscript?
 
  If so, then as long as you've defined the function and instantiated it, you
  should be able to call it from anywhere on the page.
 
  !//--
  andy matthews
  web developer
  ICGLink, Inc.
  [EMAIL PROTECTED]
  615.370.1530 x737
  --//-
 
  -Original Message-
  From: Michel Deloux [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 26, 2005 2:41 PM
  To: CF-Talk
  Subject: Call cfscript inside cfc - its possible?
 
 
  Hi all
 
  It's possible to call cfscript functions(application.cfm's living)
  inside cfc component? I'm calling this function PrepareSearch and CF
  returns an error:
 
 
  Variable PrepareSearch is undefined.
 
 
  The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line
  40
 
  38 :CFIF arguments.UserField is not 
  39 :
  40 :
  #REReplaceNoCase(PrepareSearch(#arguments.UserField#,user),;,',All
  )#
 
  .
 
  What's wrong?
 
  Cheers
 
  MD
 
 
 
 

 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219305
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread asherwood
My mind is failing me.

Is there a CFSCRIPT alternative to CFPARAM other than an IsDefined() block?

Thanks!

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215594
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread Neculai Macarie
 My mind is failing me.

 Is there a CFSCRIPT alternative to CFPARAM other than an IsDefined()
block?

function cf_param(name, value)
{
 if(not isDefined(name))
  SetVariable(name, value);
}

-- 
mack /


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215599
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread Calvin Ward
Yeps!

if (NOT (IsDefined(myvar)) {
 myvar = 'myval';
}

- Calvin 

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 18, 2005 10:05 AM
To: CF-Talk
Subject: CFSCRIPT Equivalent of CFPARAM?

My mind is failing me.

Is there a CFSCRIPT alternative to CFPARAM other than an IsDefined() block?

Thanks!



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215604
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread S . Isaac Dealey
You can write this as a function also...

function param(v,d) {
if (not isdefined(v)) { setVariable(v,d); }
}

 Yeps!

 if (NOT (IsDefined(myvar)) {
  myvar = 'myval';
 }

 - Calvin

 -Original Message-
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 18, 2005 10:05 AM
 To: CF-Talk
 Subject: CFSCRIPT Equivalent of CFPARAM?

 My mind is failing me.

 Is there a CFSCRIPT alternative to CFPARAM other than an
 IsDefined() block?

 Thanks!



 ~~
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215620
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


easily question. could someone rewrite this line so it works in a cfscript block?

2005-08-11 Thread Che Vilnonis
how would this be written using cfscript?

cfloop collection=#stShoppingCart# item=x
blah,blah
/cfloop

Che Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214535
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: easily question. could someone rewrite this line so it works in a cfscript block?

2005-08-11 Thread Charlie Griefer
for (x in stShoppingCart) {
 writeOutput(x);   // struct key name
 writeOutput(stShoppingCart[x]);   // struct key value
}

On 8/11/05, Che Vilnonis [EMAIL PROTECTED] wrote:
 how would this be written using cfscript?
 
 cfloop collection=#stShoppingCart# item=x
 blah,blah
 /cfloop
 
 Che Vilnonis
 Application Developer
 Advertising Systems Incorporated
 8470C Remington Avenue
 Pennsauken, NJ 08110
 p: 856.488.2211
 f: 856.488.1990
 www.asitv.com
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214537
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: easily question. could someone rewrite this line so it works in a cfscript block?

2005-08-11 Thread Che Vilnonis
thanks.

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 9:29 AM
To: CF-Talk
Subject: Re: easily question. could someone rewrite this line so it
works in a cfscript block?


for (x in stShoppingCart) {
 writeOutput(x);   // struct key name
 writeOutput(stShoppingCart[x]);   // struct key value
}

On 8/11/05, Che Vilnonis [EMAIL PROTECTED] wrote:
 how would this be written using cfscript?

 cfloop collection=#stShoppingCart# item=x
 blah,blah
 /cfloop

 Che Vilnonis
 Application Developer
 Advertising Systems Incorporated
 8470C Remington Avenue
 Pennsauken, NJ 08110
 p: 856.488.2211
 f: 856.488.1990
 www.asitv.com





~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214538
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-28 Thread Thomas Chiverton
On Wednesday 27 July 2005 18:41, Barney Boisvert wrote:
 It's really quite horrible how incompatible CFSCRIPT and tags are.  no
 throw in script, no continue in tags, no query or list loop in script,
 etc.  At least throw is one that can be easily worked around.

It's easy enough to write a CFC using tags that implements the tag you want as 
a UDF.
There was even a MM devnet about it.

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213071
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
Is there a way to throw an error from inside a cfscipt block equivalent to 
cfthrow ...?

Or is this one of those errors where one can not use cfscript coding?


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213024
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-27 Thread Barney Boisvert
Write yourself a tag-based UDF named 'throw', and use that from inside CFSCRIPT.

It's really quite horrible how incompatible CFSCRIPT and tags are.  no
throw in script, no continue in tags, no query or list loop in script,
etc.  At least throw is one that can be easily worked around.

cheers,
barneyb

On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote:
 Is there a way to throw an error from inside a cfscipt block equivalent to 
 cfthrow ...?
 
 Or is this one of those errors where one can not use cfscript coding?
 
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213025
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
And to translate that to a cfc file, it would be a throw function, I presume 
private, that can then be called.  Since my brain is barely turning over today, 
there is no issues with this idea right?


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 27, 2005 10:41 AM
To: CF-Talk
Subject: Re: Throwing error inside a cfscript block.

Write yourself a tag-based UDF named 'throw', and use that from inside
CFSCRIPT.

It's really quite horrible how incompatible CFSCRIPT and tags are.  no
throw in script, no continue in tags, no query or list loop in script,
etc.  At least throw is one that can be easily worked around.

cheers,
barneyb

On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote:
 Is there a way to throw an error from inside a cfscipt block equivalent
to cfthrow ...?

 Or is this one of those errors where one can not use cfscript coding?


 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA

 C code. C code run. Run code run. Please!
 - Cynthia Dunning

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213027
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-27 Thread Barney Boisvert
Yep, that'll work just as well.  I do it quite often.

cheers,
barneyb

On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote:
 And to translate that to a cfc file, it would be a throw function, I presume 
 private, that can then be called.  Since my brain is barely turning over 
 today, there is no issues with this idea right?
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213029
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-27 Thread Aaron Rouse
I do this quite often, might go against so sort of official method of 
designing things but seems to work without any issue.

On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote: 
 
 And to translate that to a cfc file, it would be a throw function, I 
 presume private, that can then be called. Since my brain is barely turning 
 over today, there is no issues with this idea right?



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213030
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Throwing error inside a cfscript block.

2005-07-27 Thread Gaulin, Mark
Just curious... can a tag-based UDF be defined outside of a CFC?  Last
time I checked the answer seemed to be no.
Thanks
Mark

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 27, 2005 1:41 PM
To: CF-Talk
Subject: Re: Throwing error inside a cfscript block.

Write yourself a tag-based UDF named 'throw', and use that from inside
CFSCRIPT.

It's really quite horrible how incompatible CFSCRIPT and tags are.  no
throw in script, no continue in tags, no query or list loop in script,
etc.  At least throw is one that can be easily worked around.

cheers,
barneyb

On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote:
 Is there a way to throw an error from inside a cfscipt block
equivalent to cfthrow ...?
 
 Or is this one of those errors where one can not use cfscript coding?
 
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213032
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
Never mind, as I was typing the following message I realized I was missing the 
comma separating the parameters.  Works fine now, I believe.  At least it 
brought up an error that should not be involved in this.



As I mentioned before my brain is really low on fuel today.  There is a way to 
call functions with named parameters isn't there?  I remember doing something 
like this before.  

I thought it looked like this: functionName(parm1:value,parm2:value...).  

But that does not seem to be working and I can find reference to anything like 
this in the documentation.  Am I making up imaginary features again?


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 27, 2005 10:57 AM
To: CF-Talk
Subject: Re: Throwing error inside a cfscript block.

Yep, that'll work just as well.  I do it quite often.

cheers,
barneyb

On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote:
 And to translate that to a cfc file, it would be a throw function, I
presume private, that can then be called.  Since my brain is barely
turning over today, there is no issues with this idea right?


--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213033
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-27 Thread Seth Bienek
- Original Message - 
 Is there a way to throw an error from inside a cfscipt block equivalent to 
 cfthrow ...?

Hi Ian,

Ray Camden has developed a UDF to allow you to throw exceptions from within 
cfscript:
http://www.cflib.org/udf.cfm/throw

Take Care,

Seth 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213035
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-27 Thread Barney Boisvert
Absolutely.  It was added at the same time CFCs were added (CFMX 6.0);
before then you only had script-based UDFs.

cheers,
barneyb

On 7/27/05, Gaulin, Mark [EMAIL PROTECTED] wrote:
 Just curious... can a tag-based UDF be defined outside of a CFC?  Last
 time I checked the answer seemed to be no.
 Thanks
 Mark
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213036
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Throwing error inside a cfscript block.

2005-07-27 Thread S . Isaac Dealey
 Just curious... can a tag-based UDF be defined outside of
 a CFC?  Last
 time I checked the answer seemed to be no.
 Thanks
   Mark

Ever since I've used them. 6.0... may not have been the case during
part of the beta.



s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213041
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Throwing error inside a cfscript block.

2005-07-27 Thread Aaron Rouse
Yes but what happens in the beta, stays in the beta. It is kind of like 
vegas.

On 7/27/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: 
 
 
 Ever since I've used them. 6.0... may not have been the case during
 part of the beta.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213042
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Throwing error inside a cfscript block.

2005-07-27 Thread Gaulin, Mark
I think I just misinterpreted the docs... They only talk about using
cffunction in cfcs:

(from the docs)
cffunction
Defines a function that you can call in CFML. Required to defined
ColdFusion component methods. 


I should have just tried it!

Thanks
Mark

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 27, 2005 4:30 PM
To: CF-Talk
Subject: RE: Throwing error inside a cfscript block.

 Just curious... can a tag-based UDF be defined outside of a CFC?  Last

 time I checked the answer seemed to be no.
 Thanks
   Mark

Ever since I've used them. 6.0... may not have been the case during part
of the beta.



s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm






~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213044
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT and loop index values in variables

2005-07-24 Thread Pete Ruckelshaus
Thanks Barney, that was it!


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212696
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFSCRIPT and loop index values in variables

2005-07-23 Thread Pete Ruckelshaus
I want to take a set of sequentially numbered form field names (typeid_1, 
typeid_2, typeid_3, typedetails_1, typedetails_2, typedetails_3, and so on) 
and loop through them to create a query object. I could do this the hard way 
(i.e. 7 nearly identical blocks of code), but I would prefer to do this the 
right way, but for the life of me I can't remember the proper syntax for 
using the index values in variable names. Here's the code I have now (that 
doesn't work):
 cfscript
qryDetails = queryNew(dataCardID,typeid,details,display_order);
for (i = 1; i LTE 7; i = i + 1) {
if (NOT isNullNumeric(FORM.typeid_[i])) {
queryAddRow(qryDetails);
querySetCell(qryDetails,dataCardID,insertDataCard.dataCardID);
querySetCell(qryDetails,typeid,FORM.typeid_[i]);
querySetCell(qryDetails,details,trim(FORM.typedetails_[i]));
querySetCell(qryDetails,display_order,i);
}
}
/cfscript
 What am I doing wrong?
 Thanks
 Pete


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212683
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT and loop index values in variables

2005-07-23 Thread Barney Boisvert
Close.  You need form[typeid_#i#], not form.typeid_[i].

cheers,
barneyb

On 7/23/05, Pete Ruckelshaus [EMAIL PROTECTED] wrote:
 I want to take a set of sequentially numbered form field names (typeid_1,
 typeid_2, typeid_3, typedetails_1, typedetails_2, typedetails_3, and so on)
 and loop through them to create a query object. I could do this the hard way
 (i.e. 7 nearly identical blocks of code), but I would prefer to do this the
 right way, but for the life of me I can't remember the proper syntax for
 using the index values in variable names. Here's the code I have now (that
 doesn't work):
  cfscript
 qryDetails = queryNew(dataCardID,typeid,details,display_order);
 for (i = 1; i LTE 7; i = i + 1) {
 if (NOT isNullNumeric(FORM.typeid_[i])) {
 queryAddRow(qryDetails);
 querySetCell(qryDetails,dataCardID,insertDataCard.dataCardID);
 querySetCell(qryDetails,typeid,FORM.typeid_[i]);
 querySetCell(qryDetails,details,trim(FORM.typedetails_[i]));
 querySetCell(qryDetails,display_order,i);
 }
 }
 /cfscript
  What am I doing wrong?
  Thanks
  Pete

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212685
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFSCRIPT and loop index values in variables

2005-07-23 Thread HOFLee _
Or another way is  form[typeid_ i]

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212695
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
New here - Flash-guy, also new to ColdFusion and SQL (CF-Newbies doesn't
seem to be populated with anybody)

(...and before I ask the question, I'm also looking for a cleaner way to
write this, like not having to hard code the field column names)

How do I insert each subsequent record from a database into my XML file?
I got this working, but it of course repeats the first record in each
child node,which is not what I want.

cfquery name=qAllLessons datasource=coursesDB 
SELECT * FROM Lessons
/cfquery
cfquery name=qLessons datasource=coursesDB
SELECT ID, Lesson, Required, Time FROM Lessons
/cfquery

cfscript
lrXML = XmlNew();
lrXML.xmlRoot = XmlElemNew(lrXML,lData);
for (i = 1; i LTE #qAllLessons.RecordCount#; i = i + 1){
lrXML.lData.XmlChildren[i] =
XmlElemNew(lrXML,Content);
lrXML.lData.XmlChildren[i].XmlChildren[1] =
XmlElemNew(lrXML,ID);
lrXML.lData.XmlChildren[i].XmlChildren[2] =
XmlElemNew(lrXML,Lesson);
lrXML.lData.XmlChildren[i].XmlChildren[3] =
XmlElemNew(lrXML,Required);
lrXML.lData.XmlChildren[i].XmlChildren[4] =
XmlElemNew(lrXML,Time);
lrXML.lData.XmlChildren[i].ID.XmlText = #qLessons.ID#;
lrXML.lData.XmlChildren[i].Lesson.XmlText =
#qLessons.Lesson#;
lrXML.lData.XmlChildren[i].Required.XmlText =
#qLessons.Required#;
lrXML.lData.XmlChildren[i].Time.XmlText =
#qLessons.Time#;
}
/cfscript
cfdump var=#lrXML#
cfset XMLText = ToString(lrXML)
cffile action=write
file=C:\CFusionMX7\wwwroot\com\macromedia\test\myTextXml_3.xml
output=#XMLText#


This outputs:

?xml version=1.0 encoding=UTF-8 ? 
lData
   Content
 ID1/ID 
 LessonbIntroduction to Spatial Analysis/Lesson 
 RequiredTrue/Required 
 Time2/Time 
  /Content
  Content
 ID1/ID 
 LessonbIntroduction to Spatial Analysis/Lesson 
 RequiredTrue/Required 
 Time2/Time 
  /Content
...etc...

How do I write the query to insert each record into each subsequent node
instead of inserting the first record each time?

Or, is there a cfscript out there that will take a table and convert its
contents to XML with the nodes being named what the field names are
named?  I have searched the web, but haven't found one yet.

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com











NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211750
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple XML cfscript question

2005-07-13 Thread Matt Osbun
If you don't *need* this done with cfscript, try this.  This is a copy
and paste from something I'm putting together, with names changed to
protect the innocent...

cfquery name=qLessons datasource=coursesDB
SELECT ID, Lesson, Required, Time FROM Lessons
/cfquery

cfprocessingdirective suppresswhitespace=Yes
cfcontent type=text/xml; charset=utf-16
cfxml variable=XMLDoc
?xml version='1.0' encoding='utf-8' ?
lData
  cfoutput query=qLessons
Content
cfloop FROM=1 TO=#ListLen(qLessons.ColumnList)# index=i

#ListGetAt(qLessons.ColumnList,i)##qLessons[ListGetAt(qLessons.ColumnL
ist,i)][qLessons.currentrow]#/#ListGetAt(qLessons.ColumnList,i)#
/cfloop
/Content
  /cfoutput
/ldata
/cfxml
/cfprocessingdirective
cffile action=write file=#wherever you want it saved#
output=#XMLDoc#

Matt Osbun
Web Developer
Health Systems, International

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211753
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
Well, I got it working, didn't realize I could use the Array access
operator like I can in Flash and Javascript - gotta love ECMA.  

Here is the script, but how can I make it cleaner  - i.e. get names of
fields and then loop over those?

cfscript
lrXML = XmlNew();
lrXML.xmlRoot = XmlElemNew(lrXML,lData);
for (i = 1; i LTE #qAllLessons.RecordCount#; i = i + 1){
lrXML.lData.XmlChildren[i] =
XmlElemNew(lrXML,Content);
lrXML.lData.XmlChildren[i].XmlChildren[1] =
XmlElemNew(lrXML,ID);
lrXML.lData.XmlChildren[i].XmlChildren[2] =
XmlElemNew(lrXML,Lesson);
lrXML.lData.XmlChildren[i].XmlChildren[3] =
XmlElemNew(lrXML,Required);
lrXML.lData.XmlChildren[i].XmlChildren[4] =
XmlElemNew(lrXML,Time);
lrXML.lData.XmlChildren[i].ID.XmlText =
#qLessons.ID[i]#;
lrXML.lData.XmlChildren[i].Lesson.XmlText =
#qLessons.Lesson[i]#;
lrXML.lData.XmlChildren[i].Required.XmlText =
#qLessons.Required[i]#;
lrXML.lData.XmlChildren[i].Time.XmlText =
#qLessons.Time[i]#;
}
/cfscript

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









-Original Message-
From: Merrill, Jason [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 11:31 AM
To: CF-Talk
Subject: Simple XML cfscript question

New here - Flash-guy, also new to ColdFusion and SQL (CF-Newbies
doesn't
seem to be populated with anybody)

(...and before I ask the question, I'm also looking for a cleaner way
to
write this, like not having to hard code the field column names)

How do I insert each subsequent record from a database into my XML
file?
I got this working, but it of course repeats the first record in each
child node,which is not what I want.

cfquery name=qAllLessons datasource=coursesDB
  SELECT * FROM Lessons
/cfquery
cfquery name=qLessons datasource=coursesDB
  SELECT ID, Lesson, Required, Time FROM Lessons
/cfquery

cfscript
  lrXML = XmlNew();
  lrXML.xmlRoot = XmlElemNew(lrXML,lData);
  for (i = 1; i LTE #qAllLessons.RecordCount#; i = i + 1){
  lrXML.lData.XmlChildren[i] =
XmlElemNew(lrXML,Content);
  lrXML.lData.XmlChildren[i].XmlChildren[1] =
XmlElemNew(lrXML,ID);
  lrXML.lData.XmlChildren[i].XmlChildren[2] =
XmlElemNew(lrXML,Lesson);
  lrXML.lData.XmlChildren[i].XmlChildren[3] =
XmlElemNew(lrXML,Required);
  lrXML.lData.XmlChildren[i].XmlChildren[4] =
XmlElemNew(lrXML,Time);
  lrXML.lData.XmlChildren[i].ID.XmlText = #qLessons.ID#;
  lrXML.lData.XmlChildren[i].Lesson.XmlText =
#qLessons.Lesson#;
  lrXML.lData.XmlChildren[i].Required.XmlText =
#qLessons.Required#;
  lrXML.lData.XmlChildren[i].Time.XmlText =
#qLessons.Time#;
  }
/cfscript
cfdump var=#lrXML#
cfset XMLText = ToString(lrXML)
cffile action=write
file=C:\CFusionMX7\wwwroot\com\macromedia\test\myTextXml_3.xml
output=#XMLText#


This outputs:

?xml version=1.0 encoding=UTF-8 ?
lData
   Content
 ID1/ID
 LessonbIntroduction to Spatial Analysis/Lesson
 RequiredTrue/Required
 Time2/Time
  /Content
  Content
 ID1/ID
 LessonbIntroduction to Spatial Analysis/Lesson
 RequiredTrue/Required
 Time2/Time
  /Content
...etc...

How do I write the query to insert each record into each subsequent
node
instead of inserting the first record each time?

Or, is there a cfscript out there that will take a table and convert
its
contents to XML with the nodes being named what the field names are
named?  I have searched the web, but haven't found one yet.

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com











NOTICE:
This message is for the designated recipient only and may contain
privileged or
confidential information. If you have received it in error, please
notify the sender
immediately and delete the original. Any other use of this e-mail by
you is
prohibited.




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211754
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
Well, I got it working, didn't realize I could use the Array access
operator like I can in Actionscript and Javascript (ECMA praise here?).


Here is the script, but how can I make it cleaner  so not as much is
hardcoded - i.e. get names of all the fields and then loop over those x
number of times?

cfscript
lrXML = XmlNew();
lrXML.xmlRoot = XmlElemNew(lrXML,lData);
for (i = 1; i LTE #qAllLessons.RecordCount#; i = i + 1){
lrXML.lData.XmlChildren[i] =
XmlElemNew(lrXML,Content);
lrXML.lData.XmlChildren[i].XmlChildren[1] =
XmlElemNew(lrXML,ID);
lrXML.lData.XmlChildren[i].XmlChildren[2] =
XmlElemNew(lrXML,Lesson);
lrXML.lData.XmlChildren[i].XmlChildren[3] =
XmlElemNew(lrXML,Required);
lrXML.lData.XmlChildren[i].XmlChildren[4] =
XmlElemNew(lrXML,Time);
lrXML.lData.XmlChildren[i].ID.XmlText =
#qLessons.ID[i]#;
lrXML.lData.XmlChildren[i].Lesson.XmlText =
#qLessons.Lesson[i]#;
lrXML.lData.XmlChildren[i].Required.XmlText =
#qLessons.Required[i]#;
lrXML.lData.XmlChildren[i].Time.XmlText =
#qLessons.Time[i]#;
}
/cfscript

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com






NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211757
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple XML cfscript question

2005-07-13 Thread Anthony Prato
queryname.columnlist is what you are looking for. use listlen() to set
your upper bound. You may also want to check out cflib.org for some
helpful functions like converting query rows to structs, structs to
xml, etc. (there are tons of handy functions there)

Anthony

On 7/13/05, Merrill, Jason [EMAIL PROTECTED] wrote:
 Well, I got it working, didn't realize I could use the Array access
 operator like I can in Flash and Javascript - gotta love ECMA.
 
 Here is the script, but how can I make it cleaner  - i.e. get names of
 fields and then loop over those?
 
 cfscript
lrXML = XmlNew();
lrXML.xmlRoot = XmlElemNew(lrXML,lData);
for (i = 1; i LTE #qAllLessons.RecordCount#; i = i + 1){
lrXML.lData.XmlChildren[i] =
 XmlElemNew(lrXML,Content);
lrXML.lData.XmlChildren[i].XmlChildren[1] =
 XmlElemNew(lrXML,ID);
lrXML.lData.XmlChildren[i].XmlChildren[2] =
 XmlElemNew(lrXML,Lesson);
lrXML.lData.XmlChildren[i].XmlChildren[3] =
 XmlElemNew(lrXML,Required);
lrXML.lData.XmlChildren[i].XmlChildren[4] =
 XmlElemNew(lrXML,Time);
lrXML.lData.XmlChildren[i].ID.XmlText =
 #qLessons.ID[i]#;
lrXML.lData.XmlChildren[i].Lesson.XmlText =
 #qLessons.Lesson[i]#;
lrXML.lData.XmlChildren[i].Required.XmlText =
 #qLessons.Required[i]#;
lrXML.lData.XmlChildren[i].Time.XmlText =
 #qLessons.Time[i]#;
}
 /cfscript
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 -Original Message-
 From: Merrill, Jason [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 13, 2005 11:31 AM
 To: CF-Talk
 Subject: Simple XML cfscript question
 
 New here - Flash-guy, also new to ColdFusion and SQL (CF-Newbies
 doesn't
 seem to be populated with anybody)
 
 (...and before I ask the question, I'm also looking for a cleaner way
 to
 write this, like not having to hard code the field column names)
 
 How do I insert each subsequent record from a database into my XML
 file?
 I got this working, but it of course repeats the first record in each
 child node,which is not what I want.
 
 cfquery name=qAllLessons datasource=coursesDB
   SELECT * FROM Lessons
 /cfquery
 cfquery name=qLessons datasource=coursesDB
   SELECT ID, Lesson, Required, Time FROM Lessons
 /cfquery
 
 cfscript
   lrXML = XmlNew();
   lrXML.xmlRoot = XmlElemNew(lrXML,lData);
   for (i = 1; i LTE #qAllLessons.RecordCount#; i = i + 1){
   lrXML.lData.XmlChildren[i] =
 XmlElemNew(lrXML,Content);
   lrXML.lData.XmlChildren[i].XmlChildren[1] =
 XmlElemNew(lrXML,ID);
   lrXML.lData.XmlChildren[i].XmlChildren[2] =
 XmlElemNew(lrXML,Lesson);
   lrXML.lData.XmlChildren[i].XmlChildren[3] =
 XmlElemNew(lrXML,Required);
   lrXML.lData.XmlChildren[i].XmlChildren[4] =
 XmlElemNew(lrXML,Time);
   lrXML.lData.XmlChildren[i].ID.XmlText = #qLessons.ID#;
   lrXML.lData.XmlChildren[i].Lesson.XmlText =
 #qLessons.Lesson#;
   lrXML.lData.XmlChildren[i].Required.XmlText =
 #qLessons.Required#;
   lrXML.lData.XmlChildren[i].Time.XmlText =
 #qLessons.Time#;
   }
 /cfscript
 cfdump var=#lrXML#
 cfset XMLText = ToString(lrXML)
 cffile action=write
 file=C:\CFusionMX7\wwwroot\com\macromedia\test\myTextXml_3.xml
 output=#XMLText#
 
 
 This outputs:
 
 ?xml version=1.0 encoding=UTF-8 ?
 lData
Content
  ID1/ID
  LessonbIntroduction to Spatial Analysis/Lesson
  RequiredTrue/Required
  Time2/Time
   /Content
   Content
  ID1/ID
  LessonbIntroduction to Spatial Analysis/Lesson
  RequiredTrue/Required
  Time2/Time
   /Content
 ...etc...
 
 How do I write the query to insert each record into each subsequent
 node
 instead of inserting the first record each time?
 
 Or, is there a cfscript out there that will take a table and convert
 its
 contents to XML with the nodes being named what the field names are
 named?  I have searched the web, but haven't found one yet.
 
 Thanks.
 
 Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
 
 
 
 
 
 
 
 
 
 
 
 NOTICE:
 This message is for the designated recipient only and may contain
 privileged or
 confidential information. If you have received it in error, please
 notify the sender
 immediately and delete the original. Any other use of this e-mail by
 you is
 prohibited.
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211758
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com

RE: Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
Thanks very much  - could you shoot me an example of usage of both
columnlist and listlen() in this context?  I'm new to ColdFusion and
can't quite wrap my head around it.  

I tried:

for (i = 1; i LTE #qLessons.RecordCount#; i = i + 1){
lrXML.lData.XmlChildren[i] =
XmlElemNew(lrXML,Content);
for(n = 1; n LTE 4; n = n + 1){
lrXML.lData.XmlChildren[i].XmlChildren[n] =
XmlElemNew(lrXML,#qLessons.columnlist[n]#);
...etc...

for example, and that didn't work...

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com






NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211760
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple XML cfscript question

2005-07-13 Thread Anthony Prato
i'm a bit rusty on my syntax, i've been working on some asp projects
recently (yuk)

try this out
cfscript
   lrXML = XmlNew();
   lrXML.xmlRoot = XmlElemNew(lrXML,lData);
   for (ii = 1; ii LTE qAllLessons.RecordCount; ii = ii + 1){
   lrXML.lData.XmlChildren[ii] =
XmlElemNew(lrXML,Content);

 for (kk = 1; kk LTE listlen(qAllLessons.columnlist); kk = kk + 1) {
 lrXML.lData.XmlChildren[ii].XmlChildren[kk] =
XmlElemNew(lrXML,#listgetat(qAllLessons.columnlist,kk)#);

lrXML.lData.XmlChildren[ii].XmlChildren[kk].XmlText =
qAllLessons[#listgetat(qAllLessons.columnlist,kk)#][ii]
 }
}
/cfscript

Anthony

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211761
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
Nevermind, after some headaches, I figured it out on my own:

cfquery name=GetAll datasource=coursesDB  
SELECT * FROM Lessons
/cfquery

!-- the following query used to dynamically get the table names !--
cfquery name=GetTables datasource=coursesDB
   SELECT MSysObjects.Name
 FROM MSysObjects
WHERE MSysObjects.Flags = 0
  AND MSysObjects.Type = 1
ORDER BY MSysObjects.Name
/cfquery

cfscript
d = XmlNew();
d.xmlRoot = XmlElemNew(d, #GetTables.Name#);
for (i=1; i LTE #GetAll.RecordCount#; i=i+1){
d[#GetTables.Name#].XmlChildren[i] =
XmlElemNew(d,Content);
for(n=1; n LTE listLen(#GetAll.ColumnList#); n=n+1){

d[#GetTables.Name#].XmlChildren[i].XmlChildren[n] =
XmlElemNew(d,#ListGetAt(GetAll.ColumnList,n)#);

d[#GetTables.Name#].XmlChildren[i][#ListGetAt(GetAll.ColumnList,n)#].Xml
Text = #GetAll[#ListGetAt(GetAll.ColumnList,n)#][i]#;
}
}
/cfscript

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com



NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211776
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: write component/object with cfscript

2005-07-02 Thread Adam Haskell
would be slightly nice, might put in an enhancement request to
Macromedia AND New Atlanta.

Adam H

On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:
 Thanks for your reply I just touhgt there might be a way to use the cfscript
 way with some additional stuff in front of the function keyword.
 
 Cheers
 Chris
 -Original Message-
 From: John Beynon [mailto:[EMAIL PROTECTED]
 Sent: 01 July 2005 09:14
 To: CF-Talk
 Subject: Re: write component/object with cfscript
 
 CFCs have to be written as tags, cfcomponent, cffunction, cfscript
 can be used inside the cffunction though.
 
 john.
 
 
 On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:
  Hi Folks,
 
 
 
  I am writing an object definition with cfcomponent and I would like to use
  cfscript inside. I couldn't find any reference if there was a way to
 specify
  the access type and the return type of a function (method) with cfscript
  like you would do it in Java.
 
 
 
  public boolean DummyFunction()
 
  {
 
  
 
  }
 
 
 
  Thanks for your help
 
 
 
  Chris
 
 
 
 
 
 
 
  
 
  Christian Boudot
 
  Intrasoft International S.A.
 
  2b rue Nicolas Bové
 
  L-1253 Luxembourg
 
  Telephone: +352 44 10 12 2114
 
 
 
 
 
 
 
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211062
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: write component/object with cfscript

2005-07-02 Thread Johnny Le
According to a presentation at CFUNITED-05, cfscript is fading out and at some 
points it won't be supported.  The presenter is not from Macromedia.  So I 
don't know how reliable the source is.  I meant to ask Mike Nimer about that, 
but I forgot.  It sounds silly though.

Johnny


would be slightly nice, might put in an enhancement request to
Macromedia AND New Atlanta.

Adam H

On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211063
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: write component/object with cfscript

2005-07-02 Thread Mike Nimer
HUH! Johnny, don't worry that is absolutely not true, why would we do
that?

Do you remember which presentation that was? Were there any other points
of the presentation that seemed wrong?

---nimer


-Original Message-
From: Johnny Le [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 02, 2005 11:23 AM
To: CF-Talk
Subject: Re: write component/object with cfscript

According to a presentation at CFUNITED-05, cfscript is fading out and
at some points it won't be supported.  The presenter is not from
Macromedia.  So I don't know how reliable the source is.  I meant to ask
Mike Nimer about that, but I forgot.  It sounds silly though.

Johnny


would be slightly nice, might put in an enhancement request to
Macromedia AND New Atlanta.

Adam H

On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211071
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: write component/object with cfscript

2005-07-02 Thread Adam Haskell
Actually yes Mike there were other points in the presentation that
were wrong. I attended this one b/c I was too lazy to move out of
advanced tuning and the adavnced gateway was next, which was great, so
I sat in on this one this lady was ...well not very good... I
corrected her atleast once, and attempted to atleast 1 or 2 other
times. I was actually going to post about this presenter on
monday...The presentation claimed you could not use Functions or tags
in cfscript...HELLO wtf was she talking about...I did correct her on
that. She also insightfully told all our begginers to VAR all
variables in UDFs which is great but in her udf she did a cfquery but
never VARed the variable the query was contained in. She also maid no
mention of the HINT attribute yet put a perfectly good HINT in
comments above the UDF. THe advanced courses werre great this year but
some of the beginner classes seemed to be in need of some serious
help. If you would like specifics let me know :)


Adam H 

On 7/2/05, Mike Nimer [EMAIL PROTECTED] wrote:
 HUH! Johnny, don't worry that is absolutely not true, why would we do
 that?
 
 Do you remember which presentation that was? Were there any other points
 of the presentation that seemed wrong?
 
 ---nimer
 
 
 -Original Message-
 From: Johnny Le [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 02, 2005 11:23 AM
 To: CF-Talk
 Subject: Re: write component/object with cfscript
 
 According to a presentation at CFUNITED-05, cfscript is fading out and
 at some points it won't be supported.  The presenter is not from
 Macromedia.  So I don't know how reliable the source is.  I meant to ask
 Mike Nimer about that, but I forgot.  It sounds silly though.
 
 Johnny
 
 
 would be slightly nice, might put in an enhancement request to
 Macromedia AND New Atlanta.
 
 Adam H
 
 On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211072
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: write component/object with cfscript

2005-07-02 Thread Johnny Le
Ah, so you were the one who corrected her.  I thought somehow you missed that 
important announcement.

Yep, I remember.  That was session 14 (room 1) by Melissa Lizmi.  She also gave 
a presentation on Variables and Conditions.  I did not attend that session 
though.

BTW, Mike, thanks to your presentation, I spent the whole day today exploring 
cfform.  I have so many questions... :-)

Johnny


Actually yes Mike there were other points in the presentation that
were wrong. I attended this one b/c I was too lazy to move out of
advanced tuning and the adavnced gateway was next, which was great, so
I sat in on this one this lady was ...well not very good... I
corrected her atleast once, and attempted to atleast 1 or 2 other
times. I was actually going to post about this presenter on
monday...The presentation claimed you could not use Functions or tags
in cfscript...HELLO wtf was she talking about...I did correct her on
that. She also insightfully told all our begginers to VAR all
variables in UDFs which is great but in her udf she did a cfquery but
never VARed the variable the query was contained in. She also maid no
mention of the HINT attribute yet put a perfectly good HINT in
comments above the UDF. THe advanced courses werre great this year but
some of the beginner classes seemed to be in need of some serious
help. If you would like specifics let me know :)


Adam H 

On 7/2/05, Mike Nimer [EMAIL PROTECTED] wrote:


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211076
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


write component/object with cfscript

2005-07-01 Thread BOUDOT Christian
Hi Folks,

 

I am writing an object definition with cfcomponent and I would like to use
cfscript inside. I couldn't find any reference if there was a way to specify
the access type and the return type of a function (method) with cfscript
like you would do it in Java.

 

public boolean DummyFunction()

{



}

 

Thanks for your help

 

Chris

 

 

 



Christian Boudot

Intrasoft International S.A.

2b rue Nicolas Bové

L-1253 Luxembourg

Telephone: +352 44 10 12 2114

 

 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210997
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: write component/object with cfscript

2005-07-01 Thread John Beynon
CFCs have to be written as tags, cfcomponent, cffunction, cfscript
can be used inside the cffunction though.

john.


On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:
 Hi Folks,
 
 
 
 I am writing an object definition with cfcomponent and I would like to use
 cfscript inside. I couldn't find any reference if there was a way to specify
 the access type and the return type of a function (method) with cfscript
 like you would do it in Java.
 
 
 
 public boolean DummyFunction()
 
 {
 
 
 
 }
 
 
 
 Thanks for your help
 
 
 
 Chris
 
 
 
 
 
 
 
 
 
 Christian Boudot
 
 Intrasoft International S.A.
 
 2b rue Nicolas Bové
 
 L-1253 Luxembourg
 
 Telephone: +352 44 10 12 2114
 
 
 
 
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210998
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: write component/object with cfscript

2005-07-01 Thread BOUDOT Christian
Thanks for your reply I just touhgt there might be a way to use the cfscript
way with some additional stuff in front of the function keyword.

Cheers
Chris
-Original Message-
From: John Beynon [mailto:[EMAIL PROTECTED] 
Sent: 01 July 2005 09:14
To: CF-Talk
Subject: Re: write component/object with cfscript

CFCs have to be written as tags, cfcomponent, cffunction, cfscript
can be used inside the cffunction though.

john.


On 7/1/05, BOUDOT Christian [EMAIL PROTECTED] wrote:
 Hi Folks,
 
 
 
 I am writing an object definition with cfcomponent and I would like to use
 cfscript inside. I couldn't find any reference if there was a way to
specify
 the access type and the return type of a function (method) with cfscript
 like you would do it in Java.
 
 
 
 public boolean DummyFunction()
 
 {
 
 
 
 }
 
 
 
 Thanks for your help
 
 
 
 Chris
 
 
 
 
 
 
 
 
 
 Christian Boudot
 
 Intrasoft International S.A.
 
 2b rue Nicolas Bové
 
 L-1253 Luxembourg
 
 Telephone: +352 44 10 12 2114
 
 
 
 
 
 
 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211007
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfscript looping over udf's

2005-06-23 Thread Brian Holder
i am looping over a query - inside the loop, i am calling a udf that calls 
another udf...

for( i = 1; i lte qQuery.RecordCount; i = i+1 ) {
  WriteOutput(DrawRow(qQuery.colA[i]), Trim(qQuery.colB[i])));
}

function DrawRow(someNo, someAmt) {

  var rRow = ;
  var thisRow = SetValue(someNo, someAmt);

  for( i = 1; i lte ArrayLen(thisRow); i = i+1 ) {
rRow = rRow  'td align=right class='  IIf(thisRow[i] lt 0, 
DE(negative), DE())  '';
rRow = rRow  IIf(thisRow[i] gt 0, DE(DecimalFormat(thisRow[i])), 
DE(nbsp;))  '/td';
  }
  return rRow;  // return a string
}

function SetValue(someNo, someAmt) {
  switch (someNo) {
case 082: {
  aRow[1] = someAmt;
  break;
}
case 126: {
  aRow[2] = someAmt;
  break;
}
case 153: {
  aRow[3] = someAmt;
  break;
}
case 176: {
  aRow[4] = someAmt;
  break;
}
case 301: {
  aRow[5] = someAmt;
  break;
}
  }
  return aRow; // return an array
}

however, the call to the DrawRow() udf in the query loop works for the first 
iteration, then breaks out of the loop therfore ignoring any subsequent records.

does anyone see a possible reason for this?

at first i thought it maybe the use of break in the case statements in the 
SetValue udf, so i changed to using if/else if, but that produced the same 
results.

i also tried using global variables instead of function-local vars for the 
array - still no luck.

it really seems as though something wacked is happening after the first 
iteration of the query loop that is causing the loop to end prematurely, but i 
can seem to pin it down.

this is in cf5 btw cringe

tia!

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210375
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfscript looping over udf's

2005-06-23 Thread Brian Holder
 
 function SetValue(someNo, someAmt) {
  
oops - that should read...

function SetValue(someNo, someAmt) {
  
  var aRow = ArrayNew(1);
  ArraySet(variables.aRow, 1, 5, 0);

  // switch/case statements
  
  return aRow;
}

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210379
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript looping over udf's

2005-06-23 Thread Sean Corfield
On 6/23/05, Brian Holder [EMAIL PROTECTED] wrote:
 function DrawRow(someNo, someAmt) {
 
   var rRow = ;
   var thisRow = SetValue(someNo, someAmt);
 
   for( i = 1; i lte ArrayLen(thisRow); i = i+1 ) {

You forgot to var-declare i
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210383
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfscript looping over udf's

2005-06-23 Thread Ian Skinner
You need to var scope the 'i' variable in the function so it is local to the 
function, otherwise it is the same 'i' in the main loop thus funky, 
unintentional results occur.  Scope those variables! 


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

-Original Message-
From: Brian Holder [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 9:27 AM
To: CF-Talk
Subject: cfscript looping over udf's

i am looping over a query - inside the loop, i am calling a udf that
calls another udf...

for( i = 1; i lte qQuery.RecordCount; i = i+1 ) {
  WriteOutput(DrawRow(qQuery.colA[i]), Trim(qQuery.colB[i])));
}

function DrawRow(someNo, someAmt) {

  var rRow = ;
  var thisRow = SetValue(someNo, someAmt);

  for( i = 1; i lte ArrayLen(thisRow); i = i+1 ) {
rRow = rRow  'td align=right class='  IIf(thisRow[i] lt 0,
DE(negative), DE())  '';
rRow = rRow  IIf(thisRow[i] gt 0, DE(DecimalFormat(thisRow[i])),
DE(nbsp;))  '/td';
  }
  return rRow;  // return a string
}

function SetValue(someNo, someAmt) {
  switch (someNo) {
case 082: {
  aRow[1] = someAmt;
  break;
}
case 126: {
  aRow[2] = someAmt;
  break;
}
case 153: {
  aRow[3] = someAmt;
  break;
}
case 176: {
  aRow[4] = someAmt;
  break;
}
case 301: {
  aRow[5] = someAmt;
  break;
}
  }
  return aRow; // return an array
}

however, the call to the DrawRow() udf in the query loop works for the
first iteration, then breaks out of the loop therfore ignoring any
subsequent records.

does anyone see a possible reason for this?

at first i thought it maybe the use of break in the case statements in
the SetValue udf, so i changed to using if/else if, but that produced the
same results.

i also tried using global variables instead of function-local vars for
the array - still no luck.

it really seems as though something wacked is happening after the first
iteration of the query loop that is causing the loop to end prematurely,
but i can seem to pin it down.

this is in cf5 btw cringe

tia!



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210381
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript looping over udf's

2005-06-23 Thread S . Isaac Dealey
You didn't declare i in DrawRow() with the var keyword -- that's your
problem, since it's overwriting the variable i you're using to loop
over the query...

I also I don't see aRow declared anywhere... i.e. aRow =
arrayNew(1)... don't know if that's a problem...

And your setValue function could be shorter:

function SetValue(someNo, someAmt) {
  switch (someNo) {
case 082: { ; }
case 126: { ; }
case 153: { ; }
case 176: { ; }
case 301: { ; }
  aRow[5] = someAmt;
  break;
}
  }
  return aRow; // return an array
}


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210386
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript looping over udf's

2005-06-23 Thread Raymond Camden
Your UDF uses the loop variable, i. So does your main page call. You
forgot to var scope the i in the UDF. That's the problem.

On 6/23/05, Brian Holder [EMAIL PROTECTED] wrote:
 i am looping over a query - inside the loop, i am calling a udf that calls 
 another udf...
 
 for( i = 1; i lte qQuery.RecordCount; i = i+1 ) {
   WriteOutput(DrawRow(qQuery.colA[i]), Trim(qQuery.colB[i])));
 } 


-- 
===
Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com)

Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email: [EMAIL PROTECTED]
Blog : ray.camdenfamily.com
Yahoo IM : cfjedimaster

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

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210387
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfscript looping over udf's

2005-06-23 Thread Brian Holder
You didn't declare i in DrawRow() with the var keyword -- that's your
problem, since it's overwriting the variable i you're using to loop
over the query...

duh - thanks everyone - i just changed the i to var j for more clarity and it 
works perfectly with the following code...

for( i = 1; i lte qQuery.RecordCount; i = i+1 ) {
  WriteOutput(DrawRow(qQuery.colA[i]), Trim(qQuery.colB[i])));
}

function DrawRow(someNo, someAmt) {

  var j = 0;
  var rRow = ;
  var thisRow = SetValue(someNo, someAmt);

  for( j = 1; j lte ArrayLen(thisRow); j = j+1 ) {
rRow = rRow  'td align=right class='  IIf(thisRow[j] lt 0, 
DE(negative), DE())  '';
rRow = rRow  IIf(thisRow[i] gt 0, DE(DecimalFormat(thisRow[j])), 
DE(nbsp;))  '/td';
  }
  return rRow;  // return a string
}

function SetValue(someNo, someAmt) {

  var aRow = ArrayNew(1);
  ArraySet(aRow, 1, 5, 0);
  
  switch (someNo) {
case 082: {
  aRow[1] = someAmt;
  break;
}
case 126: {
  aRow[2] = someAmt;
  break;
}
case 153: {
  aRow[3] = someAmt;
  break;
}
case 176: {
  aRow[4] = someAmt;
  break;
}
case 301: {
  aRow[5] = someAmt;
  break;
}
  }
  return aRow; // return an array
}

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210409
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-11 Thread Barney Boisvert
You meant chr(13)  chr(10) for the windows line ending, right?  And
the 'mac' line ending is only for Mac OS9 and earlier.  Mac OSX (since
it's *nix based) uses just the line feed.

cheers,
barneyb

On 6/10/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:
 That will work in most browsers, Windows or otherwise, because they all seem
 to interpret chr(10) as enough for a newline even if the OS demands a cr-lf
 combination for a valid line break.
 
 But if you're creating PDFs, you'll probably want writeOutput('some text
 here'  chr(10)  chr(13)) just to make sure that you're feeing it valid
 linefeeds. You may check the PDF documentation (what there is of it, anyway)
 to see exactly what character combo it wants for a newline. Generally, the
 character sets are as follows:
 
 Mac: cr
 Win: cr-lf
 *NIX: lf
 
 It's kinda twitchy, and a PITA, to get the characters just right...
 experiment and see what you come up with.
 
 Laterz!
 
 J
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209218
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-11 Thread James Taavon
well, that did not work. I keep getting invalid CFML construct. i believe i 
need to use #chr(10). Here what i am trying to do exactly. I have a shipping 
address populating a cell in an array. Now i want to have a carriage return 
after each line in the address in the same array cell.
CODE:

Q_ShipmentList.EK_CompName[j], a_shipment[3][2]
Q_ShipmentList.EK_Attention[j], a_shipment[3][2]
Q_ShipmentList.EK_Addr1[j], a_shipment[3][2]
Q_ShipmentList.EK_Addr2[j], a_shipment[3][2]
Q_ShipmentList.EK_Addr3[j], a_shipment[3][2]
Q_ShipmentList.EK_City[j], a_shipment[3][2]
Q_ShipmentList.EK_State[j], a_shipment[3][2]
Q_ShipmentList.EK_Zip[j],a_shipment[3][2]


You meant chr(13)  chr(10) for the windows line ending, right?  And
the 'mac' line ending is only for Mac OS9 and earlier.  Mac OSX (since
it's *nix based) uses just the line feed.

cheers,
barneyb

On 6/10/05, Jared Rypka-Hauer - CMG, LLC [EMAIL PROTECTED] wrote:

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209226
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


chr(10) AND CFSCRIPT

2005-06-10 Thread James Taavon
i want to be able to force a carriage return while getting output back within a 
cfscript block. i have tried several combos, but nothing seems to work. also 
using PDFLib if anyone is familiar with that as well.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209209
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-10 Thread Barney Boisvert
cfscript
  writeOutput('text with newline'  chr(10));
/cfscript

that should do ya.

cheers,
barneyb

On 6/10/05, James Taavon [EMAIL PROTECTED] wrote:
 i want to be able to force a carriage return while getting output back within 
 a cfscript block. i have tried several combos, but nothing seems to work. 
 also using PDFLib if anyone is familiar with that as well.
 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209210
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: chr(10) AND CFSCRIPT

2005-06-10 Thread Jared Rypka-Hauer - CMG, LLC
That will work in most browsers, Windows or otherwise, because they all seem 
to interpret chr(10) as enough for a newline even if the OS demands a cr-lf 
combination for a valid line break.

But if you're creating PDFs, you'll probably want writeOutput('some text 
here'  chr(10)  chr(13)) just to make sure that you're feeing it valid 
linefeeds. You may check the PDF documentation (what there is of it, anyway) 
to see exactly what character combo it wants for a newline. Generally, the 
character sets are as follows:

Mac: cr
Win: cr-lf
*NIX: lf

It's kinda twitchy, and a PITA, to get the characters just right... 
experiment and see what you come up with.

Laterz!

J

On 6/10/05, Barney Boisvert [EMAIL PROTECTED] wrote:
 
 cfscript
 writeOutput('text with newline'  chr(10));
 /cfscript
 
 that should do ya.
 
 cheers,
 barneyb
 
 On 6/10/05, James Taavon [EMAIL PROTECTED] wrote:
  i want to be able to force a carriage return while getting output back 
 within a cfscript block. i have tried several combos, but nothing seems to 
 work. also using PDFLib if anyone is familiar with that as well.
 
 
 --
 Barney Boisvert
 [EMAIL PROTECTED]
 360.319.6145
 http://www.barneyb.com/




-- 
---
-
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209213
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFSCRIPT / RequestTimeOut?

2005-06-07 Thread Adkins, Randy
Actually we are having the problem with 6.1

Any one else have a similar issue??

 

-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 03, 2005 11:31 AM
To: CF-Talk
Subject: Re: CFSCRIPT / RequestTimeOut?

I don't know about what happens if the app times out, but I know I've
hung the dev server a couple of times when a function couldn't properly
exit (I was missing a return statement in one clause).  I had to restart
the service to get the threads to die.  This was CF5, btw, so I don't
know if this affects later versions.

--Ben

Adkins, Randy wrote:
 Does anyone know of an issue when using CFScript and if a function 
 exceeds the RequestTimeOut variable set in the Administrator or as 
 part of the URL, the server never seems to release it.
  
 I do not want to revert back to regular CF tags cause cfscript is a 
 performance enhancement for us.
  
 Thanks!
  
  
 
 
 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208796
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT / RequestTimeOut?

2005-06-03 Thread Ben Doom
I don't know about what happens if the app times out, but I know I've
hung the dev server a couple of times when a function couldn't properly
exit (I was missing a return statement in one clause).  I had to restart
the service to get the threads to die.  This was CF5, btw, so I don't
know if this affects later versions.

--Ben

Adkins, Randy wrote:
 Does anyone know of an issue when using CFScript and if a function
 exceeds the
 RequestTimeOut variable set in the Administrator or as part of the URL,
 the server
 never seems to release it.
  
 I do not want to revert back to regular CF tags cause cfscript is a
 performance 
 enhancement for us.
  
 Thanks!
  
  
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208530
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFSCRIPT / RequestTimeOut?

2005-06-02 Thread Adkins, Randy
Does anyone know of an issue when using CFScript and if a function
exceeds the
RequestTimeOut variable set in the Administrator or as part of the URL,
the server
never seems to release it.
 
I do not want to revert back to regular CF tags cause cfscript is a
performance 
enhancement for us.
 
Thanks!
 
 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208421
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Bitwise operations in CFScript

2005-04-01 Thread Howie Hamlin
Is it possible to do bitwise operations in cfscript?  I have two numbers that I 
need to AND together and check for a non-zero result.  I've looked around and 
tried several things but none seem to work.

Thanks,

-- 
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
PrismAV - Virus scanning for ColdFusion and BlueDragon applications
Find out how iMS Stacks up to the competition: 
http://www.coolfusion.com/imssecomparison.cfm

iMS-Lite - the completely free mail server solution for applications and 
application servers
http://www.coolfusion.com/iMSLite



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201192
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Bitwise operations in CFScript

2005-04-01 Thread Claude Schneegans
 Is it possible to do bitwise operations in cfscript? I have two 
numbers that I need to AND together and check for a non-zero result.

Look for bitwhatever functions, ie: *BitAnd*(/number1/, /number2/)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201196
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Bitwise operations in CFScript

2005-04-01 Thread Howie Hamlin
Doh - I couldn't find that documented in cfscript and I found other web pages 
on google saying that bit ops were not part of cfscript...

Oh well, BitAnd worked and I'm truly embarrassed..

At least it's Friday and I have some cool ones in the fridge at home :)

Thanks,

Howie

--- On Friday, April 01, 2005 3:55 PM, Claude Schneegans scribed: ---

 Is it possible to do bitwise operations in cfscript? I have two
 numbers that I need to AND together and check for a non-zero result.
 
 Look for bitwhatever functions, ie: *BitAnd*(/number1/, /number2/)

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201201
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Bitwise operations in CFScript

2005-04-01 Thread Claude Schneegans
 I couldn't find that documented in cfscript

Actaully, you ca use any function in a script, so look in the docs about 
functions:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/function.htm#wp3082862

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201213
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Bitwise operations in CFScript

2005-04-01 Thread Howie Hamlin
What confused me, I guess, was that cfscript is a lot like javascript and I 
expected bitwise operators like those...

Thanks,

Howie

--- On Friday, April 01, 2005 4:57 PM, Claude Schneegans scribed: ---

 I couldn't find that documented in cfscript
 
 Actaully, you ca use any function in a script, so look in the docs
 about functions:
 http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/function.htm#wp3082862

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201215
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


<    1   2   3   4   5   6   7   8   9   10   >