When Jeremy Allaire visited SF for a users group meeting right after the
Macromedia merger, he said there was a future plan to make CF a front-end
language for the .NET platform, just as it will be for the J2EE platform
with CF6. No technical details, of course, and I have no idea whether
SAX requires a compiled language - there are implementations for Java, VB
and C++ - so you can't implement SAX parsers directly in CF, a non-compiled
scripting environment.
You could modify the Java classes so they can be called from a CF page; for
this, you have choices of calling them directly
Since both session and form are structures, you can use array-style syntax:
cfloop index="field" list="#form.fieldnames#"
cfset session[field] = form[field]
/cfloop
The cfoutput tags are unnecessary. And remember to use cflock around
the whole thing...
-Original Message-
From: Jay
kev,
Take a look at the examples I put together for last year's conference:
http://www.vintageapps.com/conference.cfm
They detail how to use the MSXML3 COM object and a bit on the Java-based
Xerces library.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
I don't know if this is causing all of your problems, but you're missing
pound signs around the JokeID value in the OPTION tags. The corrected
version:
SELECT MULTIPLE NAME="a" SIZE="5"
CFOUTPUT QUERY="Review"
OPTION VALUE="#JokeID#"#JokeTitle#/OPTION
/CFOUTPUT
/SELECT
I have a review form
The LJustify() function is designed for exactly this purpose:
LJustify(myColumn, 30)
-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 5:23 AM
To: CF-Talk
Subject: RE: padding a variable
how do you pad a variable in CF.
Add a hidden field to the form; have each of the links set the value of the
field to something you can check from within the action page.
-Original Message-
From: Brett Payne-Rhodes [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 6:29 AM
To: CF-Talk
Subject: Re:
Error 405 means that IIS doesn't understand the requests's file extension
and can't properly dispatch it to the ColdFusion server. Your action
attribute implies a file extension ".cfm/download.csv" which is meaningless
to the web server.
If you want the user to be able to download a file called
You might be having problems field names using SQL reserved words. Try
enclosing all the field names in brackets:
cfquery name="AddUser" datasource="NOW"
INSERT INTO Users
([First],[Last],Ride,Fav_Place)
VALUES('#First#','#Last#','#Ride#','#Fav_Place#')
/cfquery
-Original Message-
Use a non-breaking space:
cfset padding=RepeatString( "nbsp;", 30 - Len(myColumn) )
#myColumn##padding#
-Original Message-
From: Alex [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 8:24 AM
To: CF-Talk
Subject: Re: [RE: padding a variable]
how do i get it to show 30
Holiday Inn (White House) is 4 blocks from the Dupont Circle metro on the
red line, 1 stop from the Marriott, and has rooms at $99/night.
- Original Message -
From: Marius Milosav [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, November 01, 2000 4:25 PM
Subject: Re:
Sima, the only thing I notice is the misspelling of the "type" attribute;
it's spelled "tyep". If that misspelling isn't in your actual code, then
the problem may be in the class itself; could you post the source code?
Also, note that if you call the class once, then modify and re-compile,
The form.formfields variable contains a comma-delimited list of form fields.
- Original Message -
From: Jonathan R. Karlen [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 31, 2000 6:41 PM
Subject: Getting List of Form Fields
This is a multi-part message in MIME
It's pretty straightforward with the LotusXSL/Xalan processor. Here's a
code snippet that does a transformation and saves the result to a text file:
!--- Create the parser factory, and get the parser ---
CFOBJECT TYPE=JAVA
ACTION=CREATE
CLASS="com.lotus.xsl.XSLProcessor"
Since the application and server scopes are stored in structures, you could
clear them all with:
cfset structclear(application)
cfset structclear(server)
-Original Message-
From: Peter Alexandrou [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 29, 2000 6:20 PM
To: CF-Talk
Subject:
My mistake:
This works for application variables, but not for server variables.
David
- Original Message -
From: David Gassner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 3:18 PM
Subject: RE: Application Variables
Since the application and server
Yes, you can use the Replace() function:
cfoutput
#Replace(myQuery.htmlText, Chr(10), "br")#
/cfoutput
- Original Message -
From: S R [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 7:00 PM
Subject: insert br
Hi,
I am creating a page that calls a text
If you use CFERROR Type="Exception" rather than "Request" (the default
value), you can execute any CF commands in the Error template, including the
CFMAIL tag.
-Original Message-
From: Peter Alexandrou [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 29, 2000 5:13 PM
To: CF-Talk
It's:
CFHEADER NAME="Content-Disposition" VALUE="inline; Filename=#myfilename#"
-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 28, 2000 12:29 PM
To: CF-Talk
Subject: cfcontent
I'm using cfcontent to trigger the upload of a file. Does
omething that can
be done to the url to fix this.
In file one I have
a href="getfile.cfm?filename=something.ext"GetFile/a
in getfile.cfm:
cfcontent type=""
file="#GetDirectoryFromPath(GetCurrentTemplatePath())##url.filename#"
deletefile="No"
Du
Here's another entry:
cfset Value="81"
cfset compare="3"
cfset isPower=false
cfloop condition="(value gte compare)"
cfif value is Compare
cfset isPower = true
cfbreak
cfelse
cfset compare = compare * 3
/cfif
/cfloop
cfoutput#isPower#/CFOUTPUT
-Original Message-
"David
Ga
Change this line:
cfif not ListFind(variables.SomeList, i)
to:
cfif not ListFind(variables.SomeList, Mid(FORM.Username, i, 1))
Otherwise you're looking for the numeric index in the looping sequence, not
the equivalent character in the form variable.
David
-Original Message-
Sam, track the current value of the repeating field in a local variable; on
each loop, check whether the repeating field value has changed, and react
accordingly:
cfset currentID = 0
cfoutput query="myquery"
tr
cfif myquery.ID is currentID !--- if it's repeated ---
td/tdtd/td
cfelse
-
From: "David Gassner" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, October 27, 2000 8:56 PM
Subject: RE: Suppressing Repeating Groups in a Query
Sam, track the current value of the repeating field in a local variable;
on
each loop, check whether
No apologies required...but I love being right once in awhile!!! :)))
My apologies Dave. This is what you get when you quickly scan the mail.
You are correct, I am wrong.
In cases like this, I defer to the person who is correct and
reply from the
corner with a quiet "D'oh!"
:)
You can avoid this whole issue by using the Request scope for variables
which are set in application.cfm instead of application or session
variables. Request variables aren't shared between threads, so they don't
need to be locked; and they are available for the entire page request,
including
I have one site at Media3 - an intranet-style project management system
hosted for a client - and have had very few problems, and NO complaints from
my client over the course of about 18 months.
-Original Message-
From: Raymond K. Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
Paul, try formatting the value with CreateODBCTime() - as in:
cfquery name="EventInsert" datasource="EventReg" dbtype="ODBC"
INSERT INTO Events(startTime, endTime, place)
Values(#CreateODBCTime(FORM.startTime)#,
Use the Mid() function:
newvariable = Mid(variable, startposition, endposition)
-Original Message-
From: PC [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 04, 2000 3:08 PM
To: [EMAIL PROTECTED]
Subject: How to get part of string?
I must be missing something obvious -- but I
Version 1:
list = simg1,limg1,simg2,limg2...
cfset list=""
cfloop query="MakeList"
cfset list = listAppend(list, SmallImage)
cfset list = listAppend(list, LargeImage)
/cfloop
Or version 2:
list= simg1,simg2,limg1,limg2...
CFSET LImage = valuelist(MakeList.LargeImage)
CFSET SImage =
To use Lotusxsl for transformations, the classpath in the CF Administrator
needs to include full paths to these files:
xalan.jar
Lotusxsl.jar
For instance:
c:\lotusxsl\lotusxsl.jar;c:\lotusxsl\xalan.jar
As Sean Renet pointed out awhile back, the KB article has some fatal errors.
Here are the
Does anyone know of a way to read raw http headers from a form post? For
instance, a form posts to a CF action page; other than the form fields, is
there any way for the CF action page to get at the other information in the
file header?
Thanks,
David
It's the 2nd button from the right on the CFML Basic toolbar. Highlight the
text you want to comment, then click the button.
-Original Message-
From: Paige Chandler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 27, 2000 10:24 PM
To: [EMAIL PROTECTED]
Subject: Commenting Text in
The reason some developers use application variables for this case is the
variable protection in custom tags. That is, a local variable set in
application.cfm isn't available in a custom tag except with use of the
caller scope. A better approach, and one that avoids the need to cflock,
is use
Both organizations use the same curriculum and the instructors for both
Allaire and roundpeg are certified to teach them, so there shouldn't be any
problem taking the courses from either provider. I teach some of Allaire's
courses in SF, and have also taught for roundpeg; both are worthy
If you're trying to capture duplicates of a single field value, you could
use the database to catch the error. Set the field properties as Indexed
(no duplicates) in Access. Then wrap your cfquery in a cftry block to
capture the error:
cftry
cfquery...
Insert ...
/cfquery
cfcatch
Your query doesn't have any joining statement in it; the duplicates might be
resulting from not properly joining the tables.
WHERE Stories.field1 = MailingList.field1, etc.
-Original Message-
From: Mark Smeets [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 21, 2000 11:24 AM
To:
If you want to pass a series of values without identifying each value's
source, you could send them as a single variable containing a
comma-delimited list, then use cfloop to loop through them:
cfset list=urlencodedformat("1,2,3,4")
cfoutput
a href="detailpage.cfm?list=#list#"Clicka
/cfoutput
You can alias the fields inside each query like this:
Select [Field Name] as FieldName
from [Table Name]
-Original Message-
From: Claremont, Timothy S [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 20, 2000 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Access field names with
http://www.allaire.com/cfexpress
-Original Message-
From: John Allred [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 18, 2000 8:25 AM
To: [EMAIL PROTECTED]
Subject: CF Express
Can anyone give me a URL where I can download CF Express? I found it on
Allaire's site previously
Use ListFind, which looks for a complete value:
cfif listfind( mylist, myvalue )
David
-Original Message-
From: Angel Stewart [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 15, 2000 6:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Variable IN a list? How to check?
Yeah well this one
Vikram, you can do a quick replace function while outputting the value that
looks something like this:
cfoutput
#replace(dbvalue, searchstring,
"font color='blue'#searchstring#/font", "all")#
/cfoutput
David
-Original Message-
From: Vikram Ponuganti [mailto:[EMAIL PROTECTED]]
de("silver"),
de("white"))#
/cfoutput
cfloop from="1" to="3" index="cellNumber"
cfset dataIndex = (numRows * (cellNumber-1)) + currentRow
td
cfif dataIndex lte q.recordcount
cfoutput#dataindex#-#q.fieldvalue[dataIndex]#/
cfset memovalue = replace(memovalue, chr(10), "br", "all")
David
-Original Message-
From: Jay Sudowski [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 26, 2000 2:36 PM
To: [EMAIL PROTECTED]
Subject: Replacing crlf with br
This is a multi-part message in MIME format.
Ken, which vendor is this? Surepay by any chance? If so, they also have an
XML version.
I can't speak to CFEXECUTE, haven't used it. CFOBJECT works well with Java
classes, as it allows you to send and receive information by calling class
methods.
David Gassner
Vintage Business Applications
Start at this URL; it depends on what kind of partner...
http://www.allaire.com/handlers/index.cfm?ID=10208
-Original Message-
From: Ian Lurie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 25, 2000 7:58 AM
To: '[EMAIL PROTECTED]'
Subject: OT- Premiere Partners
Hi all,
have the exact xml file becose i didn't write it!
- Original Message -
From: "David Gassner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 24, 2000 4:54 PM
Subject: RE: xml and wddx problems
Eyal, can you give more detail? What do you mean by "li
Eyal, can you give more detail? What do you mean by "library" - a url, a
specific xml file, a database location?
Can you post an example of the xml file?
David
-Original Message-
From: eyal gizler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 24, 2000 3:10 AM
To: [EMAIL
If the vendor has a java component ready to use, you can call it from
cfobject. As Justin says, if you have to code everything from scratch,
it's probably a question of which language you're more comfortable with.
David
-Original Message-
From: Ken M. Mevand [mailto:[EMAIL
Ed, the classpath in the CF Administrator should include the jar file itself
with a full path; for instance, I'm using IBM's Xerces processor, and have
placed the xerces.jar file in the c:\cfusion\java\classes directory. My
classpath looks like this:
yes, you would think someone would have tested the knowledge base article.
I though it necessary to point this out as you directed someone that asked
how to parse an XML file into CFML to your article which
references this doc
as the means to do such.
- Original Message -
From: "Davi
Allaire has announced that the next version of ColdFusion server will be a
merging of CF and JRun into a single java-based server; that doesn't mean
they're abandoning CF. They've said that applications written in CF and in
JRun (servlets and JSP) will both be compatible with the new platform.
Bud, is the first page being sent back then calling a secondary page after
the transaction is completed? Look in the returned HTML text and see
whether there's a meta tag doing a refresh to call the second page; you
may be able to setup cfhttp to call the secondary page directly. If not,
call
www.isyndicate.com does feeds in XML and javascript formats. The free
version sends only a link which maps to their site, then bounces the user to
the correct website containing the content. Paid versions contain both
headline and content.
David
-Original Message-
From: Robert
Loretta, in regard to issue #1, take a look at the new project management
features. You can set up a project with links to both local and remote
directories which will then appear on the same tab; this should make
switching back and forth between local and remote directories even easier
than it
Jason,
You can call it from cfobject or redesign it as a CFX_Java class.
If calling from cfobject, you will need to design a public constructor
with the appropriate number of arguments, then call it as follows:
cfobject type="java" action="create" name="myObj" class="Auth"
cfset
I'm learning all about calling Java classes with CFOBJECT and building CFX_J
tags. Everything works fine on the first call to a compiled class, but if I
modify and recompile the class, then try to run the calling CF page again,
it calls the old version of the class unless I stop and restart CF
Erika, you can treat it as a list with "/" as the delimiter:
cfset list="14/12"
cfset firstnumber=listGetAt(list, 1, "/")
cfset firstnumber=listGetAt(list, 2, "/")
David Gassner
Vintage Business Applications
-Original Message-
From: Erika
Jim, what drive directory do you have CF installed in? I had the same
problem until I reinstalled 4.5 in the default C:\CFUSION directory, and
then the upgrade worked.
David Gassner
Vintage Business Applications
-Original Message-
From: Jim Watkins [mailto:[EMAIL PROTECTED]]
Sent
How about:
cfset textVar = "This is a really wonderful, and nice chunk of text."
cfloop from="21" to="1" step="-1" index="CharPosition"
cfif Mid(textVar, CharPosition, 1) is " "
cfset first20 = Left(textVar,(CharPosition - 1))
Is that what I have to do?
What about all the new customers who bought 4.5 and don't have 4.0? Oh,
never mind.
David Gassner
Vintage Business Applications
-Original Message-
From: paul smith [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 08, 2000 12:22 PM
To: [EMAIL PROTECTED
I've tried this from 4.51 RC1, 4.5, and 4.01, and I'm getting the same
message and abort each time. Has anyone figured this out?
David Gassner
Vintage Business Applications
-Original Message-
From: paul smith [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 08, 2000 12:22 PM
Answer to my own question:
I'd installed CF on a non-default drive. I re-installed 4.5 from the CD in
the default location (c:\cfusion), and the upgrade went just fine.
David
-Original Message-
From: David Gassner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 08, 2000 1:07 PM
t to see the data:
table
cfoutput query="get_fields"
tr
cfloop list="#get_fields.columnlist#" index="fieldname"
td
#evaluate("get_fields.#fieldname#")#
/td
/cfloop
/tr
/cfoutput
/table
David Gassner
Vintage Business Applications
-Original Message-
From
-
From: David Gassner [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 10:35 AM
To: [EMAIL PROTECTED]
Subject: RE: Combining Cf and ASP in the same Template
No, since the page is sent either to the ASP engine or to CF depending on
the file extension, they can't be combined
As you say, client variables are stored on disk can be shared between
servers, while session variables are stored in server memory and are only
available to that server. The other difference: client variables are
limited to strings, while session vars can store arrays and structures. You
can
Only client variables can be saved to a datasource. Session variables are
always stored in server memory.
-Original Message-
From: Nick McClure [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 01, 2000 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Balanced Web Server
But what
isAttribute.Text
/cfloop
/cfloop
The full documentation for the COM object is at:
http://msdn.microsoft.com/library/psdk/xmlsdk/xmld2rl1.htm
--David Gassner
Has anybody had any success in creating an array of structures
from an XML
document?
I have a 30,000 item catalog that is in XML that I have to i
Use the Evaluate() function:
cfoutput#evaluate("form.var#count#")#/cfoutput
-Original Message-
From: Ayush Lall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 1:22 PM
To: [EMAIL PROTECTED]
Subject: dynamic control names
"dynamic variable names
In this example, the
How about...
cfset success=true
cftry
cffile action="WRITE" ..
cfcatch type="Any"
cfset success = false
The file could not be updated. File is locked or read only.
/cfcatch
/cftry
cfif success
Display success message...
-
Cameron Childress
McRae Communications
770.460.7277 x.232
770.460.0963 fax
-Original Message-
From: David Gassner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 4:01 PM
To: [EMAIL PROTECTED]
Subject: RE: Using CFLOCK
session.sessionid is a value which is
Use the ListSort() function:
myList = ListSort(myList, "Text")
- Original Message -
From: Pecora, James [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 27, 2000 8:52 AM
Subject: Ordering a list
Any way to order a list easily???
Say I have a LIST and I want it
73 matches
Mail list logo