Evaluate function

2001-12-04 Thread Leon Greeff

Hi there,

I am trying to use the evaluate function to output dynamically created
variables. Ex. I have a list say list=a,b,c,d I want to create variables
from it.

loop through list a,b,c,d

I want to create variable named a_ListVals and b_ListVals and c_ListVals
etc.


Can someone give me some advice how to do it.

TIA

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Evaluate function

2001-12-04 Thread Joseph DeVore

Leon,

cfloop list=a,b,c,d index=i
  !--- create the variable ---
  cfset #i#_ListVals=#i#

  !--- output the variable ---
  cfoutput#evaluate(#i#_ListVals)#/cfoutput
/cfloop


Joseph DeVore
VeloxWeb Technologies


-Original Message-
From: Leon Greeff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:50 AM
To: CF-Talk
Subject: Evaluate function


Hi there,

I am trying to use the evaluate function to output dynamically created
variables. Ex. I have a list say list=a,b,c,d I want to create variables
from it.

loop through list a,b,c,d

I want to create variable named a_ListVals and b_ListVals and c_ListVals
etc.


Can someone give me some advice how to do it.

TIA


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



multilingual dynamic sites, particularly hindi

2001-12-04 Thread Will Swain

Hello all,

Just a general question really. We have been asked by a client to quote for
building a multilingual website, with versions in a number of European
languages, plus Hindi, and possibly Japanese.

I have never done any multilingual work, so can anyone out there give me
some pointers on how to achieve this, and whether or not CF can handle a
language like Hindi.

Any general information would be most appreciated.

Many thanks in advance

Will
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Manipulating a text file ... how to convert a type?

2001-12-04 Thread Rich Wild

Mike - you can setup the text driver to auto-cast the datatypes

go to your dsn's properties ODBC Text Setup  Options  Define Format

From there you can setup the datatype of each of the csv's columns.

 -Original Message-
 From: Mike Kear [mailto:[EMAIL PROTECTED]]
 Sent: 04 December 2001 01:31
 To: CF-Talk
 Subject: Manipulating a text file ... how to convert a type?
 
 
 I'm working with a text file, using it as a datasource,  that 
 an information
 provider puts into our site daily.  One of the fields  is 
 InterestRate and
 the contents are values like 14.0005% and 8.5000%.  There 
 is no problem
 as long as I just want to display this value.
 
 But now I want to sort the rows on the interest rate, and of 
 course since
 it's a character field, it sorts 14.0005% as lower than 
 8.5000%.How can
 I convert the value from characters to numbers in the SQL?
 
 
 We're using the Microsoft .txt/.csv driver.  Since the file 
 is put in our
 site daily by the information provider, I can't change the 
 file at all,
 because it's going to be replaced with a new one tomorrow.
 
 
 
 Cheers,
 Mike Kear
 AFP Webworks,
 Windsor, NSW, Australia
 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Evaluate function

2001-12-04 Thread Leon Greeff

Hi Joseph,

Thanx worked like charm DUDE!

Cheers

//L

