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

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

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

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

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

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

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

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

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?

RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
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

Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
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

RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
] 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

Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
- 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

RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
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

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

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

Re: cfscript Common Functions and Best Practices

2005-12-06 Thread Michael Dinowitz
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

RE: cfscript Common Functions and Best Practices

2005-12-06 Thread Bobby Hartsfield
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

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

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

Re: Complete CFSCRIPT

2005-12-05 Thread John Wilker
-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

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

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

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

Re: CFscript function

2005-10-26 Thread Alan Rother
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

Re: CFscript function

2005-10-26 Thread Alan Rother
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

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

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

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

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

Re: cfscript: optional arguments in function calling

2005-10-03 Thread Joe Eugene
: 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

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

Re: CFScript Inquiry

2005-09-27 Thread Ben Doom
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

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

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

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

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Barney Boisvert
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

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

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Tony
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

Re: Call cfscript inside cfc - its possible?

2005-09-26 Thread Michel Deloux
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

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

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

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

RE: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread S . Isaac Dealey
: 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

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

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

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

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

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

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

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
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

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

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

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Gaulin, Mark
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

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
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

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

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.

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?

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.

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Gaulin, Mark
: 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

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:

CFSCRIPT and loop index values in variables

2005-07-23 Thread Pete Ruckelshaus
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

Re: CFSCRIPT and loop index values in variables

2005-07-23 Thread Barney Boisvert
): 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

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

Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
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

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

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

RE: Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
? 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

Re: Simple XML cfscript question

2005-07-13 Thread Anthony Prato
[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

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] =

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

RE: Simple XML cfscript question

2005-07-13 Thread Merrill, Jason
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

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

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

RE: write component/object with cfscript

2005-07-02 Thread Mike Nimer
, 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

Re: write component/object with cfscript

2005-07-02 Thread Adam Haskell
, 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

Re: write component/object with cfscript

2005-07-02 Thread Johnny Le
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

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

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

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

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 =

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; } ~|

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 --

RE: cfscript looping over udf's

2005-06-23 Thread Ian Skinner
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

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

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

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

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,

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:

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

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

Re: chr(10) AND CFSCRIPT

2005-06-10 Thread Jared Rypka-Hauer - CMG, LLC
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

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

Re: CFSCRIPT / RequestTimeOut?

2005-06-03 Thread Ben Doom
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

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

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

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

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

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

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

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