RE: .Net and ColdFusion

2001-07-23 Thread David Gassner
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

RE: SAX in CF? Other ideas?

2001-03-16 Thread David Gassner
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

RE: form to session

2001-03-16 Thread David Gassner
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

RE: XML Anyone?

2001-03-15 Thread David Gassner
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:

RE: Problem calling data from a database

2001-03-14 Thread David Gassner
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

RE: padding a variable

2000-11-03 Thread David Gassner
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.

RE: Submitting form with Javascript

2000-11-03 Thread David Gassner
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:

RE: Need help on http Error 405

2000-11-03 Thread David Gassner
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

RE: cfinsert

2000-11-03 Thread David Gassner
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-

RE: [RE: padding a variable]

2000-11-03 Thread David Gassner
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

Re: conference info

2000-11-01 Thread David Gassner
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:

Re: cfobject

2000-11-01 Thread David Gassner
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,

Re: Getting List of Form Fields

2000-10-31 Thread David Gassner
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

RE: XSLT And CF

2000-10-31 Thread David Gassner
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"

RE: Application Variables

2000-10-30 Thread David Gassner
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:

Re: Application Variables

2000-10-30 Thread David Gassner
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

Re: insert br

2000-10-30 Thread David Gassner
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

RE: CFERROR Usage

2000-10-29 Thread David Gassner
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

RE: cfcontent

2000-10-28 Thread David Gassner
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

RE: cfcontent

2000-10-28 Thread David Gassner
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

RE: Power of 3

2000-10-27 Thread David Gassner
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-

RE: HTML Editor

2000-10-27 Thread David Gassner
"David Ga

RE: Find character not in a list (reverse of FindOneOf).

2000-10-27 Thread David Gassner
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-

RE: Suppressing Repeating Groups in a Query

2000-10-27 Thread David Gassner
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

RE: Suppressing Repeating Groups in a Query

2000-10-27 Thread David Gassner
- 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

RE: Suppressing Repeating Groups in a Query

2000-10-27 Thread David Gassner
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!" :)

RE: Application.cfm in a CFMODULE

2000-08-10 Thread David Gassner
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

RE: I need a host. Intermedia testimonials

2000-08-08 Thread David Gassner
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,

RE: Problems with CFINSERT and Date/Time fields

2000-08-04 Thread David Gassner
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)#,

RE: How to get part of string?

2000-08-04 Thread David Gassner
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

RE: Creating A List

2000-08-04 Thread David Gassner
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 =

RE: XML / XSL

2000-08-03 Thread David Gassner
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

Read HTTP Headers

2000-07-29 Thread David Gassner
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

RE: Commenting Text in Studio

2000-07-28 Thread David Gassner
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

RE: CFLOCKs.... is this really necessary?

2000-07-28 Thread David Gassner
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

RE: Fast Track to CF Course Providers

2000-07-21 Thread David Gassner
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

RE: Preventing duplicates prior to insert

2000-07-21 Thread David Gassner
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

RE: CF-Talk V1 #92

2000-07-21 Thread David Gassner
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:

RE: URL Query String

2000-07-21 Thread David Gassner
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

RE: Access field names with spaces

2000-07-20 Thread David Gassner
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

RE: CF Express

2000-07-18 Thread David Gassner
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

RE: Variable IN a list? How to check?

2000-07-15 Thread David Gassner
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

RE: Search---help

2000-07-15 Thread David Gassner
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]]

RE: Another Query to Table

2000-05-28 Thread David Gassner
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]#/

RE: Replacing crlf with br

2000-05-26 Thread David Gassner
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.

RE: Credit Card Payment - Java or Perl ?

2000-05-25 Thread David Gassner
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

RE: OT- Premiere Partners

2000-05-25 Thread David Gassner
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,

RE: xml and wddx problems

2000-05-25 Thread David Gassner
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

RE: xml and wddx problems

2000-05-24 Thread David Gassner
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

RE: Credit Card Payment - Java or Perl ?

2000-05-24 Thread David Gassner
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

RE: Help needed on CF-OBJECT and XSLT ....

2000-05-23 Thread David Gassner
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:

RE: XML Question

2000-05-23 Thread David Gassner
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

RE: Allaire's strategy re CF???

2000-05-22 Thread David Gassner
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.

RE: HELP!!! Can I set a delay with cfhttp?

2000-05-22 Thread David Gassner
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

RE: WDDX OR XML News Feeds

2000-05-22 Thread David Gassner
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

RE: CFStudio app Complaint...who do I complain to?

2000-05-20 Thread David Gassner
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

RE: java class from CF template

2000-05-19 Thread David Gassner
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

Can I stop the JVM from caching classes?

2000-05-16 Thread David Gassner
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

RE: Help Parsing a String

2000-05-15 Thread David Gassner
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

RE: Previous Install Problem

2000-04-09 Thread David Gassner
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

RE: Left X characters without breaking a word...

2000-04-08 Thread David Gassner
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))

RE: Previous Install Problem

2000-04-08 Thread David Gassner
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

RE: Previous Install Problem

2000-04-08 Thread David Gassner
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

RE: Previous Install Problem

2000-04-08 Thread David Gassner
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

RE: dynamic data sets?? outputs?

2000-04-07 Thread David Gassner
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

RE: Combining Cf and ASP in the same Template

2000-04-03 Thread David Gassner
- 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

RE: Balanced Web Server

2000-04-01 Thread David Gassner
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

RE: Balanced Web Server

2000-04-01 Thread David Gassner
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

RE: XML to Structure

2000-03-31 Thread David Gassner
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

RE: dynamic control names

2000-03-30 Thread David Gassner
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

RE: CFTry Question

2000-03-29 Thread David Gassner
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...

RE: Using CFLOCK

2000-03-29 Thread David Gassner
- 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

Re: Ordering a list

2000-03-27 Thread David Gassner
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