-Original Message-
From: Joseph DeVore [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 11:59
To: CF-Talk
Subject: RE: Evaluate function


Leon,

cfloop list=a,b,c,d index=i
  !--- create the variable ---
  cfset #i#_ListVals=#i#

  !--- output the variable ---
  cfoutput#evaluate(#i#_ListVals)#/cfoutput
/cfloop


Joseph DeVore
VeloxWeb Technologies


-Original Message-
From: Leon Greeff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:50 AM
To: CF-Talk
Subject: Evaluate function


Hi there,

I am trying to use the evaluate function to output dynamically created
variables. Ex. I have a list say list=a,b,c,d I want to create variables
from it.

loop through list a,b,c,d

I want to create variable named a_ListVals and b_ListVals and c_ListVals
etc.


Can someone give me some advice how to do it.

TIA



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Paul Hastings

 Just a general question really. We have been asked by a client to quote
for
 building a multilingual website, with versions in a number of European
 languages, plus Hindi, and possibly Japanese.

if they don't want to roll out a bunch of servers, then unicode. cf5 can
work with unicode within some limitations. so you'll need to consider
their user base, can they accept unicode (ie no loads of crappy older
browsers  no loads of netscape)? go here for more unicode info:
http://www.unicode.org/ or buy ben forta's new advanced cf5
which has an i18n starter chapter.

 I have never done any multilingual work, so can anyone out there give me
 some pointers on how to achieve this, and whether or not CF can handle a
 language like Hindi.

you do not want a punk database for this. sql server 2k would be my 1st
choice (it does a very nice job of handling multiple locales). no idea
about hindi (hi locale?? there's a boatload of indic locales) but cf 
unicode can be seen in action here: http://www.tei.or.th/misc/unicode.cfm
(several langauges, left to right  right to left directionality included)
or
if you want to see a major problem  workaround look here:
http://www.tei.or.th/misc/unicodeSplit.cfm

your content delivery can be in-memory or pulled on the fly from a
database but basically every page should be in a database. improves
management at a minimum.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Paul Hastings

oops almost forgot, cfstudio5 does unicode, so you'll need that as well.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Manipulating a text file ... how to convert a type?

2001-12-04 Thread Mike Kear

Thanks Rich,

I've manipulated the file schema.ini, which defines all the tables and
fields and the text files that make up the datasource.   But when I define
the Interestrate field as float, I get no result into that column,
because the actual content of the column is 14.0005% not 14.0005  The
percent symbol in the field means (I think) that it can only ever be defined
as a text field.   Unless I have missed something.  Have I?

The only calculation I have to do with this field is sort so the output is
in ascending order of interestrate (i.e. lowest rate at the top) - is there
any other way that I'm overlooking to achieve this?   (We don't have CF5 so
we can't use query of query to do it)

Cheers,
Mike Kear
AFPWebworks,
Windsor, NSW, Australia.



 -Original Message-
 From: Rich Wild [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 9:07 PM
 To: CF-Talk
 Subject: RE: Manipulating a text file ... how to convert a type?


 Mike - you can setup the text driver to auto-cast the datatypes

 go to your dsn's properties ODBC Text Setup  Options  Define Format

 From there you can setup the datatype of each of the csv's columns.

  -Original Message-
  From: Mike Kear [mailto:[EMAIL PROTECTED]]
  Sent: 04 December 2001 01:31
  To: CF-Talk
  Subject: Manipulating a text file ... how to convert a type?
 
 
  I'm working with a text file, using it as a datasource,  that
  an information
  provider puts into our site daily.  One of the fields  is
  InterestRate and
  the contents are values like 14.0005% and 8.5000%.  There
  is no problem
  as long as I just want to display this value.
 
  But now I want to sort the rows on the interest rate, and of
  course since
  it's a character field, it sorts 14.0005% as lower than
  8.5000%.How can
  I convert the value from characters to numbers in the SQL?
 
 
  We're using the Microsoft .txt/.csv driver.  Since the file
  is put in our
  site daily by the information provider, I can't change the
  file at all,
  because it's going to be replaced with a new one tomorrow.
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Will Swain

Thanks Paul, that is all very useful. The DB will be sqlserver 2k so no
probs there. I guess the main thing is the font, and installing it on the
users system if they dont have it?

cheers

will

-Original Message-
From: Paul Hastings [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 10:51
To: CF-Talk
Subject: Re: multilingual dynamic sites, particularly hindi


 Just a general question really. We have been asked by a client to quote
for
 building a multilingual website, with versions in a number of European
 languages, plus Hindi, and possibly Japanese.

if they don't want to roll out a bunch of servers, then unicode. cf5 can
work with unicode within some limitations. so you'll need to consider
their user base, can they accept unicode (ie no loads of crappy older
browsers  no loads of netscape)? go here for more unicode info:
http://www.unicode.org/ or buy ben forta's new advanced cf5
which has an i18n starter chapter.

 I have never done any multilingual work, so can anyone out there give me
 some pointers on how to achieve this, and whether or not CF can handle a
 language like Hindi.

you do not want a punk database for this. sql server 2k would be my 1st
choice (it does a very nice job of handling multiple locales). no idea
about hindi (hi locale?? there's a boatload of indic locales) but cf 
unicode can be seen in action here: http://www.tei.or.th/misc/unicode.cfm
(several langauges, left to right  right to left directionality included)
or
if you want to see a major problem  workaround look here:
http://www.tei.or.th/misc/unicodeSplit.cfm

your content delivery can be in-memory or pulled on the fly from a
database but basically every page should be in a database. improves
management at a minimum.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Paul Hastings

 Thanks Paul, that is all very useful. The DB will be sqlserver 2k so no
 probs there. I guess the main thing is the font, and installing it on the
 users system if they dont have it?

if your user base is ie then i think its smart enough to know when
to d/l  install missing fonts but so should your users. having a 
link to some info (in the correct locale) on this is usually a good 
idea.

but no, fonts aren't the main thing. getting the correct locale
to the user is the main thing. that implies good app/db 
design  content (which is the nastiest part of i18n work, 
getting  content properly xlated is mind numbing work) but 
also the other cultural norms for each locale you intend to 
serve: date/time  currency/number formats, gender issues, 
etc.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Test account

2001-12-04 Thread Rudy Rustam

This is test account
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Will Swain

I'm with you Paul. Content will be provided to us, which makes that side of
it a lot easier, so I think we should be abl;e to do thi9s.

Thanks a lot for your help.

will


-Original Message-
From: Paul Hastings [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 12:06
To: CF-Talk
Subject: Re: multilingual dynamic sites, particularly hindi


 Thanks Paul, that is all very useful. The DB will be sqlserver 2k so no
 probs there. I guess the main thing is the font, and installing it on the
 users system if they dont have it?

if your user base is ie then i think its smart enough to know when
to d/l  install missing fonts but so should your users. having a
link to some info (in the correct locale) on this is usually a good
idea.

but no, fonts aren't the main thing. getting the correct locale
to the user is the main thing. that implies good app/db
design  content (which is the nastiest part of i18n work,
getting  content properly xlated is mind numbing work) but
also the other cultural norms for each locale you intend to
serve: date/time  currency/number formats, gender issues,
etc.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



I hate DateDiff!

2001-12-04 Thread Declan Maher

Hi,
No matter what I try this will not work for me.
Can anybody point out what is wrong with this code.
cfset targ=#DateFormat(01/12/2001,dd/mm/)#
cfoutput#targ#/cfoutput
cfset compare=DateDiff(d,#targ#,#DateFormat(Now(),dd/mm/)#)

It gives me weird output dates - of -233.

Thanks,
Declan
-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 11:19
To: CF-Talk
Subject: RE: multilingual dynamic sites, particularly hindi


Thanks Paul, that is all very useful. The DB will be sqlserver 2k so no
probs there. I guess the main thing is the font, and installing it on
the
users system if they dont have it?

cheers

will

-Original Message-
From: Paul Hastings [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 10:51
To: CF-Talk
Subject: Re: multilingual dynamic sites, particularly hindi


 Just a general question really. We have been asked by a client to
quote
for
 building a multilingual website, with versions in a number of European
 languages, plus Hindi, and possibly Japanese.

if they don't want to roll out a bunch of servers, then unicode. cf5 can
work with unicode within some limitations. so you'll need to consider
their user base, can they accept unicode (ie no loads of crappy older
browsers  no loads of netscape)? go here for more unicode info:
http://www.unicode.org/ or buy ben forta's new advanced cf5
which has an i18n starter chapter.

 I have never done any multilingual work, so can anyone out there give
me
 some pointers on how to achieve this, and whether or not CF can handle
a
 language like Hindi.

you do not want a punk database for this. sql server 2k would be my 1st
choice (it does a very nice job of handling multiple locales). no idea
about hindi (hi locale?? there's a boatload of indic locales) but cf 
unicode can be seen in action here:
http://www.tei.or.th/misc/unicode.cfm
(several langauges, left to right  right to left directionality
included)
or
if you want to see a major problem  workaround look here:
http://www.tei.or.th/misc/unicodeSplit.cfm

your content delivery can be in-memory or pulled on the fly from a
database but basically every page should be in a database. improves
management at a minimum.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: I hate DateDiff!

2001-12-04 Thread Pascal Peters

CF is most probably using a US dateformat (depends on the settings of
your server).

TRY:
cfset targ=#CreateDate(2001,12,01)#
cfoutput#Dateformat(targ,dd/mm/)#/cfoutput
cfset compare=DateDiff(d,targ,Now())

Pascal Peters
Macromedia Certified Instructor
Certified ColdFusion (5.0) Advanced Developer
Certified Web Developer
LR Technologies, Belgium
Tel +32 2 639 68 70
Fax +32 2 639 68 99
Email   [EMAIL PROTECTED]
Web www.lrt.be


-Original Message-
From: Declan Maher [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 4 december 2001 13:22
To: CF-Talk
Subject: I hate DateDiff!


Hi,
No matter what I try this will not work for me.
Can anybody point out what is wrong with this code.
cfset targ=#DateFormat(01/12/2001,dd/mm/)#
cfoutput#targ#/cfoutput
cfset compare=DateDiff(d,#targ#,#DateFormat(Now(),dd/mm/)#)

It gives me weird output dates - of -233.

Thanks,
Declan
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: I hate DateDiff...not as much now!

2001-12-04 Thread Declan Maher

Pascal,
Thanks very much for your help.Was going around in circles with that
one.

Regards,
Declan

-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 12:30
To: CF-Talk
Subject: RE: I hate DateDiff!


CF is most probably using a US dateformat (depends on the settings of
your server).

TRY:
cfset targ=#CreateDate(2001,12,01)#
cfoutput#Dateformat(targ,dd/mm/)#/cfoutput
cfset compare=DateDiff(d,targ,Now())

Pascal Peters
Macromedia Certified Instructor
Certified ColdFusion (5.0) Advanced Developer
Certified Web Developer
LR Technologies, Belgium
Tel +32 2 639 68 70
Fax +32 2 639 68 99
Email   [EMAIL PROTECTED]
Web www.lrt.be


-Original Message-
From: Declan Maher [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 4 december 2001 13:22
To: CF-Talk
Subject: I hate DateDiff!


Hi,
No matter what I try this will not work for me.
Can anybody point out what is wrong with this code.
cfset targ=#DateFormat(01/12/2001,dd/mm/)#
cfoutput#targ#/cfoutput
cfset compare=DateDiff(d,#targ#,#DateFormat(Now(),dd/mm/)#)

It gives me weird output dates - of -233.

Thanks,
Declan

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CGI.HTTP_REFERER

2001-12-04 Thread John McCosker

Yes there!

This may sound overly naive but, on the index page of one of our web
applications, 
I have done a check for the #cgi.http_referer# environment variable.

Then I have done a search through MNS (per say), where it links directly to
the (URL AND) template, the variable is defined but it is empty.

I was hoping it was going to give me the full search string of the msn URL,
or any other.

Is this because IIS is not passing this to CF, although it is defined.

Is there a way round this?

Or am I having a brain fart?

Cheers

jmc
..
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFM File Extension for Downloads

2001-12-04 Thread Dave Hannum

Hello,

I'm creating Excel documents for download.  I've created the cfheader and
cfcontent type (see below) however, when you try to download in Netscape,
the name of the script script.cfm is saved vs. the name of the file.xls
that I create.  What's the work around for this so that the file is saved
(or opened) as the .xls name I've given it?

   CFHEADER NAME=Content-Disposition
VALUE=FILENAME=#tempFileName#.xls
   CFCONTENT TYPE=application/vnd.ms-excel
  DELETEFILE=YES
  FILE=D:\PATH\TO\FILE\XLS\#tempFileName#.XLS

Thanks,
Dave

===
David R Hannum
Ohio University
Web Analyst/Programmer
(740) 597-2524
[EMAIL PROTECTED]



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: MAC File Upload Issues

2001-12-04 Thread Jeremy Bunton

I agree with James, I have tried almost everything mentioned here and in the
archives at some point and none of them have worked for me. Everyone here
knows of the problem and uses netscape whenever they need to upload a file.

JLB

-Original Message-
From: James Sleeman [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 2:53 PM
To: CF-Talk
Subject: Re: MAC File Upload Issues


As I remember IE on the Mac messes up when uploading files, I had the same
problem a couple of years ago and found no solution.  Use Netscape to
upload files and your problems will disappear :-)

I'm uploading a file via CFFILE and the code works flawlessly - until you
get onto a MAC (IE5)



--
James Sleeman
Innovative Media Ltd
Phone: (03) 377 6262
http://www.websolutions.co.nz/

CAUTION: The information contained in this email message is confidential
and may be legally privileged. If the reader of this message is not the
intended recipient you are notified that any use, dissemination,
distribution or reproduction of this message is prohibited. If you have
received this message in error please notify the sender immediately and
destroy the original message and any attachments.

Views expressed in this communication may not be those of Innovative Media
Ltd.


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFM File Extension for Downloads

2001-12-04 Thread Michel Gallant

cfheader 
name=Content-Disposition 
value=attachment; filename=MyFile.xls

Is what I use and it works great...The value of your cfheader is missing
Attachment.

-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]] 
Sent: December 4, 2001 9:39 AM
To: CF-Talk
Subject: CFM File Extension for Downloads

Hello,

I'm creating Excel documents for download.  I've created the cfheader and
cfcontent type (see below) however, when you try to download in Netscape,
the name of the script script.cfm is saved vs. the name of the file.xls
that I create.  What's the work around for this so that the file is saved
(or opened) as the .xls name I've given it?

   CFHEADER NAME=Content-Disposition
VALUE=FILENAME=#tempFileName#.xls
   CFCONTENT TYPE=application/vnd.ms-excel
  DELETEFILE=YES
  FILE=D:\PATH\TO\FILE\XLS\#tempFileName#.XLS

Thanks,
Dave

===
David R Hannum
Ohio University
Web Analyst/Programmer
(740) 597-2524
[EMAIL PROTECTED]




~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFM File Extension for Downloads

2001-12-04 Thread Craig Dudley

Call script.cfm like this.. (make #tempFileName# the full filename including
the extension)

script.cfm/#tempFileName#?file=#tempFileName#



script.cfm
--
CFCONTENT TYPE=application/vnd.ms-excel DELETEFILE=YES 
FILE=D:\PATH\TO\FILE\XLS\#url.file#



should work.


-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 13:39
To: CF-Talk
Subject: CFM File Extension for Downloads


Hello,

I'm creating Excel documents for download.  I've created the cfheader and
cfcontent type (see below) however, when you try to download in Netscape,
the name of the script script.cfm is saved vs. the name of the file.xls
that I create.  What's the work around for this so that the file is saved
(or opened) as the .xls name I've given it?

   CFHEADER NAME=Content-Disposition
VALUE=FILENAME=#tempFileName#.xls
   CFCONTENT TYPE=application/vnd.ms-excel
  DELETEFILE=YES
  FILE=D:\PATH\TO\FILE\XLS\#tempFileName#.XLS

Thanks,
Dave

===
David R Hannum
Ohio University
Web Analyst/Programmer
(740) 597-2524
[EMAIL PROTECTED]




~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: MAC File Upload Issues

2001-12-04 Thread Joshua Miller

That was the issue, I added logic to test for the existance of a path in a
field, if it's a path it doesn't get trimmed - now it works!

Joshua Miller
Web Development::Programming
Eagle Technologies Group, Inc.
www.eagletgi.com
[EMAIL PROTECTED]

-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 4:11 PM
To: CF-Talk
Subject: Re: MAC File Upload Issues


Are you trimming every form field?  If so, trimming the upload field will
screw it up.  I have had problems with this before.  You could call the
FormURL2attributes tag in application.cfm, and start referencing attributes
 instead of form for your non-file form fields.  That would give you the
benefit of automatically trimming the fields, and still not screw things
up on a file upload.

---

  Ben Morris

  Web Site Developer
  American Federation of Government Employees, AFL-CIO
  (202) 639-6448
  www.afge.org


 Joshua Miller [EMAIL PROTECTED] 12/03/01 03:37PM 
I sent this message, but it was returned - the mailserver said I had no
SUBJECT (I did though).

Ok, this is bizarre:

I'm uploading a file via CFFILE and the code works flawlessly - until you
get onto a MAC (IE5)

I routinely get the error The form field specified in the CFFILE tag
(CLOGO) does not contain an uploaded file...

I've remedied the trailing whitespace character so that's not the issue
(I've got a template we use to trim up all MAC IE form uploads if anyone
is interested) - what's happening is (when I output the CLOGO variable
anyway) that all the \ characters are stripped out of the path, so the
file to upload appears to be: E:WINNTTEMPACF123.gif instead of
E:\WINNT\TEMP\ACF123.gif

Has anyone else experienced this? Is this an anomaly or is this a known
issue with CF and MAC or is it an IE bug?

Any help greatly appreciated.

I guess I could always stick the \ back into the path based on WINNT and
TEMP, but that seems like a pretty shaky fix.

Thanks in advance,

Joshua Miller
Web Development::Programming
Eagle Technologies Group, Inc.
www.eagletgi.com


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Paul Hastings

just added in a hindi example:

http://www.tei.or.th/misc/unicode.cfm


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: odd session state

2001-12-04 Thread Won Lee

Never mind

I had to sleep for about 4 hours to see that I spelled session.initialized 
incorrectly.
Sorry to bother everyone.


At 03:00 AM 12/4/2001 -0500, you wrote:
I just found this out.

If I delete the cookie file on my computer, the cookie.userID still shows
on my browser.
If I close my browser, the session variable and cookie value are at the
correct setting.

At 02:09 AM 12/4/2001 -0500, you wrote:
 I am having problems with session state.
 The session variables will not reset.
 
 
 Application.cfm
 --
 cfapplication name=souler sessionmanagement=Yes setclientcookies=Yes
 sessiontimeout=#CreateTimeSpan(0,2,0,0)#
 applicationtimeout=#CreateTimeSpan(1,0,0,0)#
 
 !--- Initialize request variables ---
 cfscript
  //request variables added by Won
  request.loginCheckActive = 1;
  request.dsn = souler;
  request.rootPath =  ;
  request.maxLen = 50;
 /cfscript
 
 !--- session variables ---
 cflock scope=session type=EXCLUSIVE timeout=10
  cfparam name=session.intialized default=0 type=numeric
  cfscript
  if(isdefined(url.reset)){
  session.initialized = 0;
  }
 
  if(not session.intialized){
  session.userID = 0;
  session.isSuperUser = 0;
  session.userTypeID = 0;
 
  session.intialized = 1;
  }
  /cfscript
 /cflock
 
 !--- application variables ---
 cflock scope=application type=EXCLUSIVE timeout=10
  cfparam name=application.initialized default=0
  type=numeric
  cfscript
  if(isdefined(url.reset)){
  application.initialized = 0;
  }
 
  if(not application.initialized){
  application.server = http://www.souler.com/;;
  application.SysAdminMail = [EMAIL PROTECTED];
 
  application.initialized = 1;
  }
  /cfscript
 /cflock
 -
 This is the only other page I am calling
 
 testCookie.cfm
 -
 cfoutput#session.userID#/cfoutputbr
 cfoutput#application.server#/cfoutputbr
 UserID is setAt: cfoutput#cookie.userID#/cfoutput
 ---
 
 
 despite entering testCookie.cfm?reset=1
 i still get 1 on the value for session.userID.
 

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFM File Extension for Downloads

2001-12-04 Thread Dave Hannum

I added the attachment attribute, but it still saves as scriptname.cfm
It does work for IE, but NN is the problem.

   CFHEADER NAME=Content-Disposition
VALUE=Attachment;FILENAME=#tempFileName#.xls
   CFCONTENT TYPE=application/vnd.ms-excel
  DELETEFILE=YES
  FILE=D:\PATH\TO\FILE\XLS\#tempFileName#.XLS

Dave

- Original Message -
From: Michel Gallant [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 8:43 AM
Subject: RE: CFM File Extension for Downloads


cfheader
name=Content-Disposition
value=attachment; filename=MyFile.xls

Is what I use and it works great...The value of your cfheader is missing
Attachment.

-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: December 4, 2001 9:39 AM
To: CF-Talk
Subject: CFM File Extension for Downloads

Hello,

I'm creating Excel documents for download.  I've created the cfheader and
cfcontent type (see below) however, when you try to download in Netscape,
the name of the script script.cfm is saved vs. the name of the file.xls
that I create.  What's the work around for this so that the file is saved
(or opened) as the .xls name I've given it?

   CFHEADER NAME=Content-Disposition
VALUE=FILENAME=#tempFileName#.xls
   CFCONTENT TYPE=application/vnd.ms-excel
  DELETEFILE=YES
  FILE=D:\PATH\TO\FILE\XLS\#tempFileName#.XLS

Thanks,
Dave

===
David R Hannum
Ohio University
Web Analyst/Programmer
(740) 597-2524
[EMAIL PROTECTED]





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFM File Extension for Downloads

2001-12-04 Thread Neil Clark

bet if you right click the link and save it, it will work! ;-)

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Marius Milosav

Paul, were you able to display double byte chars in cftree?

Thanks
Marius Milosav
www.scorpiosoft.com
It's not about technology, it's about people.
Virtual Company (VICO) Application Demo
www.scorpiosoft.com/vicodemo/login.cfm

- Original Message -
From: Paul Hastings [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 9:04 AM
Subject: Re: multilingual dynamic sites, particularly hindi


 just added in a hindi example:

 http://www.tei.or.th/misc/unicode.cfm


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFM File Extension for Downloads

2001-12-04 Thread Dave Watts

 I'm creating Excel documents for download. I've created the 
 cfheader and cfcontent type (see below) however, when you try 
 to download in Netscape, the name of the script script.cfm 
 is saved vs. the name of the file.xls that I create. What's 
 the work around for this so that the file is saved (or opened) 
 as the .xls name I've given it?
 
CFHEADER NAME=Content-Disposition
 VALUE=FILENAME=#tempFileName#.xls
CFCONTENT TYPE=application/vnd.ms-excel
   DELETEFILE=YES
   FILE=D:\PATH\TO\FILE\XLS\#tempFileName#.XLS

You might find the code samples here to be useful for this:
http://www.figleaf.com/demo/mimetest/

Note that the middle one no longer works on our server, since we upgraded
the TCP/IP stack.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFMAIL Spooling

2001-12-04 Thread tom muck

We frequently run up against the limit.  In fact I have a 400,000 email job
coming thru this week.   I would love to see the spool system improved to
allow multiple spool folders and faster delivery to the mail server.  My
mail server is idle most of the time, even when sending huge jobs thru CF.
When I send a huge job, I split it into 50,000 emails per drop.

You can rename the files in the spool folder, so that CF still has room to
add more.  I suppose that 64K is far too many files to be handled by the
Windows file system anyway.

tom

Jim McAtee [EMAIL PROTECTED] wrote in message
037201c17c68$31df10f0$352fa8ce@jim">news:037201c17c68$31df10f0$352fa8ce@jim...
 Thanks, Tom.  Not even through a registry setting, eh?

 Looks like any CF applications we had written for CF4 which were doing a
 self-paced delivery of messages should be rewritten.  There's not much
sense
 in it if CF has a maximum delivery speed of 400 messages per minute.  I
 suppose 24,000 messages per hour is reasonable, but if you've got the
 processing power and adequate bandwidth, I don't understand why they'd
want
 to impose this limit.


~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CDONTS

2001-12-04 Thread Carlisle, Eric

I did some lower impact load testing with CDONTS.  It didn't seem to have
a problem at all.  I was sending 1000 letter bursts and it didn't overcome
the processor or leak memory.  I was using cfloop around a CDONTS custom
tag.

-Original Message-
From: list peters [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 9:39 PM
To: CF-Talk
Subject: Re: CDONTS


 It's probably not the best bulk-mailing solution (from what I've heard).
 Pay this concern as you consider expected mail volumes.

i might want to send out a few 1000 emails. can i put the whole code in
a loop and send away without too many side effects?  could you elaborate
more?

anyway...
if anyone is interesting here is the code i used.

!--- set attributes ---
cfparam name=from default=[EMAIL PROTECTED]
cfparam name=to default=[EMAIL PROTECTED]
cfparam name=subject default=email subject
cfparam name=body default=email body

!--- send email ---
cfobject type=COM name=objNewMail class=CDONTS.NewMail
action=CREATE
cfset objNewMail.From = #from#
cfset objNewMail.To = #to#
cfset objNewMail.Subject = #subject#
cfset objNewMail.Body = #body#
cfset objNewMail.Send()



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Capturing login and logout times

2001-12-04 Thread Tangorre, Michael T.

Hi everyone.
I posted a question about two weeks ago about an issue I was having with an
application in which I was attempting to charge members of a site by the
minute when they were logged in to a specific section. I can get a timestamp
when they log in no problem, and I can get one if the session expires, but I
am still looking for a solution to getting a timestamp if the browser closes
either voluntarily or involuntarily. I have been looking into other language
alternatives but think 90% of what I am looking for can be done using CF.
Can any of the advanced developers here offer a bit more insight on how I
should proceed. I have intermediate skills in CF, but I am beginning to
think that charge by the minute is not a good approach, although I am
working with a guy who will not budge.

Thanks in advance.

Michael T. Tangorre


Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFMAIL Spooling

2001-12-04 Thread Carlisle, Eric

This seems to be a recurring bottleneck in CF performance.  I'm wondering
any Macromedia peeps on the horn have anything to say regarding this?  Will
Neo provide a faster, stronger spooler?

EC

-Original Message-
From: tom muck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:40 AM
To: CF-Talk
Subject: Re: CFMAIL Spooling


We frequently run up against the limit.  In fact I have a 400,000 email job
coming thru this week.   I would love to see the spool system improved to
allow multiple spool folders and faster delivery to the mail server.  My
mail server is idle most of the time, even when sending huge jobs thru CF.
When I send a huge job, I split it into 50,000 emails per drop.

You can rename the files in the spool folder, so that CF still has room to
add more.  I suppose that 64K is far too many files to be handled by the
Windows file system anyway.

tom

Jim McAtee [EMAIL PROTECTED] wrote in message
037201c17c68$31df10f0$352fa8ce@jim">news:037201c17c68$31df10f0$352fa8ce@jim...
 Thanks, Tom.  Not even through a registry setting, eh?

 Looks like any CF applications we had written for CF4 which were doing a
 self-paced delivery of messages should be rewritten.  There's not much
sense
 in it if CF has a maximum delivery speed of 400 messages per minute.  I
 suppose 24,000 messages per hour is reasonable, but if you've got the
 processing power and adequate bandwidth, I don't understand why they'd
want
 to impose this limit.



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Merant Text Driver: how to specify pipe character?

2001-12-04 Thread tom muck

Yes, I did some playing around with it yesterday. Even if you specify a
Delimiter=| in the connection string box of the CF Administrator, it doesn't
add the parameter to the registry. It seems that it can only be done with
the ODBC Administrator on the machine.

tom

[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 But if you look at the Merant Text Driver in the Win2K ODBC Data Source
 Administrator it provides an input box to specify your delimiter
character.

 Marc

 tom muck [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I think that with the Merant driver you are limited to the delimiters in
 the
  TableType drop-down box.  If you look at the registry entries for a
sample
  Merant driver, there aren't any other options for delimiters.
 
  tom
 




~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Capturing login and logout times

2001-12-04 Thread Lon Lentz

 
  There has been some code floating around for expiring the session when 
the browser closes. If you think it would help you, I can search for it.


 -Original Message-
 From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 9:38 AM
 To: CF-Talk
 Subject: Capturing login and logout times
 
 
 Hi everyone.
 I posted a question about two weeks ago about an issue I was 
 having with an
 application in which I was attempting to charge members of a site by 
the
 minute when they were logged in to a specific section. I can get 
 a timestamp
 when they log in no problem, and I can get one if the session 
 expires, but I
 am still looking for a solution to getting a timestamp if the 
 browser closes
 either voluntarily or involuntarily. I have been looking into 
 other language
 alternatives but think 90% of what I am looking for can be done using 
CF.
 Can any of the advanced developers here offer a bit more insight on 
how I
 should proceed. I have intermediate skills in CF, but I am beginning 
to
 think that charge by the minute is not a good approach, although I 
am
 working with a guy who will not budge.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Capturing login and logout times

2001-12-04 Thread BEN MORRIS

I guess it would depend on how specific of a time interval you need.  I 
have seen some sites that open up a js pop-up window after, say, 10 
minutes of inactivity on a single page.  This window could say Do you 
want to stay logged in? and would only pop up if they do nothing for 10 
minutes.  The request could be recorded, and if no request comes from that 
user after 10 minutes, you know they have left.

 Tangorre, Michael T. [EMAIL PROTECTED] 12/04/01 09:38AM 
Hi everyone.
I posted a question about two weeks ago about an issue I was having with 
an
application in which I was attempting to charge members of a site by the
minute when they were logged in to a specific section. I can get a 
timestamp
when they log in no problem, and I can get one if the session expires, but 
I
am still looking for a solution to getting a timestamp if the browser 
closes
either voluntarily or involuntarily. I have been looking into other 
language
alternatives but think 90% of what I am looking for can be done using CF.
Can any of the advanced developers here offer a bit more insight on how I
should proceed. I have intermediate skills in CF, but I am beginning to
think that charge by the minute is not a good approach, although I am
working with a guy who will not budge.

Thanks in advance.

Michael T. Tangorre
==
Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Capturing login and logout times

2001-12-04 Thread Tangorre, Michael T.

Ben,
I could give this idea a try...
Do you have code for this?



-Original Message-
From: BEN MORRIS [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 04, 2001 9:59 AM
To: CF-Talk
Subject: Re: Capturing login and logout times


I guess it would depend on how specific of a time interval you need.  I 
have seen some sites that open up a js pop-up window after, say, 10 
minutes of inactivity on a single page.  This window could say Do you 
want to stay logged in? and would only pop up if they do nothing for 10 
minutes.  The request could be recorded, and if no request comes from that 
user after 10 minutes, you know they have left.

 Tangorre, Michael T. [EMAIL PROTECTED] 12/04/01 09:38AM 
Hi everyone.
I posted a question about two weeks ago about an issue I was having with 
an
application in which I was attempting to charge members of a site by the
minute when they were logged in to a specific section. I can get a 
timestamp
when they log in no problem, and I can get one if the session expires, but 
I
am still looking for a solution to getting a timestamp if the browser 
closes
either voluntarily or involuntarily. I have been looking into other 
language
alternatives but think 90% of what I am looking for can be done using CF.
Can any of the advanced developers here offer a bit more insight on how I
should proceed. I have intermediate skills in CF, but I am beginning to
think that charge by the minute is not a good approach, although I am
working with a guy who will not budge.

Thanks in advance.

Michael T. Tangorre
==
Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: FAIL Spooling

2001-12-04 Thread Cameron Childress

 We've written our own 'spooling system' using SQL Server and an
 event script
 to fire off Jmail every five minutes. We've found this works a lot better
 than CF for bulk mail as you can use Microsoft's SMTP server and
 the pickup
 directory.

You can also use CFFILE to write directly to the Microsoft's SMTP server
pickup directory.  We do this and it works great.  Set up the SMTP server
purely as a relay off to a real mailserver, and messages fly off the
machine.  Plus you are allowing the right tool to do the right job.  CF
isn't a mass mailing server, it's an application server.  A server designed
specifically for handling email is virtually always going to beat one that
just also features email capability.

-Cameron


Cameron Childress
elliptIQ Inc.
p.770.460.1035.232
f.770.460.0963
--
http://www.neighborware.com
America's Leading Community Network Software





 -Original Message-
 From: Darryl Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 03, 2001 10:01 PM
 To: CF-Talk
 Subject: RE: CFMAIL Spooling


 We've written our own 'spooling system' using SQL Server and an
 event script
 to fire off Jmail every five minutes. We've found this works a lot better
 than CF for bulk mail as you can use Microsoft's SMTP server and
 the pickup
 directory.

 Darryl

 -Original Message-
 From: Jim McAtee [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 4 December 2001 12:06 PM
 To: CF-Talk
 Subject: Re: CFMAIL Spooling


 Thanks, Tom.  Not even through a registry setting, eh?

 Looks like any CF applications we had written for CF4 which were doing a
 self-paced delivery of messages should be rewritten.  There's not
 much sense
 in it if CF has a maximum delivery speed of 400 messages per minute.  I
 suppose 24,000 messages per hour is reasonable, but if you've got the
 processing power and adequate bandwidth, I don't understand why
 they'd want
 to impose this limit.

 The 64k limit of email message files in the spool directory, if I
 recall, is
 due to CF's file-naming convention.  Is CF smart enough to re-use
 file names
 in a cyclic manner - moving files out of the spool in a way that lets it
 re-use file names such that you can always get 64k files in the spool?

 Jim


 - Original Message -
 From: tom muck [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, December 03, 2001 6:37 PM
 Subject: Re: CFMAIL Spooling


  There is no setting for the number of emails.  The spooler delivers
  100 mails every 60 seconds.  You can change the interval to 15
  seconds, but no lower.  Also, there is a limit of 65,535 emails that
  can be delivered to
 the
  spool folder at one time.
 
  tom
  www.basic-ultradev.com
 
  Jim McAtee [EMAIL PROTECTED] wrote in message
  02b501c17c57$ec7da220$352fa8ce@jim">news:02b501c17c57$ec7da220$352fa8ce@jim...
   In the CF5 Administrator there's a parameter that controls how often
   the server checks the mail spool.  Is there a fixed number of
   messages that
 CF
   relays to the mail server in each interval?  Doing a mass mailing
   (40k messages), it seems that mail is moving rather slowly from the
   CF spool. The mail server being used is _very_ idle and could easily
   be relaying messages faster.  Is this a registry setting, or is
   there something else limiting how fast CF moves these messages?
  
   Jim

 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



anyone with a mac out there?

2001-12-04 Thread Paris Lundis

We are finishing up a Cold Fusion site for a client and the client swears it
doesn't work on someone's MAC...

anyone out there have a moment and a MAC to give a look???

-paris

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: FAIL Spooling

2001-12-04 Thread Robert Everland

Would you mind sharing the file?

Robert Everland III
Dixon Ticonderoga
Web Developer Extraordinaire

-Original Message-
From: Cameron Childress [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:09 AM
To: CF-Talk
Subject: RE: FAIL Spooling


 We've written our own 'spooling system' using SQL Server and an
 event script
 to fire off Jmail every five minutes. We've found this works a lot better
 than CF for bulk mail as you can use Microsoft's SMTP server and
 the pickup
 directory.

You can also use CFFILE to write directly to the Microsoft's SMTP server
pickup directory.  We do this and it works great.  Set up the SMTP server
purely as a relay off to a real mailserver, and messages fly off the
machine.  Plus you are allowing the right tool to do the right job.  CF
isn't a mass mailing server, it's an application server.  A server designed
specifically for handling email is virtually always going to beat one that
just also features email capability.

-Cameron


Cameron Childress
elliptIQ Inc.
p.770.460.1035.232
f.770.460.0963
--
http://www.neighborware.com
America's Leading Community Network Software





 -Original Message-
 From: Darryl Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 03, 2001 10:01 PM
 To: CF-Talk
 Subject: RE: CFMAIL Spooling


 We've written our own 'spooling system' using SQL Server and an
 event script
 to fire off Jmail every five minutes. We've found this works a lot better
 than CF for bulk mail as you can use Microsoft's SMTP server and
 the pickup
 directory.

 Darryl

 -Original Message-
 From: Jim McAtee [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 4 December 2001 12:06 PM
 To: CF-Talk
 Subject: Re: CFMAIL Spooling


 Thanks, Tom.  Not even through a registry setting, eh?

 Looks like any CF applications we had written for CF4 which were doing a
 self-paced delivery of messages should be rewritten.  There's not
 much sense
 in it if CF has a maximum delivery speed of 400 messages per minute.  I
 suppose 24,000 messages per hour is reasonable, but if you've got the
 processing power and adequate bandwidth, I don't understand why
 they'd want
 to impose this limit.

 The 64k limit of email message files in the spool directory, if I
 recall, is
 due to CF's file-naming convention.  Is CF smart enough to re-use
 file names
 in a cyclic manner - moving files out of the spool in a way that lets it
 re-use file names such that you can always get 64k files in the spool?

 Jim


 - Original Message -
 From: tom muck [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, December 03, 2001 6:37 PM
 Subject: Re: CFMAIL Spooling


  There is no setting for the number of emails.  The spooler delivers
  100 mails every 60 seconds.  You can change the interval to 15
  seconds, but no lower.  Also, there is a limit of 65,535 emails that
  can be delivered to
 the
  spool folder at one time.
 
  tom
  www.basic-ultradev.com
 
  Jim McAtee [EMAIL PROTECTED] wrote in message
  02b501c17c57$ec7da220$352fa8ce@jim">news:02b501c17c57$ec7da220$352fa8ce@jim...
   In the CF5 Administrator there's a parameter that controls how often
   the server checks the mail spool.  Is there a fixed number of
   messages that
 CF
   relays to the mail server in each interval?  Doing a mass mailing
   (40k messages), it seems that mail is moving rather slowly from the
   CF spool. The mail server being used is _very_ idle and could easily
   be relaying messages faster.  Is this a registry setting, or is
   there something else limiting how fast CF moves these messages?
  
   Jim

 

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: anyone with a mac out there?

2001-12-04 Thread Jason Blum

Are you using one of the java applets like CFTREE?

I'm on a Mac - what's the URL?

 --
 From: Paris Lundis
 Reply To: [EMAIL PROTECTED]
 Sent: Tuesday, December 4, 2001 10:24 AM
 To:   CF-Talk
 Subject:  anyone with a mac out there?
 
 We are finishing up a Cold Fusion site for a client and the client
 swears it
 doesn't work on someone's MAC...
 
 anyone out there have a moment and a MAC to give a look???
 
 -paris
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: FAIL Spooling

2001-12-04 Thread tom muck

How's the speed of CFFILE when used in big mailings?  Have you tried it with
50,000 + emails?

I tried out a custom tag that used CFFILE to send mails, and it was
painfully slow.  Using CFMAIL I can execute huge numbers of queries and send
mails to my mail server quickly.  The only bottleneck is the spool folder.

tom


 You can also use CFFILE to write directly to the Microsoft's SMTP server
 pickup directory.  We do this and it works great.  Set up the SMTP server
 purely as a relay off to a real mailserver, and messages fly off the
 machine.  Plus you are allowing the right tool to do the right job.  CF
 isn't a mass mailing server, it's an application server.  A server
designed
 specifically for handling email is virtually always going to beat one that
 just also features email capability.

 -Cameron



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Capturing login and logout times

2001-12-04 Thread Alex

Put in you Application.cfm file

!---Kill Session on Browser Close---
cfif IsDefined(Cookie.CFID) AND IsDefined(Cookie.CFTOKEN)
  cfset cfid_local = Cookie.CFID
  cfset cftoken_local = Cookie.CFTOKEN
  cfcookie name=CFID value=#cfid_local#
  cfcookie name=CFTOKEN value=#cftoken_local#
/cfif

On Tue, 4 Dec 2001, Tangorre, Michael T. wrote:

 Hi everyone.
 I posted a question about two weeks ago about an issue I was having with an
 application in which I was attempting to charge members of a site by the
 minute when they were logged in to a specific section. I can get a timestamp
 when they log in no problem, and I can get one if the session expires, but I
 am still looking for a solution to getting a timestamp if the browser closes
 either voluntarily or involuntarily. I have been looking into other language
 alternatives but think 90% of what I am looking for can be done using CF.
 Can any of the advanced developers here offer a bit more insight on how I
 should proceed. I have intermediate skills in CF, but I am beginning to
 think that charge by the minute is not a good approach, although I am
 working with a guy who will not budge.
 
 Thanks in advance.
 
 Michael T. Tangorre
 
 
 Resident Assistant - Brick
 Web Applications Developer
 A.U. Webteam Slave  :-)
 AIM: CrazyFlash4
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Capturing login and logout times

2001-12-04 Thread Semrau, Steven L Mr RDAISA/SRA

There are a few tags in the DevExchange (TimeoutWarning)
(http://devex.allaire.com/developer/gallery/info.cfm?ID=DE7F61B9-4A73-11D5-8
3F000508B94F85Amethod=Full) is one of them.  You set a timeout period and
how many minutes before that timeout you would like to display a message to
the user that they are about to timeout.

HTH

-Original Message-
From: Lon Lentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:06 AM
To: CF-Talk
Subject: RE: Capturing login and logout times


 
  There has been some code floating around for expiring the session when 
the browser closes. If you think it would help you, I can search for it.


 -Original Message-
 From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 9:38 AM
 To: CF-Talk
 Subject: Capturing login and logout times
 
 
 Hi everyone.
 I posted a question about two weeks ago about an issue I was 
 having with an
 application in which I was attempting to charge members of a site by 
the
 minute when they were logged in to a specific section. I can get 
 a timestamp
 when they log in no problem, and I can get one if the session 
 expires, but I
 am still looking for a solution to getting a timestamp if the 
 browser closes
 either voluntarily or involuntarily. I have been looking into 
 other language
 alternatives but think 90% of what I am looking for can be done using 
CF.
 Can any of the advanced developers here offer a bit more insight on 
how I
 should proceed. I have intermediate skills in CF, but I am beginning 
to
 think that charge by the minute is not a good approach, although I 
am
 working with a guy who will not budge.

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



R: anyone with a mac out there?

2001-12-04 Thread forrester

What's the url. You might have a problem with the version of IE. I remember
we had problems with our site viewed from MAC IE 4.

john

-Messaggio originale-
Da: Paris Lundis [mailto:[EMAIL PROTECTED]]
Inviato: martedl 4 dicembre 2001 16.24
A: CF-Talk
Oggetto: anyone with a mac out there?


We are finishing up a Cold Fusion site for a client and the client swears it
doesn't work on someone's MAC...

anyone out there have a moment and a MAC to give a look???

-paris


~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFEXECUTE

2001-12-04 Thread Joshua Tipton

Is it possible to map a drive on the server via cfexecute and if so can someone please 
send the code to do so.

Joshua Tipton

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



cfHTTP problems

2001-12-04 Thread Don Vawter

I am attempting to use cfhttp to automate my login to another site.

The login action page is checklogin.asp.   If  I cfhttp to that page using
port 443 and method of post
with appropriate form fields as cfhttpparam  I get a connection error

cfhttp url=https://secure.findwhat.com/accountmanagement/checklogin.asp;
method=POST port=443 resolveurl=true useragent=Mozilla/4.0
(compatible; MSIE 5.5; Windows NT 5.0)  timeout=30
cfhttpparam name=user_name type=FORMFIELD
value=#attributes.username#
cfhttpparam name=password type=FORMFIELD value=#attributes.password#
/cfhttp

First Question. Why do I get a connection error. If i go to that page
directly in the browser it just redirects me to the login page (as I would
expect since the form wasnt submitted). Increasing the timeout doesnt help
and I have verified that the attributes are correct.

I can work around this by grabbing the login form(login.asp not
checklogin.asp)  with a cfhttp (GET) , populate the form fields
programatically and add js to autosubmit the form from the onloadmethod.
This logs me in but of course this is only good in an interactive setting
because the login doesn't occur until the page is served.

My goal is to login and then move to another page within the site and grab
that page via cfhttp.

Any suggestions.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Regular Expression

2001-12-04 Thread Harry Klein

I wonder if you could help me with a regular expression.
 
I try to find all cfmodule tags with the following syntax:
 
cfmodule ...textline.cfm.[missing attribute - MAXHSIZE].
 
In plain english: I try to find all cfmodule tags. After cfmodule are
some characters, then textline.cfm then again some characters.
The expression MAXHSIZE should not be found in the part between
textline.cfm to 
 
Again: I try to find wrong cfmodule calls with a deprecated attribute
(MAXHSIZE).
 
Thanks for your help,
Harry Klein
-- 
Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH
Heimeranstr. 68, 80339 München
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69 78
 mailto:[EMAIL PROTECTED] |  http://www.contens.de/ 


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: AbleCommerce

2001-12-04 Thread Duane Boudreau

I guess I should stay out of this one :D

Duane

-Original Message-
From: C Runyan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 5:18 PM
To: CF-Talk
Subject: AbleCommerce


I'm working at a company that is planning to buy AbleCommerce to do
e-commerce.  Just wondering if anyone has opinions positive or negative
about using it.  If anyone has done source code modifications it would be
helpful to know how easy that is.  We're expecting to do some of that as
well to get what we want out of it.

Chris




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFEXECUTE

2001-12-04 Thread Tracy Bost

I haven't tried it, but I would think you would be able to send the server
dos  commands via cfexecute (if your using windows) and map the drive that way.

Try net use /? in the command prompt.



Quoting Joshua Tipton [EMAIL PROTECTED]:

 Is it possible to map a drive on the server via cfexecute and if so can
 someone please send the code to do so.
 
 Joshua Tipton
 
 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: AbleCommerce

2001-12-04 Thread Paris Lundis

no join in...

-p


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:59
To: CF-Talk
Subject: RE: AbleCommerce


I guess I should stay out of this one :D

Duane

-Original Message-
From: C Runyan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 5:18 PM
To: CF-Talk
Subject: AbleCommerce


I'm working at a company that is planning to buy AbleCommerce to do
e-commerce.  Just wondering if anyone has opinions positive or negative
about using it.  If anyone has done source code modifications it would be
helpful to know how easy that is.  We're expecting to do some of that as
well to get what we want out of it.

Chris





~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: AbleCommerce

2001-12-04 Thread Duane Boudreau

I think I've already incurred the wrath of Ablecommerce's CEO, Mike
Randolph, enough for one year.

Duane

-Original Message-
From: Paris Lundis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:01 AM
To: CF-Talk
Subject: RE: AbleCommerce


no join in...

-p


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:59
To: CF-Talk
Subject: RE: AbleCommerce


I guess I should stay out of this one :D

Duane

-Original Message-
From: C Runyan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 5:18 PM
To: CF-Talk
Subject: AbleCommerce


I'm working at a company that is planning to buy AbleCommerce to do
e-commerce.  Just wondering if anyone has opinions positive or negative
about using it.  If anyone has done source code modifications it would be
helpful to know how easy that is.  We're expecting to do some of that as
well to get what we want out of it.

Chris






~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: CFHTTP in JSP

2001-12-04 Thread Carlisle, Eric

Is there a function in JSP with similar functionality to CFHTTP?

Thanks :)

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT: CFHTTP in JSP

2001-12-04 Thread Alex

www.apache.org
jakarta taglibs
io-tags

On Tue, 4 Dec 2001, Carlisle, Eric wrote:

 Is there a function in JSP with similar functionality to CFHTTP?
 
   Thanks :)
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Dynamic creation of hidden fields

2001-12-04 Thread Douglas Brown

I have a page that will hold the configuration of a computer systems 
components in hidden fields. The components that are chosen is based on 
a column (isDefault) EQ yes.  Lets say that the computer does not have 
a default sound card (isDefault) EQ no how can I generate a hidden 
field with the value of  for the sound card? this is needed because of 
a template that looks for all the items later on down the tree.





Doug

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: anyone with a mac out there?

2001-12-04 Thread Will Swain

sure...whats the url...?


-Original Message-
From: Paris Lundis [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 15:24
To: CF-Talk
Subject: anyone with a mac out there?


We are finishing up a Cold Fusion site for a client and the client swears it
doesn't work on someone's MAC...

anyone out there have a moment and a MAC to give a look???

-paris


~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Limitations in Missing Template Handler Template?

2001-12-04 Thread Jamie Jackson

Okay, figured it out.

Both cffile and cfinclude will work.

With cffile you need to output the cffile variable, as opposed to
letting cffile display it directly.

With cfinclude the pathing is screwy. I used a bunch of
up-directories (../) to get all the way to the root of the server
drive, and then used absolute pathing to get back down to the file I
wanted:

cfinclude
template=../../../../../../../../../../../websites/mysite/404.cfm


Hope it helps someone.
Jamie 

On Fri, 30 Nov 2001 17:39:01 -0500, in cf-talk you wrote:

I've found that HTTP redirects and cflocations function properly,
but they don't quite have the behavior I need within my custom CF 404
page.

So, I'm still wondering about cfincludes within my Missing Template
Handler page.

Possible, or no? Is there anything special I need to do with the
cfinclude to make it work?

Thanks,
Jamie

On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:

I'm trying to set up a custom 404 template that can (individually)
handle multiple sites' (CF) 404 errors (they are hosted on the same
server).

I'm having trouble with cfincludes and cffiles within the custom
CF 404 template: I can't get them to work.

Are these disabled to prevent endless 404 error loops? If not, what
might I be doing wrong?

Thanks,


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Dynamic creation of hidden fields

2001-12-04 Thread BILLY CRAVENS

On the later template, you can use CFParam to provide default values for all
form fields:

cfparam name=form.soundCard default=

- Original Message -
From: Douglas Brown [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:01 AM
Subject: Dynamic creation of hidden fields


 I have a page that will hold the configuration of a computer systems
 components in hidden fields. The components that are chosen is based on
 a column (isDefault) EQ yes.  Lets say that the computer does not have
 a default sound card (isDefault) EQ no how can I generate a hidden
 field with the value of  for the sound card? this is needed because of
 a template that looks for all the items later on down the tree.





 Doug

 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Regular Expression

2001-12-04 Thread Gyrus

 In plain english: I try to find all cfmodule tags. After cfmodule are
 some characters, then textline.cfm then again some characters.
 The expression MAXHSIZE should not be found in the part between
 textline.cfm to 
  
 Again: I try to find wrong cfmodule calls with a deprecated attribute
 (MAXHSIZE).

Slightly confusing explanation, but assume you want to match those
tags where MAXHSIZE *does* exist, to identify invalid tags. Try

cfmodule [^]+textline.cfm[^]+MAXHSIZE[^]+

Not 100% on this, but seems to work with basic test. The core
trick is [^]+ (match one or more characters that aren't  -
keeps the match inside the tag bounds.

hth,

- Gyrus


~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: anyone with a mac out there?

2001-12-04 Thread BILLY CRAVENS

for cross-browser testing, take a look at this site:
http://www.netmechanic.com/browser-index.htm

- Original Message -
From: Paris Lundis [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 9:24 AM
Subject: anyone with a mac out there?


 We are finishing up a Cold Fusion site for a client and the client swears
it
 doesn't work on someone's MAC...

 anyone out there have a moment and a MAC to give a look???

 -paris

 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Limitations in Missing Template Handler Template?

2001-12-04 Thread BILLY CRAVENS

For CFInclude, you can use mapped paths (in CF Administrator) to clean your
pathing up.

- Original Message -
From: Jamie Jackson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:04 AM
Subject: Re: Limitations in Missing Template Handler Template?


 Okay, figured it out.

 Both cffile and cfinclude will work.

 With cffile you need to output the cffile variable, as opposed to
 letting cffile display it directly.

 With cfinclude the pathing is screwy. I used a bunch of
 up-directories (../) to get all the way to the root of the server
 drive, and then used absolute pathing to get back down to the file I
 wanted:

 cfinclude
 template=../../../../../../../../../../../websites/mysite/404.cfm


 Hope it helps someone.
 Jamie

 On Fri, 30 Nov 2001 17:39:01 -0500, in cf-talk you wrote:

 I've found that HTTP redirects and cflocations function properly,
 but they don't quite have the behavior I need within my custom CF 404
 page.
 
 So, I'm still wondering about cfincludes within my Missing Template
 Handler page.
 
 Possible, or no? Is there anything special I need to do with the
 cfinclude to make it work?
 
 Thanks,
 Jamie
 
 On Fri, 30 Nov 2001 13:55:47 -0500, in cf-talk you wrote:
 
 I'm trying to set up a custom 404 template that can (individually)
 handle multiple sites' (CF) 404 errors (they are hosted on the same
 server).
 
 I'm having trouble with cfincludes and cffiles within the custom
 CF 404 template: I can't get them to work.
 
 Are these disabled to prevent endless 404 error loops? If not, what
 might I be doing wrong?
 
 Thanks,
 
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Dynamic creation of hidden fields

2001-12-04 Thread Alex

use an IF
cfif sound card (isDefault) EQ no
input type = hidden name=blah value=
/cfif

Or show us the code you are using.

On Tue, 4 Dec 2001, Douglas Brown wrote:

 I have a page that will hold the configuration of a computer systems 
 components in hidden fields. The components that are chosen is based on 
 a column (isDefault) EQ yes.  Lets say that the computer does not have 
 a default sound card (isDefault) EQ no how can I generate a hidden 
 field with the value of  for the sound card? this is needed because of 
 a template that looks for all the items later on down the tree.
 
 
 
 
 
 Doug
 
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Capturing login and logout times

2001-12-04 Thread Joseph Thompson

I am sure someone has sent you this link. (my all time favourite).

I would say, set this up in a hidden frame, set the JavaScript clock to tick
off on the minute and... presto!  It really does work.

http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GIFAs
Pipe/

 Hi everyone.
 I posted a question about two weeks ago about an issue I was having with
an
 application in which I was attempting to charge members of a site by the
 minute when they were logged in to a specific section. I can get a
timestamp
 when they log in no problem, and I can get one if the session expires, but
I
 am still looking for a solution to getting a timestamp if the browser
closes
 either voluntarily or involuntarily. I have been looking into other
language
 alternatives but think 90% of what I am looking for can be done using CF.
 Can any of the advanced developers here offer a bit more insight on how I
 should proceed. I have intermediate skills in CF, but I am beginning to
 think that charge by the minute is not a good approach, although I am
 working with a guy who will not budge.

 Thanks in advance.

 Michael T. Tangorre

 
 Resident Assistant - Brick
 Web Applications Developer
 A.U. Webteam Slave  :-)
 AIM: CrazyFlash4
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular Expression

2001-12-04 Thread Harry Klein

Thanks for your help,

i think my explanation was really bad.
I would use the same code as you, but my problem is that i want to find
all cfmodule tags with no attribute MAXHSIZE.
The attribute is not deprecated but required.

Sorry for the inconveniance.

Harry

 -Original Message-
 From: Gyrus [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 5:10 PM
 To: CF-Talk
 Subject: Re: Regular Expression
 
 
  In plain english: I try to find all cfmodule tags. After 
 cfmodule are
  some characters, then textline.cfm then again some characters.
  The expression MAXHSIZE should not be found in the part between
  textline.cfm to 
   
  Again: I try to find wrong cfmodule calls with a 
 deprecated attribute
  (MAXHSIZE).
 
 Slightly confusing explanation, but assume you want to match those
 tags where MAXHSIZE *does* exist, to identify invalid tags. Try
 
 cfmodule [^]+textline.cfm[^]+MAXHSIZE[^]+
 
 Not 100% on this, but seems to work with basic test. The core
 trick is [^]+ (match one or more characters that aren't  -
 keeps the match inside the tag bounds.
 
 hth,
 
 - Gyrus
 
 
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



form fields

2001-12-04 Thread webmaster

Just wondering if anyone has bright idea for this little problem that I 
have.

I'm receiving data from another site sent via form data to my coldfusion 
routine that teh takes the data (e.g. #form.customer#, 
#form.backupdate#, etc.) 

Problem is I don't always know what form data will be sent, sometimes 
they wony include the backupdate for a certain customer.

At the moment I just have a load of isdefined statements - not pretty 
but it works. Now I'm told thay variables will be added - and that the 
names might be dynamically created (Please don't ask me where that bit 
of wisdom came from!)


Any one have any ieas how I can tell what variables are in the FORM ?

TIA

Richard 

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CF Webstore

2001-12-04 Thread C Runyan

Thanks to all for the comments about AbleCommerce.  Based on what we're 
hearing and looking at the CFDJ readers survey CF Webstore looks like a 
reasonable alternative.  If anyone has used CF Webstore and modified the 
code let me know what you think.  Another consideration is whether it can 
handle a large amount of traffic.  Hopefully a good package would use 
CFTRANSACTION processing for reliability.

Chris



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular Expression

2001-12-04 Thread Rick Osborne [Mojo]

I know it looks nasty, but this is what I came up with:

CFMODULE[[:space:]]+[^]+textline\.cfm[^[:space:]]*([[:space:]]+[^M][^A=]?
[^X=]?[^H=]?[^S=]?[^I=]?[^Z=]?[^E=]?[_[:alnum:]]*=([^]*|[^[:space:]]*))+
[[:space:]]*

I used the following test cases:

CFMODULE TEMPLATE=textline.cfm SOMETHING=foo
CFMODULE TEMPLATE=textline.cfm SOMETHING=foo MAXHSIZE=bar BAZ=QUUX
CFMODULE TEMPLATE=textline.cfm O=1
CFMODULE textline.cfm MAXHSIZE=bar
CFMODULE TEMPLATE=textline.cfm A_B_C=123
CFMODULE textline.cfm MAXHSIZE=2

It correctly found the 3 lines that do *not* have the MAXHSIZE attribute.

HTH,
-R


-Original Message-
From: Harry Klein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:29
To: CF-Talk
Subject: RE: Regular Expression


Thanks for your help,

i think my explanation was really bad.
I would use the same code as you, but my problem is that i want to find
all cfmodule tags with no attribute MAXHSIZE.
The attribute is not deprecated but required.

Sorry for the inconveniance.

Harry

 -Original Message-
 From: Gyrus [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 5:10 PM
 To: CF-Talk
 Subject: Re: Regular Expression


  In plain english: I try to find all cfmodule tags. After
 cfmodule are
  some characters, then textline.cfm then again some characters.
  The expression MAXHSIZE should not be found in the part between
  textline.cfm to 
 
  Again: I try to find wrong cfmodule calls with a
 deprecated attribute
  (MAXHSIZE).

 Slightly confusing explanation, but assume you want to match those
 tags where MAXHSIZE *does* exist, to identify invalid tags. Try

 cfmodule [^]+textline.cfm[^]+MAXHSIZE[^]+

 Not 100% on this, but seems to work with basic test. The core
 trick is [^]+ (match one or more characters that aren't  -
 keeps the match inside the tag bounds.

 hth,

 - Gyrus




~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: form fields

2001-12-04 Thread Dave Hannum

The following reads all of the passed field names and evaluates the value of
those fields.

CFLOOP INDEX=Fields LIST=Form.FieldNames
CFSET val = Evaluate(Fields)
CFOUTPUT
Form Name = #Fields#
Value = #val#
/CFOUTPUT
/CFLOOP

Dave


- Original Message -
From: webmaster [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:42 PM
Subject: form fields


Just wondering if anyone has bright idea for this little problem that I
have.

I'm receiving data from another site sent via form data to my coldfusion
routine that teh takes the data (e.g. #form.customer#,
#form.backupdate#, etc.)

Problem is I don't always know what form data will be sent, sometimes
they wony include the backupdate for a certain customer.

At the moment I just have a load of isdefined statements - not pretty
but it works. Now I'm told thay variables will be added - and that the
names might be dynamically created (Please don't ask me where that bit
of wisdom came from!)


Any one have any ieas how I can tell what variables are in the FORM ?

TIA

Richard


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Dynamic creation of hidden fields

2001-12-04 Thread Douglas Brown

Thanks man, I must be half asleep to not have thought of that.



Doug


- Original Message -
From: BILLY CRAVENS [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 9:02 AM
Subject: Re: Dynamic creation of hidden fields


 On the later template, you can use CFParam to provide default values for
all
 form fields:

 cfparam name=form.soundCard default=

 - Original Message -
 From: Douglas Brown [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Tuesday, December 04, 2001 11:01 AM
 Subject: Dynamic creation of hidden fields


  I have a page that will hold the configuration of a computer systems
  components in hidden fields. The components that are chosen is based on
  a column (isDefault) EQ yes.  Lets say that the computer does not have
  a default sound card (isDefault) EQ no how can I generate a hidden
  field with the value of  for the sound card? this is needed because of
  a template that looks for all the items later on down the tree.
 
 
 
 
 
  Doug
 
 
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: multilingual dynamic sites, particularly hindi

2001-12-04 Thread Paul Hastings

 Paul, were you able to display double byte chars in cftree?

double byte?? no idea. unicode? nope. many workarounds though.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: form fields

2001-12-04 Thread Mike Townend

Tries to jump in before Ray ;)

You should access the FORM using structure syntax rather than Evalute as
this is more efficient 

Ie
CFLOOP ITEM=Fields COLLECTION=#FORM#
CFOUTPUT
Form Name = #Fields#
Value = #FORM[Fields]#
/CFOUTPUT
/CFLOOP

HTH




-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]] 
Sent: 04 December 2001 18:00
To: CF-Talk
Subject: Re: form fields


The following reads all of the passed field names and evaluates the
value of those fields.

CFLOOP INDEX=Fields LIST=Form.FieldNames
CFSET val = Evaluate(Fields)
CFOUTPUT
Form Name = #Fields#
Value = #val#
/CFOUTPUT
/CFLOOP

Dave


- Original Message -
From: webmaster [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:42 PM
Subject: form fields


Just wondering if anyone has bright idea for this little problem that I
have.

I'm receiving data from another site sent via form data to my coldfusion
routine that teh takes the data (e.g. #form.customer#,
#form.backupdate#, etc.)

Problem is I don't always know what form data will be sent, sometimes
they wony include the backupdate for a certain customer.

At the moment I just have a load of isdefined statements - not pretty
but it works. Now I'm told thay variables will be added - and that the
names might be dynamically created (Please don't ask me where that bit
of wisdom came from!)


Any one have any ieas how I can tell what variables are in the FORM ?

TIA

Richard



~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF Webstore

2001-12-04 Thread Janssen Dolores Y (Contractor)

i have put up 4 e-commerce sites with cfwebstore, and have one in process:
one uses it only for the backend, have made alot of addons/mods to certain
areas, v3.12
one is v3.02, 2 are v4, one will be v4.5

other than needing a visio chart for program flow, i've found it reasonable
to modify - and with v4.5 using cflock extensively, as long as you use a
solid db - NOT access - you should do ok - mary jo could probably tell you
which customers have the biggest trafficked sites - email me offline if you
would like the url's


~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Hi

2001-12-04 Thread Lon Lentz

How are you ?
When I saw this screen saver, I immediately thought about you
I am in a harry, I promise you will love it!

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: form fields

2001-12-04 Thread Bill King

Not sure what you are needing to do with this data, but you could put it
into a WDDX packet to store in the database like this:

cfwddx input=#form# output=wddx_formfields type=cfml2wddx

then just put it into a blob field in your database with a field like
customer to key off of.

Just some thoughts.

- BILL -
- Original Message -
From: webmaster [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 9:42 AM
Subject: form fields


 Just wondering if anyone has bright idea for this little problem that I
 have.

 I'm receiving data from another site sent via form data to my coldfusion
 routine that teh takes the data (e.g. #form.customer#,
 #form.backupdate#, etc.)

 Problem is I don't always know what form data will be sent, sometimes
 they wony include the backupdate for a certain customer.

 At the moment I just have a load of isdefined statements - not pretty
 but it works. Now I'm told thay variables will be added - and that the
 names might be dynamically created (Please don't ask me where that bit
 of wisdom came from!)


 Any one have any ieas how I can tell what variables are in the FORM ?

 TIA

 Richard

 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Hi

2001-12-04 Thread Dave Watts

 How are you ?
 When I saw this screen saver, I immediately thought about you
 I am in a harry, I promise you will love it!

Hi, Lon! When I saw this message, I immediately thought about virus
I am not want infection, I promise you!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Hi

2001-12-04 Thread Robert Forsyth

How are you ?
When I saw this screen saver, I immediately thought about you
I am in a harry, I promise you will love it!

Hi, Lon! 
How are you ?
When I saw your post, I immediately thought about your lack of
virus protection.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Regular Expression

2001-12-04 Thread Don Vawter

Pardon me for being naive but isnt it a lot easier to just combine regex and
regular find trying to match a substring like this?

hasmax=unknown:
st=refindnocase([ ]*cfmodule[^]*,whatever,1,yes);
//grab the tag

if (st.pos[1] GT 0){
sub=mid(whatever,st.pos[1],st.len[1]);
   if (findnocase(MAXHSIZE,sub) hasmax=Yes;
   else hasmax=No;
}

If find regex invaluable but sometimes combining with a plain old find makes
my life simpler.


- Original Message -
From: Rick Osborne [Mojo] [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 10:54 AM
Subject: RE: Regular Expression


 I know it looks nasty, but this is what I came up with:


CFMODULE[[:space:]]+[^]+textline\.cfm[^[:space:]]*([[:space:]]+[^M][^A=]?

[^X=]?[^H=]?[^S=]?[^I=]?[^Z=]?[^E=]?[_[:alnum:]]*=([^]*|[^[:space:]]*))+
 [[:space:]]*

 I used the following test cases:

 CFMODULE TEMPLATE=textline.cfm SOMETHING=foo
 CFMODULE TEMPLATE=textline.cfm SOMETHING=foo MAXHSIZE=bar
BAZ=QUUX
 CFMODULE TEMPLATE=textline.cfm O=1
 CFMODULE textline.cfm MAXHSIZE=bar
 CFMODULE TEMPLATE=textline.cfm A_B_C=123
 CFMODULE textline.cfm MAXHSIZE=2

 It correctly found the 3 lines that do *not* have the MAXHSIZE attribute.

 HTH,
 -R


 -Original Message-
 From: Harry Klein [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 04, 2001 12:29
 To: CF-Talk
 Subject: RE: Regular Expression


 Thanks for your help,

 i think my explanation was really bad.
 I would use the same code as you, but my problem is that i want to find
 all cfmodule tags with no attribute MAXHSIZE.
 The attribute is not deprecated but required.

 Sorry for the inconveniance.

 Harry

  -Original Message-
  From: Gyrus [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 04, 2001 5:10 PM
  To: CF-Talk
  Subject: Re: Regular Expression
 
 
   In plain english: I try to find all cfmodule tags. After
  cfmodule are
   some characters, then textline.cfm then again some characters.
   The expression MAXHSIZE should not be found in the part between
   textline.cfm to 
  
   Again: I try to find wrong cfmodule calls with a
  deprecated attribute
   (MAXHSIZE).
 
  Slightly confusing explanation, but assume you want to match those
  tags where MAXHSIZE *does* exist, to identify invalid tags. Try
 
  cfmodule [^]+textline.cfm[^]+MAXHSIZE[^]+
 
  Not 100% on this, but seems to work with basic test. The core
  trick is [^]+ (match one or more characters that aren't  -
  keeps the match inside the tag bounds.
 
  hth,
 
  - Gyrus
 
 
 

 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Do I need to lock this?

2001-12-04 Thread Douglas Brown

I was wondering if I need to lock this, I have locking enabled in my 
application.cfm for sessions?

CFSCRIPT

if (not(isDefined(session.cart))){
 session.cart = structNew();
 }
 // The item structure we will define is as follows
 // 1. sysModelNum
 // 2. qty

 
tempValue = listToArray('#attributes.ID#,
#attributes.sysModelNum#,
#attributes.price#,
#attributes.qty#,
#attributes.cse#,
#attributes.cpu#,
#attributes.ram#,
#attributes.hdd#,
#attributes.sec_hdd#,
#attributes.mtr#,
#attributes.ctr#,
#attributes.vid#,
#attributes.snd#,
#attributes.cdr#,
#attributes.dvd#,
#attributes.crw#,
#attributes.mdm#,
#attributes.stg#,
#attributes.spk#,
#attributes.nic#,
#attributes.clng#,
#attributes.os#,
#attributes.war#');
  
 // Check to make sure that the item is in the cart, and if it 
is not, add it.
   if 
(not(structKeyExists(session.cart,attributes.ID))) {

structInsert(session.cart,attributes.ID,tempValue,true);
   }
else { 
// If the item is already in the cart update the quantity

tempvalue[4]=attributes.qty;
structUpdate(session.cart,attributes.ID,tempvalue);
}

/CFSCRIPT

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Do I need to lock this?

2001-12-04 Thread Don Vawter

positutely absotively

- Original Message -
From: Douglas Brown [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:37 AM
Subject: Do I need to lock this?


 I was wondering if I need to lock this, I have locking enabled in my
 application.cfm for sessions?

 CFSCRIPT

 if (not(isDefined(session.cart))){
  session.cart = structNew();
  }
  // The item structure we will define is as follows
  // 1. sysModelNum
  // 2. qty


 tempValue = listToArray('#attributes.ID#,
 #attributes.sysModelNum#,
 #attributes.price#,
 #attributes.qty#,
 #attributes.cse#,
 #attributes.cpu#,
 #attributes.ram#,
 #attributes.hdd#,
 #attributes.sec_hdd#,
 #attributes.mtr#,
 #attributes.ctr#,
 #attributes.vid#,
 #attributes.snd#,
 #attributes.cdr#,
 #attributes.dvd#,
 #attributes.crw#,
 #attributes.mdm#,
 #attributes.stg#,
 #attributes.spk#,
 #attributes.nic#,
 #attributes.clng#,
 #attributes.os#,
 #attributes.war#');

  // Check to make sure that the item is in the cart, and if it
 is not, add it.
if
 (not(structKeyExists(session.cart,attributes.ID))) {

 structInsert(session.cart,attributes.ID,tempValue,true);
}
 else {
 // If the item is already in the cart update the quantity

 tempvalue[4]=attributes.qty;
 structUpdate(session.cart,attributes.ID,tempvalue);
 }

 /CFSCRIPT

 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Do I need to lock this?

2001-12-04 Thread Dave Watts

 I was wondering if I need to lock this, I have locking enabled in my 
 application.cfm for sessions?

 CFSCRIPT
 
 if (not(isDefined(session.cart))){
  session.cart = structNew();

I'm not sure what you mean by hav[ing] locking enabled in ...
application.cfm for sessions, but the short answer is, yes, you need to
lock any write to a session variable, unless you've enabled single-threaded
sessions in the CF Administrator (which has its own problems, as mentioned
here last week or so). If you don't have automatic read locking enabled in
CF Administrator, you'll need to lock all reads as well - which is what I
recommend. Basically, if you have the word Session in your code, I'd
recommend that you have that in a CFLOCK.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular Expression

2001-12-04 Thread Rick Osborne [Mojo]

Don Vawter wrote:

 Pardon me for being naive but isnt it a lot easier to just
 combine regex and regular find trying to match a substring
 like this?
 [...]
 If find regex invaluable but sometimes combining with a plain
 old find makes my life simpler.

Very, very true.  There's more than one way to do it.  Personally, I'd have
done it with a Perl one-liner and the File::Recurse module.  But, if all you
want to do is paste the regex into CFStudio and have it do a recursive find
then programming isn't really an option.  Of course, the counter point is
that in the time it took for us to respond, Harry could have programmed
something anyway.  Counter counter: other people on the list may have
similar needs, and posting a simple solution (like a single regex) may
enlighten them.

-R

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Webstore

2001-12-04 Thread Jon Hall

A good piece of software would not rely on cftransaction at all It's a
handy shortcut that's all.

jon
- Original Message -
From: C Runyan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:49 PM
Subject: CF Webstore


 Thanks to all for the comments about AbleCommerce.  Based on what we're
 hearing and looking at the CFDJ readers survey CF Webstore looks like a
 reasonable alternative.  If anyone has used CF Webstore and modified the
 code let me know what you think.  Another consideration is whether it can
 handle a large amount of traffic.  Hopefully a good package would use
 CFTRANSACTION processing for reliability.

 Chris



 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF Webstore

2001-12-04 Thread Christopher Olive

how do you justify that argument, out of curiosity?

christopher olive, cto, vp of web development
cresco technologies, inc
410.825.0383
http://www.crescotech.com


-Original Message-
From: Jon Hall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:42 PM
To: CF-Talk
Subject: Re: CF Webstore


A good piece of software would not rely on cftransaction at all It's
a
handy shortcut that's all.

jon
- Original Message -
From: C Runyan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:49 PM
Subject: CF Webstore


 Thanks to all for the comments about AbleCommerce.  Based on what
we're
 hearing and looking at the CFDJ readers survey CF Webstore looks like
a
 reasonable alternative.  If anyone has used CF Webstore and modified
the
 code let me know what you think.  Another consideration is whether it
can
 handle a large amount of traffic.  Hopefully a good package would use
 CFTRANSACTION processing for reliability.

 Chris



 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Webstore

2001-12-04 Thread admin

great software and easy to modify - we've made major changes with no prblems
at all
- Original Message -
From: Jon Hall [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 10:41 AM
Subject: Re: CF Webstore


 A good piece of software would not rely on cftransaction at all It's a
 handy shortcut that's all.

 jon
 - Original Message -
 From: C Runyan [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Tuesday, December 04, 2001 12:49 PM
 Subject: CF Webstore


  Thanks to all for the comments about AbleCommerce.  Based on what we're
  hearing and looking at the CFDJ readers survey CF Webstore looks like a
  reasonable alternative.  If anyone has used CF Webstore and modified the
  code let me know what you think.  Another consideration is whether it
can
  handle a large amount of traffic.  Hopefully a good package would use
  CFTRANSACTION processing for reliability.
 
  Chris
 
 
 
 
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Do I need to lock this?

2001-12-04 Thread Douglas Brown

Dave,


Forgive my stupidity, but once I lock the session.cart, I shouldnt have to
lock every reference to it. correct?



Doug


- Original Message -
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 10:36 AM
Subject: RE: Do I need to lock this?


  I was wondering if I need to lock this, I have locking enabled in my
  application.cfm for sessions?
 
  CFSCRIPT
 
  if (not(isDefined(session.cart))){
   session.cart = structNew();

 I'm not sure what you mean by hav[ing] locking enabled in ...
 application.cfm for sessions, but the short answer is, yes, you need to
 lock any write to a session variable, unless you've enabled
single-threaded
 sessions in the CF Administrator (which has its own problems, as mentioned
 here last week or so). If you don't have automatic read locking enabled in
 CF Administrator, you'll need to lock all reads as well - which is what I
 recommend. Basically, if you have the word Session in your code, I'd
 recommend that you have that in a CFLOCK.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Do I need to lock this?

2001-12-04 Thread Ben Forta

You are never actually locking the cart, you are locking a block of code or
a scope. Every reference to SESSION variables should be locked. Within a
CFLOCK block you can access the SESSION variables as often as needed.

--- Ben


-Original Message-
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:09 PM
To: CF-Talk
Subject: Re: Do I need to lock this?


Dave,


Forgive my stupidity, but once I lock the session.cart, I shouldnt have to
lock every reference to it. correct?



Doug


- Original Message -
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 10:36 AM
Subject: RE: Do I need to lock this?


  I was wondering if I need to lock this, I have locking enabled in my
  application.cfm for sessions?
 
  CFSCRIPT
 
  if (not(isDefined(session.cart))){
   session.cart = structNew();

 I'm not sure what you mean by hav[ing] locking enabled in ...
 application.cfm for sessions, but the short answer is, yes, you need to
 lock any write to a session variable, unless you've enabled
single-threaded
 sessions in the CF Administrator (which has its own problems, as mentioned
 here last week or so). If you don't have automatic read locking enabled in
 CF Administrator, you'll need to lock all reads as well - which is what I
 recommend. Basically, if you have the word Session in your code, I'd
 recommend that you have that in a CFLOCK.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Do I need to lock this?

2001-12-04 Thread Dave Watts

 Forgive my stupidity, but once I lock the session.cart, I 
 shouldnt have to lock every reference to it. correct?

No need to claim stupidity - there's a lot of misunderstanding about locking
to go around.

The answer, though, is it depends. If you've got several references like
this:

cfset session.cart.foo = val1
cfset session.cart.bar = val2

you could wrap them within a single CFLOCK with a TYPE=EXCLUSIVE
attribute. On the other hand, if you've got references to Session.cart
spread all over your code, you'll need locks spread all over your code.
Locking in CF is a cooperative venture - it's not enough to lock one
reference, because if another reference is unlocked, CF won't know to check
for an existing lock.

In many ways, locking in CF is similar to locking within a database. For
example, you might have a transaction which create locks and respect the
locks of others, but if you then write another transaction which
intentionally disregards locks, the first one won't be able to lock out the
second.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Webstore

2001-12-04 Thread C Runyan

I guess you're right that there are other ways to accomplish the same goal.  
A different method for scalability might be better for us especially if it 
works well with MySQL which apparently does not support CFTRANSACTION.  
We've been using MySQL and find it easy to work with, but weren't sure if it 
is the best solution for our e-commerce.  I think CFWebstore can use any 
database.

Chris

From: Jon Hall [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: Re: CF Webstore
Date: Tue, 4 Dec 2001 13:41:52 -0500

A good piece of software would not rely on cftransaction at all It's a
handy shortcut that's all.

jon
- Original Message -
From: C Runyan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:49 PM
Subject: CF Webstore


  Thanks to all for the comments about AbleCommerce.  Based on what we're
  hearing and looking at the CFDJ readers survey CF Webstore looks like a
  reasonable alternative.  If anyone has used CF Webstore and modified the
  code let me know what you think.  Another consideration is whether it 
can
  handle a large amount of traffic.  Hopefully a good package would use
  CFTRANSACTION processing for reliability.
 
  Chris
 
 
 
 

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF Webstore

2001-12-04 Thread Benjamin S. Rogers

The CFTRANSACTION tag is used to bundle multiple queries into a single
transaction so that the queries can be committed or rolled back as a group.
This is a fundamental aspect of SQL itself: it is not a short cut.

Benjamin S. Rogers
http://www.c4.net/
v.508.240.0051
f.508.240.0057

-Original Message-
From: Jon Hall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:42 PM
To: CF-Talk
Subject: Re: CF Webstore


A good piece of software would not rely on cftransaction at all It's a
handy shortcut that's all.

jon
- Original Message -
From: C Runyan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:49 PM
Subject: CF Webstore


 Thanks to all for the comments about AbleCommerce.  Based on what we're
 hearing and looking at the CFDJ readers survey CF Webstore looks like a
 reasonable alternative.  If anyone has used CF Webstore and modified the
 code let me know what you think.  Another consideration is whether it can
 handle a large amount of traffic.  Hopefully a good package would use
 CFTRANSACTION processing for reliability.

 Chris





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF Webstore

2001-12-04 Thread Paris Lundis

MySQL will work... and work well... ideally, you will have some
workaround/redefining to do since some things most of us take for granted
are not supported...

they have a large client base with usage across many industries...

The cftransaction workaround will be an interesting one...

as with most things you can't yet do by default in MySQL... surely there is
a longer more pure way to likely achieve the same thing...

-paris


-Original Message-
From: C Runyan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 14:05
To: CF-Talk
Subject: Re: CF Webstore


I guess you're right that there are other ways to accomplish the same goal.
A different method for scalability might be better for us especially if it
works well with MySQL which apparently does not support CFTRANSACTION.
We've been using MySQL and find it easy to work with, but weren't sure if it
is the best solution for our e-commerce.  I think CFWebstore can use any
database.

Chris

From: Jon Hall [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: Re: CF Webstore
Date: Tue, 4 Dec 2001 13:41:52 -0500

A good piece of software would not rely on cftransaction at all It's a
handy shortcut that's all.

jon
- Original Message -
From: C Runyan [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 12:49 PM
Subject: CF Webstore


  Thanks to all for the comments about AbleCommerce.  Based on what we're
  hearing and looking at the CFDJ readers survey CF Webstore looks like a
  reasonable alternative.  If anyone has used CF Webstore and modified the
  code let me know what you think.  Another consideration is whether it
can
  handle a large amount of traffic.  Hopefully a good package would use
  CFTRANSACTION processing for reliability.
 
  Chris
 
 
 
 


~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Text insert and line feeds problem

2001-12-04 Thread Ray Bujarski

I am doing an insert on a variable called report_body where I do a

cfset newReportBody = replacenocase(report_body, chr(10), , all) 
cfset newReportBody = replacenocase(newReportBody, chr(13), br, all)
cfquery ds=dsname name=name
 do insert
/cfquery


Then when the page reloads I fill in the form fields with the values 
replaced back

cfset newReportBody = replacenocase(report_body, br, chr(13), all)
textarea attributes...#newReportBody#/textarea

But it doesn't put in the line feeds for Unix/Netscape.
Can anyone tell me what I should be replacing for line feeds in unix
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Text insert and line feeds problem

2001-12-04 Thread Macarie Neculai

Dear Ryan,

On Linux the line feed is composed not of the Chr(13) and Chr(10) but only
of the Chr(10). So on Linux you should replace the Chr(10) with a BR.
Your code strips the Chr(10), but there is no Chr(13) to be replaced.

So here is a solution:
cfset newReportBody = replacenocase(report_body, chr(13), , all) 
cfset newReportBody = replacenocase(newReportBody, chr(10), br,
all)

Mack.





 I am doing an insert on a variable called report_body where I do a

 cfset newReportBody = replacenocase(report_body, chr(10), , all) 
 cfset newReportBody = replacenocase(newReportBody, chr(13),
 br, all)
 cfquery ds=dsname name=name
  do insert
 /cfquery


 Then when the page reloads I fill in the form fields with the values
 replaced back

 cfset newReportBody = replacenocase(report_body, br, chr(13), all)
 textarea attributes...#newReportBody#/textarea

 But it doesn't put in the line feeds for Unix/Netscape.
 Can anyone tell me what I should be replacing for line feeds in unix
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Regular Expression

2001-12-04 Thread Don Vawter

True, I hadn't thought about a non programatic solution I guess because if
that were the case I would probably just do a rough regex to get the right
modules and then visually inpect them. Not elegant but takes a lot less time
unless you have lots of them.

- Original Message -
From: Rick Osborne [Mojo] [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:38 AM
Subject: RE: Regular Expression


 Don Vawter wrote:

  Pardon me for being naive but isnt it a lot easier to just
  combine regex and regular find trying to match a substring
  like this?
  [...]
  If find regex invaluable but sometimes combining with a plain
  old find makes my life simpler.

 Very, very true.  There's more than one way to do it.  Personally, I'd
have
 done it with a Perl one-liner and the File::Recurse module.  But, if all
you
 want to do is paste the regex into CFStudio and have it do a recursive
find
 then programming isn't really an option.  Of course, the counter point is
 that in the time it took for us to respond, Harry could have programmed
 something anyway.  Counter counter: other people on the list may have
 similar needs, and posting a simple solution (like a single regex) may
 enlighten them.

 -R

 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Text insert and line feeds problem

2001-12-04 Thread Ray Bujarski

Hi Mack,
Thanks, that did it.  Whew! I was trying all kinds of stuff.
Ray


At 09:23 PM 12/4/2001 +0200, you wrote:
 Dear Ryan,

 On Linux the line feed is composed not of the Chr(13) and Chr(10) 
 but only
of the Chr(10). So on Linux you should replace the Chr(10) with a BR.
Your code strips the Chr(10), but there is no Chr(13) to be replaced.

 So here is a solution:
 cfset newReportBody = replacenocase(report_body, chr(13), , 
 all) 
 cfset newReportBody = replacenocase(newReportBody, chr(10), br,
all)

 Mack.




 
  I am doing an insert on a variable called report_body where I do a
 
  cfset newReportBody = replacenocase(report_body, chr(10), , all) 
  cfset newReportBody = replacenocase(newReportBody, chr(13),
  br, all)
  cfquery ds=dsname name=name
   do insert
  /cfquery
 
 
  Then when the page reloads I fill in the form fields with the values
  replaced back
 
  cfset newReportBody = replacenocase(report_body, br, chr(13), all)
  textarea attributes...#newReportBody#/textarea
 
  But it doesn't put in the line feeds for Unix/Netscape.
  Can anyone tell me what I should be replacing for line feeds in unix

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Arrgghhh! cfpop trouble=True

2001-12-04 Thread Tyler Silcox

I'm getting a dirty little error now when I'm trying to retrieve more 
than a few emails at a time with cfpop.  Has anyone out there in the 
ColdFusion yonder come across this problem?  I've tried all the 
debugging I can think of (disabled timeouts, all pop connection error 
checks, etc.)  It was working just fine earlier, now it will barely 
retrieve one email before killing my session and throwing this error up 
in my face.  If I was a Wookie, I'd be exiled by now because I would 
have already ripped out all of my hair...

Here's my error:
Error Diagnostic Information
Request canceled or ignored by serverServer busy or unable to fulfill 
request. The server is unable to fulfill your request due to extremely 
high traffic or an unexpected internal error. Please attempt your 
request again (if you are repeatedly unsuccessful you should notify the 
site administrator). (Location Code: 26)

Here's my code:

!--- i'll catch any connection errors ---
cftry

!--- i retrieve the emails ---
cfpop action=GetAll 
attachmentpath=#request.Path.Blah#attachments\ 
name=getBlah 
maxrows=5 
password=#blahblah.Blah# 
server=#blahblah.Blah# 
username=#ListFirst(blahblah.Blah, @)#

!--- i set an error if an invalid username and password combination 
is given ---
cfcatch type=COM.Allaire.ColdFusion.POPAuthFailure
cfset POPError=AuthFailure
/cfcatch
 
!--- i set an error if the mail server cannot be reached ---
cfcatch type=COM.Allaire.ColdFusion.POPConnectionFailure
cfset POPError=ConnectionFailure
/cfcatch
 
!--- i catch an error if there are no messages ---
cfcatch type=Any
/cfcatch
 
/cftry

Tyler

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



QUESTION: XML feed

2001-12-04 Thread Emily C. Grossman

I am pulling a file from a company that has set up an xml feed. Needless to 
say, sometimes the file is full of errors -- things like p and no end  
cause my system to break. At first I was using ReReplace and Replace to read 
the file and replace the non wddx code but now it seems as if I have to plan 
for every potential mistake they could possibly make since I may get junk like 
above.

Does anyone have a solution to problems like the one above? Is there any 
magical tool I can use? As long as their XMLfeed is clean, I can run my 
rereplaces and replaces and turn their non-wddx into wddx but I can't plan for 
these types of situations, at least not how I'm currently doing it..

~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Webstore

2001-12-04 Thread Lewis Sellers

On Tue, 4 Dec 2001 14:04:50 -0500, Benjamin S. Rogers [EMAIL PROTECTED]
wrote:

The CFTRANSACTION tag is used to bundle multiple queries into a single
transaction so that the queries can be committed or rolled back as a group.
This is a fundamental aspect of SQL itself: it is not a short cut.

Dito. The purpose of the sql transaction command as he said is to make
groups of sql statements what is technically called atomic. This is
absolutely crucial in real-world enterprise environments.

Any database that doesnt support transaction rollbacks I tend to sneer
at as being a toy.

--min
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF Webstore

2001-12-04 Thread Dave Watts

 The CFTRANSACTION tag is used to bundle multiple queries into a 
 single transaction so that the queries can be committed or rolled 
 back as a group. This is a fundamental aspect of SQL itself: it 
 is not a short cut.

I think that what Jon meant (and I kind of agree with him, if this is in
fact what he meant) is that transactional processing should be handled
within the database, as opposed to within the application. So, rather than
using CFTRANSACTION, you'd put your transactional processing within a stored
procedure, and simply call that from CF.

Of course, maybe he meant something else entirely.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: QUESTION: XML feed

2001-12-04 Thread BILLY CRAVENS

I would try to work with them to clean up the XML file at the source -
that's the key to the wonderful world of XML: syntactically valid XML.

- Original Message -
From: Emily C. Grossman [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 1:54 PM
Subject: QUESTION: XML feed


 I am pulling a file from a company that has set up an xml feed. Needless
to
 say, sometimes the file is full of errors -- things like p and no end 
 cause my system to break. At first I was using ReReplace and Replace to
read
 the file and replace the non wddx code but now it seems as if I have to
plan
 for every potential mistake they could possibly make since I may get junk
like
 above.

 Does anyone have a solution to problems like the one above? Is there any
 magical tool I can use? As long as their XMLfeed is clean, I can run my
 rereplaces and replaces and turn their non-wddx into wddx but I can't plan
for
 these types of situations, at least not how I'm currently doing it..

 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: SPAM lists?

2001-12-04 Thread BILLY CRAVENS

I was looking at automating my server-side SPAM filtering.  Are there 
any resources for pulling known SPAM addresses?  Free, as in beer?

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: QUESTION: XML feed

2001-12-04 Thread Alex

Cache good feeds and if there is ever an error display the most recent
cached file.

On Tue, 4 Dec 2001, Emily C. Grossman wrote:

 I am pulling a file from a company that has set up an xml feed. Needless to 
 say, sometimes the file is full of errors -- things like p and no end  
 cause my system to break. At first I was using ReReplace and Replace to read 
 the file and replace the non wddx code but now it seems as if I have to plan 
 for every potential mistake they could possibly make since I may get junk like 
 above.
 
 Does anyone have a solution to problems like the one above? Is there any 
 magical tool I can use? As long as their XMLfeed is clean, I can run my 
 rereplaces and replaces and turn their non-wddx into wddx but I can't plan for 
 these types of situations, at least not how I'm currently doing it..
 
 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OT: SPAM lists?

2001-12-04 Thread Michael Dinowitz

Other than black hole lists, I don't know of any. I read of a distributed 
system being worked up on slashdot a few days back. I was going to suggest 
the same thing for iMS users to catalog email addresses, subjects, etc. of 
spam to be blocked.

At 03:15 PM 12/4/01, you wrote:
I was looking at automating my server-side SPAM filtering.  Are there
any resources for pulling known SPAM addresses?  Free, as in beer?


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



  1   2   >