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
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
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
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
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
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
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
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
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?
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
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
]
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
-
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
:
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
-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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
- 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
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.
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?
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.
: 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
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:
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
):
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
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
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
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
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
?
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
[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
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] =
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
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
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
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
, 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
, 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
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
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
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
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
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 =
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;
}
~|
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 --
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
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
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
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
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,
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:
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
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
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
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
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
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
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
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
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
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
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
401 - 500 of 1308 matches
Mail list logo