No Subject

2001-04-12 Thread Lord Skulbite

Could anyone tell me why I'm getting this error connecting to the mail 
server? It's happening all the time and I do not understand why.

"Error","TID=688","04/12/01","02:13:52","Error occurred while attempting to 
connect to mail server. - [PT_NOTCONNECTED] Attempt made to use a session 
that is not the PT_CONNECTED state (Send attempted with closed 
connection)  - Server = 'mail.cmfc.net'"
"Error","TID=688","04/12/01","02:13:52","Message not delivered due to error 
in establishing connection - Undelivered message file archived to 
'C:\CFUSION\MAIL\UNDELIVR\CFM46B.TMP'"

The CFMAIL tags as follows:


CFQUERY NAME="Email" DATASOURCE="cmfc"
SELECT * FROM EmailList
/CFQUERY

CFMAIL
   TYPE="HTML"
   TO="#email#"
   FROM="[EMAIL PROTECTED]"
   SUBJECT="#Form.Subject#"
   SERVER="mail.cmfc.net"
   PORT="25"
#Form.Message#
/CFMAIL

Thanks.

Richard


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Novice

2001-04-12 Thread kishore

Hi Brian,

Try this URL.

http://www.allaire.com/documents/cf4/cfml_language_reference/contents.html -

I have downloaded this tutorial  is very fine. After downloading, just
notify me.

Regards
kishore

- Original Message -
From: [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 9:46 PM
Subject: CF Novice


 I have recently been learning ColdFusion through maintenance of websites
 that use ColdFusion. I have the basics down but really would like to
expand
 on my knowledge of ColdFusion. Do any of you, have a good recommendation
for
 book, study guide or tutorial web site?

 Thanks!
 Brian Hasselback
 [EMAIL PROTECTED]
 http://www.intent.net
 Web Hosting  Development



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Email software

2001-04-12 Thread Paul's Mail

We have found the mereak mail server at www.icewarp.com to be very stable
and excellent value for money. We have no commercial connection.

Paul Burgess

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 7:05 PM
 To: CF-Talk
 Subject: Email software





 Additional Header Information:
 Received: from www.houseoffusion.com ([207.31.122.140]) by
 inside.pgi.com (Lotus
 SMTP MTA v4.6.6  (890.1 7-16-1999)) with SMTP id
 85256A2B.0060A2E4; Wed, 11 Apr
 2001 13:35:31 -0400
 Received: from houseoffusion.com ([207.31.122.140])
   by www.houseoffusion.com (Post.Office MTA v3.5.3
 release 223
   ID# 0-54969U100L100S0V35) with ESMTP id com
   for [EMAIL PROTECTED];
   Wed, 11 Apr 2001 13:34:22 -0400
 Date: Wed, 11 Apr 2001 12:30:53 -0500
 From: "Marcus" [EMAIL PROTECTED]
 Message-id: [EMAIL PROTECTED]
 References:
 3312CFEA8474D411BAB600508B9587B2482FDF@S0001EXC0007
 Subject: RE: CF5 Beta Program
 Reply-To: [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Content-Type: text/plain


 -




 Hi,
 I am looking for an email software which include SMTP and POP
 server. Do you
 guys have any suggestion which product is good?

 Thank you for any suggestion.

 YC



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



printing

2001-04-12 Thread Heidi Belal

Hi all,
Could someone help me suggestions of the best way and
how i can do this:
I have a page that i need to have filled out with cold
fusion variables and then have it printed when the
person press the print button.
So for example...
A form is filled out by the user..he presses submit
and the info goes into the database. Later someone
wants to print a report...they retrieve the info from
the database and a report is formed such as
"your request dated #date# was approved by
#approvedby#...blah blah"...now i want that report to
be printed out.  Can i make it a .pdf? and how?
Thanks!
Heidi

=
Heidi Belal
ICQ# 32127109
http://m3.easyspace.com/hmbelal

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: W2K Pro, IE5.5, .doc files and duplicate file extensions

2001-04-12 Thread Aidan Whitehall

Windows 2000 Professional, IE 5.5, Word 2000, CFAS 4.01.


I'm seeing some slightly weird behaviour when trying to make a Word document
available for download from a web site. I've tried naming the Word document
in several different formats to see what the difference is.

http://www.netshopperuk.co.uk/applicationsservices/NetPayments/help.cfm

Scroll down to the four links to the Word document.

If you right-click and select "Save As" on any of the files, the file name
is displayed in the "Save As" dialogue as ".doc.doc", where the
extension is duplicated. The Network Admin's looked on TechNet and found an
article that said (something to the effect of) this happens with file types
that aren't registered on the server.

Does the Network Admin have to install Word on the server in order to
overcome this?



Bonus question...
===
If you click on the first file, it's displayed in the browser ok.
If you click on the second file, it displays a "Windows Installer" dialogue
box that changes to a "Windows Office 2000 Premium" dialogue box saying "The
feature you are trying to use is on a CD-ROM... etc etc"
If you click on the third and fourth files, they are displayed ok.

Do you know what's differerent about file 2?



Thanks in advance.

-- 
Aidan Whitehall [EMAIL PROTECTED]
Netshopperuk
Telephone +44 (01744) 648650

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Procedure and Function (Rambling thought)

2001-04-12 Thread Xing Li

I kinda think the new CF functions as poor man's objects without the
protection and inheritance stuff.

I don't agree with the fact that objects are too complex are not suited for
scripting languages. If used right, they actually save tons of work/time
long term and can actually make our programs run faster especially if the
app is pretty large in scale. After all, objects are created to ease our
programming headaches if used in the right places.

CF/Allaire want to capture the enterprise market which is why they have all
the loadbalancing intergration so that they can make huge profit margins on
the Enterprise editions and the bloated/hugely complex enterprise level
projects demand objects to make life a lot easier.

I wouldn't be surprised if the spotlight feature for CF 6.0 (hopefully the
JSP/pharoh? version) would be objects. It's just a matter of when not if in
my mind.

xing

- Original Message -
Subject: RE: Procedure and Function (Rambling thought)


 I agree! I dont know what the big fuss is about... CF Tags are functions
as
 far as anyone should be concerned - just because they're not implemented
in
 exactly the same way VB, Java, etc implements functions means didley
 squat... I'll be the first to admit that I'am sometimes frustrated by how
CF
 Tags are carried out but more often then not i thank god that they work as
 they do, it makes life so much easier when your output is HTML.

 As for objects - Anyone thinking of using a scripting language to create a
 program that requires objects should be taken out and given a good talking
 to. CF is great as the glue that holds together all the objects that we
need
 to create effective websites (DB connections, Email, Files, Forms, etc)
but
 by no means would i use CF to create something as complicated as a credit
 card transaction gateway - Java is much more nicely designed to do this.

 In short, i think CF has been brilliantly written to create websites
 quickly, effectively and under budget - an equivilent website could take
as
 long as 3 times longer if written in C++ or Java... The right tool for the
 right job - you dont complain when your drill doesnt perform well as a
 hammer.

 Regards,
 Javier

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 2:29 PM
  To: CF-Talk
  Subject: RE: Procedure and Function (Rambling thought)
 
 
  Sorry, but my wandering mind's gotten the better of me and I've got a
  concept to throw out for those who might want to chew on an idea (no
  spitting, please... we just washed the floors).
 
  From what I remember from my CS classes (my degree is in
  Electronics, not
  CS) functions and procedures are devices that use either an
  individual or
  multiple attributes to perform some computation.  In the case
  of a function,
  at least one value is returned to the calling process.
  Forgive me if I'm
  reaching a bit here, but doesn't that remind anyone else of a
  custom tag or
  CFX tag?  A procedure doesn't return a value, but simply
  performs an action
  or actions on attributes passed to it.  Taking a bigger
  stretch, doesn't
  that sound a bit like an include?
 
  Now I know, this is getting abstract, but it seems to my
  thought process
  that Allair actually did provide us with a mechanism for
  performing external
  functions that can be used repetively across a wide array of
  applications
  and scopes.  So to throw a kink into the wheel, yes, Cold
  Fusion does have
  functions.  We simply call them something different: Custom Tags.
 
  As for implementing Object Oriented programming concepts,
  that may be a bit
  outside the bounds of what can be done.  In all honesty,
  that's okay.  I
  personally hated OOP... especially when I had a PhD that was
  more interested
  in researching multiprocessor programming concepts than
  teaching, but I
  digress.
 
  Sorry for the rant and the ramble... 19 days nicotine free,
  living with
  in-laws and looking at buying my first house.  All this and I
  haven't had a
  drop of alcohol (yet)!
 
  Enjoy!
  C. Hatton Humphrey
  Cold Fusion Developer
  Fisher, Towne  Associates
  http://www.fishertowne.com
  [EMAIL PROTECTED]
 
  -Original Message-
  Hi Haryono,
 
  if you refer to your previous posts on this issue, and other peoples
  subsequent replies ...
  I'm sure you will notice that CF isn't OOP and we do not make any
  Your post :
  http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49020.html
  My reply :
  http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49023.html
  Please take notice of answers when you post a question.
 
   Hallo,
   How can i use procedure and function in ColdFusion?
   Is this possible to use OOP in ColdFusion?
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: 

RE: printing

2001-04-12 Thread Craig . Wilson

You need to purchase the full version of Adobe Acrobat.  This allows for
dynamic publishing of .pdf's for publishing, printing and downloading.



-Original Message-
From: Heidi Belal [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 10:13
To: CF-Talk
Subject: printing


Hi all,
Could someone help me suggestions of the best way and
how i can do this:
I have a page that i need to have filled out with cold
fusion variables and then have it printed when the
person press the print button.
So for example...
A form is filled out by the user..he presses submit
and the info goes into the database. Later someone
wants to print a report...they retrieve the info from
the database and a report is formed such as
"your request dated #date# was approved by
#approvedby#...blah blah"...now i want that report to
be printed out.  Can i make it a .pdf? and how?
Thanks!
Heidi

=
Heidi Belal
ICQ# 32127109
http://m3.easyspace.com/hmbelal

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: What and why are these errors happening?

2001-04-12 Thread Bud

On 4/11/01, Peter J. MacDonald penned:
Bud,

I think the single quotes need to be double quotes.

cfif not isdefined('session.id') changed to

cfif not isdefined("session.id")

Single quotes have worked fine for me for 2 years. The default 
session.id gets set fine when visitors first come to the site. The 
site actually gets thousands of hits a day and I only get this error 
maybe 3 or 4 times, but I'm trying to understand how it can happen.
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE:

2001-04-12 Thread Philip Arnold - ASP

 Could anyone tell me why I'm getting this error connecting to the mail
 server? It's happening all the time and I do not understand why.

 "Error","TID=688","04/12/01","02:13:52","Error occurred while
 attempting to
 connect to mail server. - [PT_NOTCONNECTED] Attempt made to use a session
 that is not the PT_CONNECTED state (Send attempted with closed
 connection)  - Server = 'mail.cmfc.net'"
 "Error","TID=688","04/12/01","02:13:52","Message not delivered
 due to error
 in establishing connection - Undelivered message file archived to
 'C:\CFUSION\MAIL\UNDELIVR\CFM46B.TMP'"

 The CFMAIL tags as follows:

 CFQUERY NAME="Email" DATASOURCE="cmfc"
 SELECT * FROM EmailList
 /CFQUERY

 CFMAIL
TYPE="HTML"
TO="#email#"
FROM="[EMAIL PROTECTED]"
SUBJECT="#Form.Subject#"
SERVER="mail.cmfc.net"
PORT="25"
 #Form.Message#
 /CFMAIL

Firstly, I'm surprised your code doesn't crash... you're building a query
called Email and then trying to send an email To that query

If you want to send an email to email addresses from a query, then you must
do it this way;
cfmail to="#EmailField#" query="QueryName"

Personally I wouldn't name the query "Email" when it can be confused with a
field name, try;
cfquery name="qryEmail" datasource="cmfc"
select Email
from EmailList
/cfquery
cfmail to="#Email#" query="qryEmail" from="[EMAIL PROTECTED]"
SUBJECT="#Form.Subject#" SERVER="mail.cmfc.net" PORT="25"
type="HTML"#Form.Message#/CFMAIL

That should send to everyone in the list as long as the field is called
Email

HTH

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Link to download .jpg or gif

2001-04-12 Thread Philip Arnold - ASP

 I am looking for a solution to a downloading problem i am having with a
 link.  I am thumbnailing images, and am wanting to have a "download" link
 next to the thumbnail that will automatically open up the 'save
 to' window.
 Obvioulsy if i just link directly to the .jpg file, the download
 window will
 not pop up, and it just redirects me to a blank page in my default browser
 and shows the full size image.  Any suggestions??

Since browsers naturally display all file extensions that it knows should be
displayed, when you link to a graphic it'll try to show it not save it

What you need to do is pass the image with a different extension (one that
the browser won't understand) and that should display the "Save As" dialog

What I'd do is have a CF template that CFcontent the image and gives it a
dummy name, so you can have a hyperlink like
ImageDownload.cfm/myImage.gif/myImage.gif-file

But then users will have to change the extension themselves - requires some
user intelligence

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: W2K Pro, IE5.5, .doc files and duplicate file extensions

2001-04-12 Thread Aidan Whitehall

Just read this... Word 2000 is installed on my machine, yet I'm still
getting the duplicate extension. Seems a bit daft... does anyone know of a
way around it, *other* than zipping up the file (don't want to have to
explain to users how to unzip it) or saving it as a different file type?


==
Extra File Extension May Be Added to Downloaded Files [Q231755]
  
PSS ID Number: Q231755
Article last modified on 01-04-2001
 
WINDOWS:5
 

==

---
The information in this article applies to:
 
 - Microsoft Internet Explorer version 5 for Windows 95 
- Microsoft Internet Explorer version 5 for Windows 98 
- Microsoft Internet Explorer version 5 for Windows NT 4.0 
- Microsoft Windows 98 Second Edition 

---
 
SYMPTOMS

 
When you download a file using Internet Explorer, a duplicate file extension
may
be added to the file name.
 
CAUSE
=
 
This problem can occur for file types that are not registered in Microsoft
Windows.
 
RESOLUTION
==
 
To resolve this problem, use any of the following methods:
 
Rename the Downloaded File
--
 
Rename the file to include only one extension. For example, if you
downloaded a
file named myfile.doc.doc, rename it to myfile.doc.
 
For information about how to rename a file, click Start, click Help, click
the
Index tab, type "renaming files" (without the quotation marks), and then
click
Display.
 
Hide the File Extensions for Known File Types
-
 
To hide the file extensions for known file types, follow these steps:
 
1. Double-click My Computer, and then click Folder Options on the View menu.
 
2. Click the View tab.
 
3. Under Files and Folders, click to select the "Hide file extensions for
known
  file types" check box.
 
4. Click OK.
 
Register the File Type in Windows
-
 
To register the file type in Windows after you rename the file, follow these
steps:
 
1. Click Start, point to Programs, and then click Windows Explorer.
 
2. Browse to the downloaded file that includes the extension you want to
  register.
 
3. Press and hold down the SHIFT key, and then right-click the file.
 
4. Click Open With.
 
5. If you are prompted to enter a description for the file type, do so. In
the
  "Choose the program you want to use" box, click the program you want to
use
  to register this file type.
 
6. Click to select the "Always use this program to open this file" check
box.
 
7. Click OK.
 
STATUS
==
 
Microsoft has confirmed this to be a problem in the Microsoft products
listed at
the beginning of this article.
 
Additional query words:
 
==
Keywords  : kbenv msiew95 msient msiew98 
Version   : WINDOWS:5
Issue type: kbprb

=
Copyright Microsoft Corporation 2001.




-- 
Aidan Whitehall [EMAIL PROTECTED]
Netshopperuk
Telephone +44 (01744) 648650

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: IsDefined('') v. cfset

2001-04-12 Thread Will Swain

I'm not sure. I understood that for such variables you should use cfparam,
but I guess in reality there would probably be little or no performance gain
unless you were using it alot.

-Original Message-
From: Bill Davies [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 22:17
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


So would cfparam be cheaper than just doing a cfset anyway - say for an
Application variable whose value is constant?

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 17:27
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


Yup, CFPARAMs in your application.cfm file will 'set' empty variables, which
you can fill later.

That way, you don't need to check for their existence, just see what they
are.

Cheers

Will

-Original Message-
From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:29
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


This doesn't answer your question directly, but if you are really going to
test for the existence of a variable, and create it if it doesn't exist, I'd
suggest using cfparam which will accomplish both of those things in one
step.  I only used IsDefined if I want to check for the existence of a
variable, and I'm NOT going to create it if it doesn't exist.

Bob

-Original Message-
From: Bill Davies [mailto:[EMAIL PROTECTED]]
Sent: April 11, 2001 10:12 AM
To: CF-Talk
Subject: IsDefined('') v. cfset


Anyone have any idea whether an IsDefined('') 'costs' more than a cfset?

i.e. Which is more work for the server - to test for the existence of a
variable (and create it if it doesn't exist) or create or overwrite it
anyhow?

Thanks.


Bill Davies
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: when is CF5 release? (a little OT)

2001-04-12 Thread Philip Arnold - ASP

 Allaire claims that the latest CF builds are dramatically faster and
 especially on linux. I have not done any formal tests so I can't say it is
 true or not. But I can safely say that CF is now finally on a bit of diet.
 Memory usage has been down significantly across the board on 24/7 servers
 pumping out loads of pages...

Our CF5 Beta definitely runs faster than CF4.5.2 on a similar intranet
machine - actually out-performs CF4 on a faster processor machine

 I would personally invest in CF 5.0's features based on how
 stable the betas have been.

We're writing code that currently loops a lot and will use Query a Query
once it's released

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: when is CF5 release? (a little OT)

2001-04-12 Thread Neil Clark

Wasn't even aware there was a 4.5.2?  thought it was 4.5.1 SP2?

N



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: IsDefined('') v. cfset

2001-04-12 Thread Bill Davies

Thanks

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 11:01
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


I'm not sure. I understood that for such variables you should use cfparam,
but I guess in reality there would probably be little or no performance gain
unless you were using it alot.

-Original Message-
From: Bill Davies [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 22:17
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


So would cfparam be cheaper than just doing a cfset anyway - say for an
Application variable whose value is constant?

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 17:27
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


Yup, CFPARAMs in your application.cfm file will 'set' empty variables, which
you can fill later.

That way, you don't need to check for their existence, just see what they
are.

Cheers

Will

-Original Message-
From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:29
To: CF-Talk
Subject: RE: IsDefined('') v. cfset


This doesn't answer your question directly, but if you are really going to
test for the existence of a variable, and create it if it doesn't exist, I'd
suggest using cfparam which will accomplish both of those things in one
step.  I only used IsDefined if I want to check for the existence of a
variable, and I'm NOT going to create it if it doesn't exist.

Bob

-Original Message-
From: Bill Davies [mailto:[EMAIL PROTECTED]]
Sent: April 11, 2001 10:12 AM
To: CF-Talk
Subject: IsDefined('') v. cfset


Anyone have any idea whether an IsDefined('') 'costs' more than a cfset?

i.e. Which is more work for the server - to test for the existence of a
variable (and create it if it doesn't exist) or create or overwrite it
anyhow?

Thanks.


Bill Davies
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: IsDefined('') v. cfset

2001-04-12 Thread Jon Hall

cfparam will be more expensive than cfset, just because it tests forthe
existence of a variable before setting it.
However it's like comparing apples to oranges. They are used for different
reasons.
If you have a page that may or may not have a variable passed to it, but you
have code on
the page that expects the variable, you dont want to overwrite a legitimate
value from your program with cfset.
In this case, cfparam would be the best choice.

There is also a difference between a variable initialized in the
application.cfm and a true application variable. You wouldn't want to
cfparam a true application variable, since it;s in memory, and you could run
into a situation where multiple people are setting it at the same time.
Initializing variables in the application.cfm is very easy, but if you are
really worried about performace. Putting all of your
constant varaibles in a structure then scoping the structure in the
application scope, will be faster than reinitializing the variable on every
page, at the cost of a little bit of memory.
If you only have a handful of variables that you actually need throughout
the application, the performace his to just cfset them on every page is
minimal, and probably not worth the time it will take to code them better
though. You also have to think about locking with the in memory scopes, like
the application scope.

Lets say you have 30 variables and a high traffic site though, it may then
pay off to optimize, rather than let Moore take care of it ;-)
Here is an example...

In your application.cfm test for the existence of the structure, because
application variables time out.

cflock type="EXCLUSIVE" timeout="5"
cfif NOT isDefined("application.globalVars")
cfset globalVars = structNew()

Then you set all yourvariables here...
cfset globalVars.dsn = "myDSN"
cfset globalVars.password = "password"
...
Then application scope the structure.
cfset application.globalVars = ""
cfset application.globalVars = globalVars
/cfif
/cflock

You can then reference the individual variables throughout your application
with #application.globalVars.dsn#.
This can be made even faster with the use of cfscript too.

jon







- Original Message -
From: "Bill Davies" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 5:17 PM
Subject: RE: IsDefined('') v. cfset


 So would cfparam be cheaper than just doing a cfset anyway - say for
an
 Application variable whose value is constant?

 -Original Message-
 From: Will Swain [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 17:27
 To: CF-Talk
 Subject: RE: IsDefined('') v. cfset


 Yup, CFPARAMs in your application.cfm file will 'set' empty variables,
which
 you can fill later.

 That way, you don't need to check for their existence, just see what they
 are.

 Cheers

 Will

 -Original Message-
 From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 15:29
 To: CF-Talk
 Subject: RE: IsDefined('') v. cfset


 This doesn't answer your question directly, but if you are really going to
 test for the existence of a variable, and create it if it doesn't exist,
I'd
 suggest using cfparam which will accomplish both of those things in one
 step.  I only used IsDefined if I want to check for the existence of a
 variable, and I'm NOT going to create it if it doesn't exist.

 Bob

 -Original Message-
 From: Bill Davies [mailto:[EMAIL PROTECTED]]
 Sent: April 11, 2001 10:12 AM
 To: CF-Talk
 Subject: IsDefined('') v. cfset


 Anyone have any idea whether an IsDefined('') 'costs' more than a cfset?

 i.e. Which is more work for the server - to test for the existence of a
 variable (and create it if it doesn't exist) or create or overwrite it
 anyhow?

 Thanks.


 Bill Davies

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Link to download .jpg or gif

2001-04-12 Thread sebastian palmigiani


How about just putting a link text 'Right click to download' under the
thumbnail.  It's not ideal but it works.

Sebastian

on 4/11/01 10:17 PM, scottw at [EMAIL PROTECTED] wrote:

 I am looking for a solution to a downloading problem i am having with a
 link.  I am thumbnailing images, and am wanting to have a "download" link
 next to the thumbnail that will automatically open up the 'save to' window.
 Obvioulsy if i just link directly to the .jpg file, the download window will
 not pop up, and it just redirects me to a blank page in my default browser
 and shows the full size image.  Any suggestions??
 
 Thanks,
 
 Scott
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Printing, page breaks, and heading info

2001-04-12 Thread Terri Stocke

Paul, thanks for the tip. That's a great idea!

I think now that what I would prefer to do is have the shipping 
address/contact info print at the top of *every* page that prints. I just 
haven't been able to figure out how to do that.

Thanks for the help!

Terri


Original Message Follows
From: Paul Sizemore [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: Printing, page breaks, and heading info
Date: Wed, 11 Apr 2001 14:42:02 -0500

I did an ASP project a while back that required page breaks on print. After
head banging by a lot of people, I came up with the following code.

When printed from "most" browsers, it prints in what looks like page breaks
because of the way browsers try to not break images. If you tie your text
content to an image (that is around 80% of the page height) with a table,
the browser will print what looks to the user as page breaks.

You might need to adjust the height of the spacer, but I think this is the
number that worked in Netscape and IE 3 up.

table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 td width="10"img src="spacer.gif" width="1" height="450"/td
 tdPage One Content/td
   /tr
/table

table width="100%" border="0" cellspacing="0" cellpadding="0"
   tr
 td width="10"img src="spacer.gif" width="1" height="450"/td
 tdPage Two Content/td
   /tr
/table


Paul Sizemore

Finish Line
3308 N Mitthoeffer Rd
Indianapolis, IN 46235
W: 317-899-1022 ext 3516


-Original Message-
From: Terri Stocke [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 2:15 PM
To: CF-Talk
Subject: Re:Printing, page breaks, and heading info

Okay, I moved it and tried it in the body, and then in a paragraph tag. Both
instances caused the blue screen when I tried to print (it still printed,
but killed my PC).

So, I guess I either need to find a way to print the top info I want on
every page, or if that is not possible with just CF and the browser, dump
the info to PDF per Adrian's suggestion and see if I can manipulate it that
way...

Thanks for the help!


Original Message Follows
From: [EMAIL PROTECTED] (Carol Bluestein)
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: Re:Printing, page breaks, and heading info
Date: Mon, 09 Apr 2001 09:42:02 -0400

Believe you can't use the style=page-break etc. inside a table.
So you have to count rows and end your table, put in the
break, and start a new table for each page.


Carol L. Bluestein
Senior Programmer
NYS Office of Real Property
518-486-6335
[EMAIL PROTECTED]


Reply Separator
Subject:Printing, page breaks, and heading info
Author: [EMAIL PROTECTED]
Date:   4/9/01 12:48 PM

Hey all,

I have a shipping and receiving application that allows employees to
generate a shipping request via the web. The shipping dept. would like that
form to be printed out by the user, but they want one of two things when
this happens:

1) Either only allow the maximum number of items that will print on one
page, and prompt the user to fill out a second form for additional items; OR

2) Automatically have the app insert a break between the item in the last
row of the table and the next table row on the next page, but ALSO make sure
that the shipping address and other info is ALSO printed on each subsequent
page.

I favor the second method, since it is less hassle for the user, and it
would be easier to just insert a break in the table than to try to guess how
many characters a user might enter onto the page (virtually impossible to
determine how many pages they will need).

After searching the archives, I found the snippet I thought would work:
TABLE STYLE="page-break-before:always". I tried this in both the body tag
and in my table tag, but each time I used it I got the dreaded blue screen
o' death. I then found and tried a variation: TABLE
STYLE="page-break-inside:avoid. This fixed the blue screen problem, but it
locked up my PC (couldn't even CTRL/ALT/DEL).

I am using Netscape, since most of our employees use it, but I need
something that will work in both Netscape and IE.

So...my question is twofold.

1) Does anyone know of a way to make the table print nicely across pages
without crashing the PC, and

2) Does anyone know how I can force the address/shipping info from the first
page onto all subsequent pages (more important than the first issue, since
regardless of the page break, the table will always print to the next page,
it just won't look as nice without the break.)

As always, thanks for the help!

Terri
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Reveral of a field

2001-04-12 Thread Brian Thornton

Hi,
I have a field with Smith, John as the contents.

I want to display John Smith...

I'm think I get the total length(a), then the charlength of the comma(b).

Take contents b + 1 and subtract that from a equals (c)
Then display the difference of c to a (d)
and then output c after d to the total of the field

Any other ideas?




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Reveral of a field

2001-04-12 Thread Christopher Olive, CIO

you could use the listfirst and listlast functions.  assuming that your
names are alwas Last, First:

CFSET thename = "Smith, John"

CFOUTPUT
#listlast(thename)# #listfirst(thename)#
/CFOUTPUT

make sense?

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-Original Message-
From: Brian Thornton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 7:48 AM
To: CF-Talk
Subject: Reveral of a field


Hi,
I have a field with Smith, John as the contents.

I want to display John Smith...

I'm think I get the total length(a), then the charlength of the comma(b).

Take contents b + 1 and subtract that from a equals (c)
Then display the difference of c to a (d)
and then output c after d to the total of the field

Any other ideas?
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: W2K Pro, IE5.5, .doc files and duplicate file extensions

2001-04-12 Thread JustinMacCarthy

Register the doc extension in File Types in your IIS console.
extension : doc
mimetype : application/msword


JUstin
-Original Message-
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:58 AM
To: CF-Talk
Subject: RE: W2K Pro, IE5.5, .doc files and duplicate file extensions


Just read this... Word 2000 is installed on my machine, yet I'm still
getting the duplicate extension. Seems a bit daft... does anyone know of a
way around it, *other* than zipping up the file (don't want to have to
explain to users how to unzip it) or saving it as a different file type?


==
Extra File Extension May Be Added to Downloaded Files [Q231755]

PSS ID Number: Q231755
Article last modified on 01-04-2001

WINDOWS:5


==
--
--
---
The information in this article applies to:

 - Microsoft Internet Explorer version 5 for Windows 95
- Microsoft Internet Explorer version 5 for Windows 98
- Microsoft Internet Explorer version 5 for Windows NT 4.0
- Microsoft Windows 98 Second Edition
--
--
---

SYMPTOMS


When you download a file using Internet Explorer, a duplicate
file extension
may
be added to the file name.

CAUSE
=

This problem can occur for file types that are not registered in Microsoft
Windows.

RESOLUTION
==

To resolve this problem, use any of the following methods:

Rename the Downloaded File
--

Rename the file to include only one extension. For example, if you
downloaded a
file named myfile.doc.doc, rename it to myfile.doc.

For information about how to rename a file, click Start, click Help, click
the
Index tab, type "renaming files" (without the quotation marks), and then
click
Display.

Hide the File Extensions for Known File Types
-

To hide the file extensions for known file types, follow these steps:

1. Double-click My Computer, and then click Folder Options on the
View menu.

2. Click the View tab.

3. Under Files and Folders, click to select the "Hide file extensions for
known
  file types" check box.

4. Click OK.

Register the File Type in Windows
-

To register the file type in Windows after you rename the file,
follow these
steps:

1. Click Start, point to Programs, and then click Windows Explorer.

2. Browse to the downloaded file that includes the extension you want to
  register.

3. Press and hold down the SHIFT key, and then right-click the file.

4. Click Open With.

5. If you are prompted to enter a description for the file type, do so. In
the
  "Choose the program you want to use" box, click the program you want to
use
  to register this file type.

6. Click to select the "Always use this program to open this file" check
box.

7. Click OK.

STATUS
==

Microsoft has confirmed this to be a problem in the Microsoft products
listed at
the beginning of this article.

Additional query words:

==
Keywords  : kbenv msiew95 msient msiew98
Version   : WINDOWS:5
Issue type: kbprb
==
==
=
Copyright Microsoft Corporation 2001.




--
Aidan Whitehall [EMAIL PROTECTED]
Netshopperuk
Telephone +44 (01744) 648650


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Reveral of a field

2001-04-12 Thread Brian bouldernet

Cool. Thanks.
- Original Message -
From: "Christopher Olive, CIO" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 4:55 AM
Subject: RE: Reveral of a field


 you could use the listfirst and listlast functions.  assuming that your
 names are alwas Last, First:

 CFSET thename = "Smith, John"

 CFOUTPUT
 #listlast(thename)# #listfirst(thename)#
 /CFOUTPUT

 make sense?

 chris olive, cio
 cresco technologies
 [EMAIL PROTECTED]
 http://www.crescotech.com



 -Original Message-
 From: Brian Thornton [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 7:48 AM
 To: CF-Talk
 Subject: Reveral of a field


 Hi,
 I have a field with Smith, John as the contents.

 I want to display John Smith...

 I'm think I get the total length(a), then the charlength of the comma(b).

 Take contents b + 1 and subtract that from a equals (c)
 Then display the difference of c to a (d)
 and then output c after d to the total of the field

 Any other ideas?

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Reveral of a field

2001-04-12 Thread Mark Woods

trim(listLast(field))  " "  trim(listFirst(field))

At 12:47 PM 4/12/2001, you wrote:
Hi,
I have a field with Smith, John as the contents.

I want to display John Smith...

I'm think I get the total length(a), then the charlength of the comma(b).

Take contents b + 1 and subtract that from a equals (c)
Then display the difference of c to a (d)
and then output c after d to the total of the field

Any other ideas?





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Oracle - Advanced Datatypes

2001-04-12 Thread Tim Painter

Hi all!

I am about to embark on a project using Oracle.  The dba has a table with a couple of 
columns that are advanced datatypes.   Any tips or tricks to get CF to work with this? 
 (I never used Oracle before until now, so this part is all new to me)

Thanks!
Tim P.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: How to get Julian Date

2001-04-12 Thread Paul Sizemore

Thanks for the help. I'm rewriting some Informix 4gl's in CF.

-Original Message-
From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:43 PM
To: CF-Talk
Subject: RE: How to get Julian Date

cfset JulianDate = "#numberformat(dayofyear(Now()), 000)#"

This should do it,
Adrian


-Original Message-
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]

How would I get the julian date for today, besides using the CF_Julian tag?

Paul
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: How to get Julian Date

2001-04-12 Thread DeVoil, Nick

Julian dates are normally based on something in the distant past,
so if you want it to work with existing data you need to make sure
the base date is the same. I think that the base date can be
configured within Informix.

Nick

-Original Message-
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 1:31 PM
To: CF-Talk
Subject: RE: How to get Julian Date


Thanks for the help. I'm rewriting some Informix 4gl's in CF.

-Original Message-
From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:43 PM
To: CF-Talk
Subject: RE: How to get Julian Date

cfset JulianDate = "#numberformat(dayofyear(Now()), 000)#"

This should do it,
Adrian


-Original Message-
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]

How would I get the julian date for today, besides using the CF_Julian tag?

Paul
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Is WDDX alive well ?

2001-04-12 Thread Tracy Bost

Before I jump into Allaire's WDDX  SDK, I'm wondering if this is still a platform that 
is being progressed.
The web site www.wddx.org doesn't look like its been updated in 2 or 3 years.

 Thanks for any feedback and would love to hear from anyone that's using it to 
syndicate content to perl  asp sites.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLDAP problem

2001-04-12 Thread Frank Gragnano

Good luck with that.  I've been asking users of this forum about CFLDAP for
a week now.  No one seems to know.  I was also able to connect to Bigfoot,
and can not connect to my LDAP server.  Wish you the best.

-Original Message-
From: Melissa Fraher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:29 PM
To: CF-Talk
Subject: CFLDAP problem


Hello.
I get the following error when trying to use CFLDAP to connect to our
LDAP server:

---
Error Occurred While Processing Request

 Error Diagnostic Information

 CFLDAP

 No such object
---

Here is the code:

!---Code Example---

CFLDAP
NAME="TestUsers"
SERVER="myserver.xxx.xxx"
ACTION="QUERY"
ATTRIBUTES="subschemasubentry"
SCOPE="BASE"
FILTER="objectclass=*"
START=""
USERNAME="SomeUsername"
PASSWORD="SomePassword" 

cfoutput query="TestUsers"
DN: Root DSEbr
Subschemasubentry: #subschemasubentry#brbr
/cfoutput


Does anyone have any advice on this?  I read in past postings that
removing the password would work, but not in this case.  Also, I was
able to get the example using ldap.bigfoot.com in the CFDOCS 4.5 to
work.

Thank you for any help.

Melissa
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Website

2001-04-12 Thread Dave f

You will need a 2-3 day intro course for the basics (creating, retrieving,
displaying content), after that it gets harder.

- Original Message -
From: "Javier Woodhouse" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 9:17 PM
Subject: RE: CF Website


 Just a quick question on spectra - how hard is it to pick up if you have
 farily strong CF skills?

  -Original Message-
  From: David Hannum [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 11:18 AM
  To: CF-Talk
  Subject: Re: CF Website
 
 
  Spectra (but it ain't FREE)
 
  Dave
 
 
  - Original Message -
  From: Parker, Kevin [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Wednesday, April 11, 2001 8:55 PM
  Subject: CF Website
 
 
  
   Does anyone now of any CF based systems/products that
  create a website
   purely and entirely from a backend e.g. www.phpnuke.org
  
   
  
   Kevin Parker
   Web Services Manager
   WorkCover Corporation
  
   [EMAIL PROTECTED]
  
   www.workcover.com
  
   p: +61 8 82332548
   f: +61 8 82332000
   m: 0418 800 287
  
  
  
  
  
  
  **
  **
   This e-mail is intended for the use of the addressee only.
  It may contain
   information that is protected by legislated confidentiality
  and/or is
   legally privileged. If you are not the intended recipient you are
  prohibited
   from disseminating, distributing or copying this e-mail. Any opinion
   expressed in this e-mail may not necessarily be that of the
  WorkCover
   Corporation of South Australia. Although precautions have
  been taken, the
   sender cannot warrant that this e-mail or any files
  transmitted with it
  are
   free of viruses or any other defect.
   If you have received this e-mail in error, please notify the sender
   immediately by return e-mail and destroy the original e-mail and any
  copies.
  
  **
  **
  
  
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



disabling back or second insert

2001-04-12 Thread Smith, Daron

I have a registration form, that queries initially to make sure that the
registrant is not already registered, so it eliminates people from
registering more than one time if they come back to the site, however if
they submit the form and do not think anything has happened, they can use
their back button, hit the submit button and the query does another insert
and I end up with multiple records in my DB.  What is the best way of
keeping them from doing this?  An expiring cookie? Or is there javascript to
eliminate the ability to go back? 

Thanks

Daron J. Smith



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: How to get Julian Date

2001-04-12 Thread bflynn

Some confusion apparent here - 

The word Julian appears in two instances that I know of when referring to
dates.  There is the Julian calendar and Julian dates.

The Julian calendar refers to the original calendar invented by Julius
Ceasar where a year was 365 1/4 days long.  In 1582, Pope Gregory estimated
that the Julian calendar had thrown the calendar off by 10 days and thus
eliminated the dates Oct 5-14, 1852 to correct it.  The new calendar is
known as the Gregorian calendar.  The headaches that we had by the fact that
2000 was not a leap year is part of the same system.  Incidently, the
Gregorian calendar isn't perfect either; A Gregorian year is approximately
12 seconds longer than an astronomical year (the time it takes for the earth
to move around the sun).  However, since it will take another 2000-3000
years before we're even 12 hours off, I don't think anyone is that worried.

Julian dates refer to a data format where months are not counted, only the
day of the year.  Today for example is April 13th 2001, which is the
31+28+31+13=103rd day of the year.  The Julian date then is 2001103.  The
only place that I've ever encountered that uses Julian dates is the military
supply system, I think because they're concerned with how quickly something
can be fufilled and not having to fuss as much over leap years.  However,
given that military supply is a multi billion dollar industry, that probably
big enough to justify knowing about it.

Brian

-Original Message-
From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 8:54 AM
To: CF-Talk
Subject: RE: How to get Julian Date


Julian dates are normally based on something in the distant past,
so if you want it to work with existing data you need to make sure
the base date is the same. I think that the base date can be
configured within Informix.

Nick

-Original Message-
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 1:31 PM
To: CF-Talk
Subject: RE: How to get Julian Date


Thanks for the help. I'm rewriting some Informix 4gl's in CF.

-Original Message-
From: Adrian Cesana [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:43 PM
To: CF-Talk
Subject: RE: How to get Julian Date

cfset JulianDate = "#numberformat(dayofyear(Now()), 000)#"

This should do it,
Adrian


-Original Message-
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]

How would I get the julian date for today, besides using the CF_Julian tag?

Paul
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Weird CF Error

2001-04-12 Thread Edward Chanter

Has anyone seen these before:

~

Error Diagnostic Information
ODBC Error Code = 40001 (Serialization failure)

[Microsoft][ODBC SQL Server Driver][SQL Server]Your transaction (process ID
#15) was deadlocked with another process and has been chosen as the
deadlock victim. Rerun your transaction.

~~

I can't figure out what's causing it. Is it my dbase (SQL 7) or the CF
Server (4.01)

Any help would be most appreciated

best wishes,

  -= Ed


Problems cannot be solved at the same
level of awareness which created them.
   - Albert Einstein
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: disabling back or second insert

2001-04-12 Thread Terry Bader

expire your pages...
I also do a JS location on the action page after the submission page so that
if they hit the reload button, then it wont re=post the form data...


Terry Bader
IT/Web Specialist
EDO Corp - Combat Systems
(757) 424-1004 ext 361 - Work
[EMAIL PROTECTED]   


(757)581-5981 - Mobile
[EMAIL PROTECTED]
icq: 5202487   aim: lv2bounce
http://www.cs.odu.edu/~bader






 -Original Message-
 From: Smith, Daron [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 9:17 AM
 To: CF-Talk
 Subject: disabling back or second insert 
 
 
 I have a registration form, that queries initially to make 
 sure that the
 registrant is not already registered, so it eliminates people from
 registering more than one time if they come back to the site, 
 however if
 they submit the form and do not think anything has happened, 
 they can use
 their back button, hit the submit button and the query does 
 another insert
 and I end up with multiple records in my DB.  What is the best way of
 keeping them from doing this?  An expiring cookie? Or is 
 there javascript to
 eliminate the ability to go back? 
 
 Thanks
 
 Daron J. Smith
 
 
 
 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
 Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



SOT: SQL DTS 7.0---2000

2001-04-12 Thread Dylan Bromby

I'm trying to DTS a database from SQL 7.0 to 2000. I keep getting a message
that either the source or destination is improperly licensed. Yet I can
remote DTS from another machine running SQL 2000 to the SQL 2000 in
question. Is there something I need to do to account for 7.0---2000?

I think there's a DB detach/attach function too...any recommendations on how
to just copy the DB file over and re-attach it?




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLDAP problem

2001-04-12 Thread Douglas Knudsen



I have not found much documentation on this tag either.  I was able to
use cfldap to query/authenticate against our LDAP server.  The code
below helped me and was posted by a Mike ealier this year.  Check the
archives for this list ath houseoffusion.com.

DK

The full user context could look like this
'o=yahoo,ou=janitors,userid=jan007'
or this
cn=jan007,ou=janitors,o=yahoo'
It depends on how your ldap server is set up.  Here is the code that I
use I my
verification page.  I got it from someone else although I can't
remember who...

I use the username given to me to search the tree for the full
context.

CFLDAP NAME="GetS"
ACTION="Query"
SERVER="xxx.xxx.xxx.xxx"
ATTRIBUTES="dn"
SCOPE="SUBTREE"
START="ou=campus,o=osu_mc"
 FILTER="cn=#LOGINN#"

I check my record to make sure I got a response.  DN is the full
context of thei
r login.

CFOUTPUT QUERY="GETS"CFSET USERN= #DN#/CFOUTPUT
CFOUTPUTCFSET P= '#FORM.P#'/CFOUTPUT
CFIF ISDEFINED('usern')

Within this cftry I take their DN and password and plug it in to the
query Make
sure you put the dn in the start field.  If there are any errors its
because the
y didn't match.  If I get no records then it didn't work either.  If I
get one r
ecord that me
ans the username and password are correct.

 CFTRY
 CFLDAP NAME="auth"
 ACTION="Query"
 SERVER="xxx.xxx.xxx.xxx"
 ATTRIBUTES="cn"
 SCOPE="SUBTREE"
  PASSWORD="#Password#"
  USERNAME="#variables.usern#"
  START="#variables.usern#"
  CFCATCH TYPE="Any"
   CFLOCATION URL="login.cfm?BAD=y" ADDTOKEN="NO"
  /CFCATCH
 /CFTRY
 CFIF #AUTH.RECORDCOUNT# IS 0
  CFLOCATION URL="login.cfm?WUSER=NO" ADDTOKEN="NO"
 CFELSEIF #AUTH.RECORDCOUNT# IS 1
  CFQUERY NAME="SESSION" DATASOURCE="assets"
   UPDATE tblsessions
   SET LOGIN = '#LOGINN#',
   LOGGEDIN = 'YES'
   WHERE IDNUMBER= #SESSION.USER_NAME#
  /CFQUERY
  CFLOCK TIMEOUT="30" NAME="#SESSION.LOGIN#"
   CFSET SESSION.LOGIN="#LOGINN#"
  /CFLOCK
  CFOUTPUTCFLOCATION URL="
  http://www.surgery.medctr.ohio-state.edu#VARIABLES.
P#" ADDTOKEN="NO"/CFOUTPUT
 CFELSE
  CFLOCATION URL="login.cfm?OPPS=NO" ADDTOKEN="NO"
 /CFIF
/CFIF

Hope this helps.

mike




From: [EMAIL PROTECTED] AT INTERNET on 04/12/2001 09:07 AM

To:   [EMAIL PROTECTED] AT INTERNET@CCMAIL
cc:(bcc: Douglas Knudsen/ATL/ALLTELCORP)

Subject:  RE: CFLDAP problem


Good luck with that.  I've been asking users of this forum about
CFLDAP for
a week now.  No one seems to know.  I was also able to connect to
Bigfoot,
and can not connect to my LDAP server.  Wish you the best.

-Original Message-
From: Melissa Fraher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:29 PM
To: CF-Talk
Subject: CFLDAP problem


Hello.
I get the following error when trying to use CFLDAP to connect to our
LDAP server:

---
Error Occurred While Processing Request

 Error Diagnostic Information

 CFLDAP

 No such object
---

Here is the code:

!---Code Example---

CFLDAP
NAME="TestUsers"
SERVER="myserver.xxx.xxx"
ACTION="QUERY"
ATTRIBUTES="subschemasubentry"
SCOPE="BASE"
FILTER="objectclass=*"
START=""
USERNAME="SomeUsername"
PASSWORD="SomePassword" 

cfoutput query="TestUsers"
DN: Root DSEbr
Subschemasubentry: #subschemasubentry#brbr
/cfoutput


Does anyone have any advice on this?  I read in past postings that
removing the password would work, but not in this case.  Also, I was
able to get the example using ldap.bigfoot.com in the CFDOCS 4.5 to
work.

Thank you for any help.

Melissa
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: when is CF5 release? (a little OT)

2001-04-12 Thread Philip Arnold - ASP

 Wasn't even aware there was a 4.5.2?  thought it was 4.5.1 SP2?

D'OH - you know what I mean...

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Scheduled File Transfers

2001-04-12 Thread Dennis Powers

Gene,

I found a utility that I use for mirroring files and directories between two
locations with either ftp or via lan. It's called Directory Monitor
http://www.directorymonitor.com/ and it wirks quite well.



Best Regards,

Dennis Powers
UXB Internet
(203) 879-2844
http://www.uxbinfo.com/

-Original Message-
From: Gene Kraybill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 7:41 PM
To: CF-Talk
Subject: OT: Scheduled File Transfers

We need to automate a daily file transfer process between another company's
computer with dialup Internet access but no Cold Fusion or Web server
software, and
our Web/CF server (from the company's computer TO our server.)

Is this typically done by setting up a command line version of a standard
FTP client,
and then firing that daily by using the NT scheduler, or are there better
ways?

Gene Kraybill
-
Gene Kraybill
LPW  Associates LLC
www.lpw.net
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re[2]: CF Website

2001-04-12 Thread Carol Bluestein

www.remotesite.com (and it "ain't" free either)

Carol

Carol L. Bluestein
Senior Programmer
NYS Office of Real Property
518-486-6335
[EMAIL PROTECTED]


Reply Separator
Subject:Re: CF Website
Author: [EMAIL PROTECTED]
Date:   4/11/01 9:18 PM

Spectra (but it ain't FREE)

Dave


- Original Message -
From: Parker, Kevin [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 8:55 PM
Subject: CF Website



 Does anyone now of any CF based systems/products that create a website
 purely and entirely from a backend e.g. www.phpnuke.org

 

 Kevin Parker
 Web Services Manager
 WorkCover Corporation

 [EMAIL PROTECTED]

 www.workcover.com

 p: +61 8 82332548
 f: +61 8 82332000
 m: 0418 800 287







 This e-mail is intended for the use of the addressee only. It may contain
 information that is protected by legislated confidentiality and/or is
 legally privileged. If you are not the intended recipient you are
prohibited
 from disseminating, distributing or copying this e-mail. Any opinion
 expressed in this e-mail may not necessarily be that of the WorkCover
 Corporation of South Australia. Although precautions have been taken, the
 sender cannot warrant that this e-mail or any files transmitted with it
are
 free of viruses or any other defect.
 If you have received this e-mail in error, please notify the sender
 immediately by return e-mail and destroy the original e-mail and any
copies.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Email Questions

2001-04-12 Thread I-Lin Kuo

If the code inside of your CFMAIL tags are going to be run 70,000 times, 
I'd put a lot of effort into optimizing it.

1. The BCC idea is great.
2. Make sure you're not running any unnecessary queries inside of your 
CFMAIL
3. Take all the text in the body and place it into a variable such as 
#MailText# and then just do

   CFMAIL ... ...
  #MailText#
   /CFMAIL

This will keep CFAS from parsing what's in between the CFMAIL tags 70,000 
times.

-- Original Message Follows --
Date: Wed, 11 Apr 2001 08:55:37 -0400
From: "Brian Peddle" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Email Questions
Message-ID: [EMAIL PROTECTED]

I posted this last night but I didn't see it post.  I apologize if it comes
through twice.

I currently send out a weekly newsletter to a growing database of 70,000
right now.  I currently query the DB and loop the results and send out an
email to each member.  It takes CF about 24 hours to process 70,000 emails
from it SPOOL out to the mail server.  The machines is a dual 700 / 1/2 gig
ram.  I don't think its the machine but more the process of 70,000! emails.

My initial thought is to group together 40 emails at a time and BCC then and
have the sent to be whatever.  That would bring the emails total down to
about 1700 which CF can pump out fairly fast.  Id prefer to stay in CF for
this.

Does anyone have any suggestions or things that they may have done.

Thanks!!
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: disabling back or second insert

2001-04-12 Thread Dave Hannum

You can also set a cookie or session variable when they hit it the first
time and only allow insert queries if there is an abasence of such . . .

Dave


- Original Message -
From: "Terry Bader" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:46 AM
Subject: RE: disabling back or second insert


 expire your pages...
 I also do a JS location on the action page after the submission page so
that
 if they hit the reload button, then it wont re=post the form data...


 Terry Bader
 IT/Web Specialist
 EDO Corp - Combat Systems
 (757) 424-1004 ext 361 - Work
 [EMAIL PROTECTED]


 (757)581-5981 - Mobile
 [EMAIL PROTECTED]
 icq: 5202487   aim: lv2bounce
 http://www.cs.odu.edu/~bader






  -Original Message-
  From: Smith, Daron [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 9:17 AM
  To: CF-Talk
  Subject: disabling back or second insert
 
 
  I have a registration form, that queries initially to make
  sure that the
  registrant is not already registered, so it eliminates people from
  registering more than one time if they come back to the site,
  however if
  they submit the form and do not think anything has happened,
  they can use
  their back button, hit the submit button and the query does
  another insert
  and I end up with multiple records in my DB.  What is the best way of
  keeping them from doing this?  An expiring cookie? Or is
  there javascript to
  eliminate the ability to go back?
 
  Thanks
 
  Daron J. Smith
 
 
 
  Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
  Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
 


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-12 Thread Jeffry Houser

At 12:28 AM 04/12/2001 -0400, you wrote:
 From what I remember from my CS classes (my degree is in Electronics, not
CS) functions and procedures are devices that use either an individual or
multiple attributes to perform some computation.

   ;)  functions must always return one value.  Procedures can return one, 
none, or more than one.  I think that is the only distinction.


In the case of a function,
at least one value is returned to the calling process.  Forgive me if I'm
reaching a bit here, but doesn't that remind anyone else of a custom tag or
CFX tag?  A procedure doesn't return a value, but simply performs an action
or actions on attributes passed to it.  Taking a bigger stretch, doesn't
that sound a bit like an include?

   Well, custom tags are similar to procedures.  Includes are not.  If you 
call an include multiple times in a template it could produce weird side 
effects (or not), depending upon how you wrote the code in the 
include.  There is no way to pass values into, or out of, an include.  They 
are processed as if they were part of the original code.


Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Duo called Far Cry Fly
http://www.farcryfly.com | http://www.mp3.com/FarCryFly


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Weird CF Error

2001-04-12 Thread Bob Silverberg

Sounds like it's the database.  Two processes were trying to access the same
data, but one of them had the resource locked.

-Original Message-
From: Edward Chanter [mailto:[EMAIL PROTECTED]]
Sent: April 12, 2001 9:26 AM
To: CF-Talk
Subject: Weird CF Error


Has anyone seen these before:

~

Error Diagnostic Information
ODBC Error Code = 40001 (Serialization failure)

[Microsoft][ODBC SQL Server Driver][SQL Server]Your transaction (process ID
#15) was deadlocked with another process and has been chosen as the
deadlock victim. Rerun your transaction.

~~

I can't figure out what's causing it. Is it my dbase (SQL 7) or the CF
Server (4.01)

Any help would be most appreciated

best wishes,

  -= Ed


Problems cannot be solved at the same
level of awareness which created them.
   - Albert Einstein
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Weird CF Error

2001-04-12 Thread Dave f

Can occur with compound queries. You are waiting to access a record/row
which another user/process has locked. That other user/process is waiting
for  something that you have locked.

D

- Original Message -
From: "Edward Chanter" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:25 AM
Subject: Weird CF Error


 Has anyone seen these before:

 ~

 Error Diagnostic Information
 ODBC Error Code = 40001 (Serialization failure)

 [Microsoft][ODBC SQL Server Driver][SQL Server]Your transaction (process
ID
 #15) was deadlocked with another process and has been chosen as the
 deadlock victim. Rerun your transaction.

 ~~

 I can't figure out what's causing it. Is it my dbase (SQL 7) or the CF
 Server (4.01)

 Any help would be most appreciated

 best wishes,

   -= Ed


 Problems cannot be solved at the same
 level of awareness which created them.
- Albert Einstein

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: SOLUTION: OT - Sniffing Email

2001-04-12 Thread Brian Peddle

Im attempting to post this for the 4th time.  I tried to apply the solution
below and spent a couple hours on it but I can't seem to get it:  Code I am
using is below.  It has been cut down a bit to make it straight forward.  I
can sent the code as an attachment if needed as it seems as though proper
carriage returns count.  Any help on this would be greatly appreciated

cfscript
from = "[EMAIL PROTECTED]";
fromalias = "Brian";
subject = "Test";
plaintextbody = "Plain Test";
htmlbody = "htmlheadtitleUntitled/title/headbodybBOLD
TEST/b/body/html";
/cfscript


cfif Len(htmlbody)
CFSET MIMEBOUNDARY = "MIME-BOUNDARY"

!--- NO carriage returns in the next two variables ---
CFSET contenttype = "multipart/alternative;
boundary="""MIMEBOUNDARY
CFSET myHeaders = "X-Mailer: CCC Mailer, MIME-Version: 1.0"

!--- MUST have carriage returns in the next two variables ---
CFSET myPlainMsgTop = "--#MIMEboundary#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
"

CFSET myHTMLMsgTop = "--#MIMEboundary#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
"

cfelse
CFSET MIMEBOUNDARY = ""
CFSET contenttype = "text/plain"
CFSET myHeaders = "X-Mailer: CCC Mailer"
CFSET myPlainMsgTop = ""
CFSET myHTMLMsgTop = ""
/cfif

!--- Send the message ---
CFMAIL To="[EMAIL PROTECTED]"
From='"#FromAlias#" #from#'
Subject="#Subject#
Content-type: #contenttype#
#myHeaders#"#myPlainMsgTop##plaintextbody#

#myHTMLMsgTop##htmlbody#
/cfmail




-
Thank you to everyone who responded to this, I received several different
ways to do this, and the solution we chose was provided by Ron Allen
Hornbaker, President/CTO, Humankind Systems, Inc., over on CF-Community...
(you guys should really sign up for the list...it's lots of fun over
there.)

Here was his answer to the problem along with sample code that I am in the
process of testing and implementing. This is something worth marking for a
future look if you are dealing with clients who send out email newsletters
or any kind of marketing email.


Erika,

Them durned FloNetwork folks is usin' high-falutin' marketing-speak for a
very common type of email formatting: the multipart-alternative message.
We use it all the time, and so does Amazon, EggHead, and any other
big-time html email newsletter you've ever seen. We learned it by just
examining the headers of newsletters from Amazon, and it's really quite
simple. The receiving mail client will display the HTML version if it can,
and the plain-text version if it cannot. Remember: email is one of the
oldest 'net technologies around, and it's all just plain text (even
attachments). You can examine the full headers and text of messages quite
easily with most email clients.

Here's some CF code that will do it... it expects form imput like you see
in the cfparam's, and will create a multipart/alternative message if
you've provided an HTML body for the message in the form...


cfparam name="Form.from" default=""
cfparam name="Form.fromalias" default=""
cfparam name="Form.subject" default=""
cfparam name="Form.plaintextbody" default=""
cfparam name="Form.htmlbody" default=""

cfquery name="Data" datasource="#DS#" username="#DSUsername#"
password="#DSPassword#"
.. your query here to get the recips firstname, email, etc. ...
/cfquery


cfif Len(form.htmlbody)
CFSET MIMEBOUNDARY = "MIME-BOUNDARY"
!--- NO carriage returns in the next two variables ---
CFSET contenttype = "multipart/alternative;
boundary="""MIMEBOUNDARY
CFSET myHeaders = "X-Mailer: ContestClicker Mailer, MIME-Version: 1.0"
!--- MUST have carriage returns in the next two variables ---
CFSET myPlainMsgTop = "--#MIMEboundary#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"
CFSET myHTMLMsgTop = "--#MIMEboundary#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

"
cfelse
CFSET MIMEBOUNDARY = ""
CFSET contenttype = "text/plain"
CFSET myHeaders = "X-Mailer: ContestClicker Mailer"
CFSET myPlainMsgTop = ""
CFSET myHTMLMsgTop = ""
/cfif

cfloop query="Data"
!--- Personalize the messages with data from the query ---
cfset mySubject = Replace(form.subject,"%firstname%",firstname,"All")
cfset mySubject = Replace(mySubject,"%lastname%",lastname,"All")
cfset myPlainText =
Replace(form.plaintextbody,"%firstname%",firstname,"All")
cfset myPlainText = Replace(myPlainText,"%lastname%",lastname,"All")
cfset myHTMLText = Replace(form.htmlbody,"%firstname%",firstname,"All")
cfset myHTMLText = Replace(myHTMLText,"%lastname%",lastname,"All")
cfset myHTMLText = Replace(myHTMLText,"%email%",emailaddr,"All")

!--- Send the messages ---
CFMAIL To="#emailaddr#"
From='"#Form.FromAlias#" #form.from#'

RE: Weird CF Error

2001-04-12 Thread Hayes, David

As the error message suggests, it's a SQL Server error.  Look up "deadlock"
in SQL help.

-Original Message-
From: Edward Chanter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 8:26 AM
To: CF-Talk
Subject: Weird CF Error


Has anyone seen these before:

~

Error Diagnostic Information
ODBC Error Code = 40001 (Serialization failure)

[Microsoft][ODBC SQL Server Driver][SQL Server]Your transaction (process ID
#15) was deadlocked with another process and has been chosen as the
deadlock victim. Rerun your transaction.

~~

I can't figure out what's causing it. Is it my dbase (SQL 7) or the CF
Server (4.01)

Any help would be most appreciated

best wishes,

  -= Ed


Problems cannot be solved at the same
level of awareness which created them.
   - Albert Einstein
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



cffile action=upload error

2001-04-12 Thread Geoff Hoffman

I have designed some forms which allow the user to upload jpegs and 
QuickTime movies to the server. It was working before, but now I 
am getting the following error:

===
Error Occurred While Processing Request

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

I am running a browser and the CFserver on the same machine for testing.
I'm the only person hitting the CFserver, and like I said, it was 
working before (with more CFML going on on the same page). What could 
I have changed to cause this error?

When it was working before, I was uploading 3 jpegs and a quicktime 
all on the same page and it worked fine; I just figured it would 
be more scalable if I made each one a separate page. Any suggestions?

[EMAIL PROTECTED]











Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Is WDDX alive well ?

2001-04-12 Thread Jon Hall

Funny you ask...supposedly Macromedia has contracted to have the site
totally updated and redone. Someone mentioned the new site should be up very
soon as work has already begun.

jon
- Original Message -
From: "Tracy Bost" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:00 AM
Subject: Is WDDX alive  well ?


 Before I jump into Allaire's WDDX  SDK, I'm wondering if this is still a
platform that is being progressed.
 The web site www.wddx.org doesn't look like its been updated in 2 or 3
years.

  Thanks for any feedback and would love to hear from anyone that's using
it to syndicate content to perl  asp sites.



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-12 Thread Andy Ewings

Functions have the ability to return a value but don't have to.  Procedures
do not return values.

-- 
Andrew Ewings
Project Manager
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
-- 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
-- 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 488 9131
-- 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890. 



-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 18:08
To: CF-Talk
Subject: RE: Procedure and Function (Rambling thought)


At 12:28 AM 04/12/2001 -0400, you wrote:
 From what I remember from my CS classes (my degree is in Electronics, not
CS) functions and procedures are devices that use either an individual or
multiple attributes to perform some computation.

   ;)  functions must always return one value.  Procedures can return one, 
none, or more than one.  I think that is the only distinction.


In the case of a function,
at least one value is returned to the calling process.  Forgive me if I'm
reaching a bit here, but doesn't that remind anyone else of a custom tag or
CFX tag?  A procedure doesn't return a value, but simply performs an action
or actions on attributes passed to it.  Taking a bigger stretch, doesn't
that sound a bit like an include?

   Well, custom tags are similar to procedures.  Includes are not.  If you 
call an include multiple times in a template it could produce weird side 
effects (or not), depending upon how you wrote the code in the 
include.  There is no way to pass values into, or out of, an include.  They 
are processed as if they were part of the original code.


Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Duo called Far Cry Fly
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Weird CF Error

2001-04-12 Thread Edward Chanter

Interesting. the lock is not an intentional thing do you know any
way of changing it?




best wishes,

  -= Ed


Problems cannot be solved at the same
level of awareness which created them.
   - Albert Einstein
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Last Visits Variable

2001-04-12 Thread Edward Chanter

Is there anything that one can change in the Application.cfm file which
would mean that the Last Visit counter gets updated at the beginning rather
than the end of a session.?

I think I may have made a change which broke some functionality but I can't
for the life of me work out what that change was

Any help would be most appreciated as always...


best wishes,

  -= Ed


Problems cannot be solved at the same
level of awareness which created them.
   - Albert Einstein
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Weird CF Error

2001-04-12 Thread Edward Chanter

Very interesting thanks!




best wishes,

  -= Ed


Problems cannot be solved at the same
level of awareness which created them.
   - Albert Einstein
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: when is CF5 release? (a little OT)

2001-04-12 Thread Neil Clark

Phew, there's me thinking I was way out again!! :-)



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: SOLUTION: OT - Sniffing Email

2001-04-12 Thread Erika L Walker

Brian,

What is it that you can't seem to get? I haven't had the time yet to
implement this solution since I've posted it (another priority project got
in the way), so I haven't started testing it, but I may have some moments
this morning to spend on it...


Erika

"Twixt optimist and pessimist, The difference is droll; The optimist sees
the doughnut, The pessimist, the hole." - McLandburgh Wilson


-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 9:53 AM
To: CF-Talk
Subject: RE: SOLUTION: OT - Sniffing Email


Im attempting to post this for the 4th time.  I tried to apply the solution
below and spent a couple hours on it but I can't seem to get it:  Code I am
using is below.  It has been cut down a bit to make it straight forward.  I
can sent the code as an attachment if needed as it seems as though proper
carriage returns count.  Any help on this would be greatly appreciated

cfscript
from = "[EMAIL PROTECTED]";
fromalias = "Brian";
subject = "Test";
plaintextbody = "Plain Test";
htmlbody = "htmlheadtitleUntitled/title/headbodybBOLD
TEST/b/body/html";
/cfscript


cfif Len(htmlbody)
CFSET MIMEBOUNDARY = "MIME-BOUNDARY"

!--- NO carriage returns in the next two variables ---
CFSET contenttype = "multipart/alternative;
boundary="""MIMEBOUNDARY
CFSET myHeaders = "X-Mailer: CCC Mailer, MIME-Version: 1.0"

!--- MUST have carriage returns in the next two variables ---
CFSET myPlainMsgTop = "--#MIMEboundary#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
"

CFSET myHTMLMsgTop = "--#MIMEboundary#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
"

cfelse
CFSET MIMEBOUNDARY = ""
CFSET contenttype = "text/plain"
CFSET myHeaders = "X-Mailer: CCC Mailer"
CFSET myPlainMsgTop = ""
CFSET myHTMLMsgTop = ""
/cfif

!--- Send the message ---
CFMAIL To="[EMAIL PROTECTED]"
From='"#FromAlias#" #from#'
Subject="#Subject#
Content-type: #contenttype#
#myHeaders#"#myPlainMsgTop##plaintextbody#

#myHTMLMsgTop##htmlbody#
/cfmail




-
Thank you to everyone who responded to this, I received several different
ways to do this, and the solution we chose was provided by Ron Allen
Hornbaker, President/CTO, Humankind Systems, Inc., over on CF-Community...
(you guys should really sign up for the list...it's lots of fun over
there.)

Here was his answer to the problem along with sample code that I am in the
process of testing and implementing. This is something worth marking for a
future look if you are dealing with clients who send out email newsletters
or any kind of marketing email.


Erika,

Them durned FloNetwork folks is usin' high-falutin' marketing-speak for a
very common type of email formatting: the multipart-alternative message.
We use it all the time, and so does Amazon, EggHead, and any other
big-time html email newsletter you've ever seen. We learned it by just
examining the headers of newsletters from Amazon, and it's really quite
simple. The receiving mail client will display the HTML version if it can,
and the plain-text version if it cannot. Remember: email is one of the
oldest 'net technologies around, and it's all just plain text (even
attachments). You can examine the full headers and text of messages quite
easily with most email clients.

Here's some CF code that will do it... it expects form imput like you see
in the cfparam's, and will create a multipart/alternative message if
you've provided an HTML body for the message in the form...


cfparam name="Form.from" default=""
cfparam name="Form.fromalias" default=""
cfparam name="Form.subject" default=""
cfparam name="Form.plaintextbody" default=""
cfparam name="Form.htmlbody" default=""

cfquery name="Data" datasource="#DS#" username="#DSUsername#"
password="#DSPassword#"
... your query here to get the recips firstname, email, etc. ...
/cfquery


cfif Len(form.htmlbody)
CFSET MIMEBOUNDARY = "MIME-BOUNDARY"
!--- NO carriage returns in the next two variables ---
CFSET contenttype = "multipart/alternative;
boundary="""MIMEBOUNDARY
CFSET myHeaders = "X-Mailer: ContestClicker Mailer, MIME-Version: 1.0"
!--- MUST have carriage returns in the next two variables ---
CFSET myPlainMsgTop = "--#MIMEboundary#
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"
CFSET myHTMLMsgTop = "--#MIMEboundary#
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

"
cfelse
CFSET MIMEBOUNDARY = ""
CFSET contenttype = "text/plain"
CFSET myHeaders = "X-Mailer: ContestClicker Mailer"
CFSET myPlainMsgTop = ""
CFSET myHTMLMsgTop = ""
/cfif

cfloop query="Data"
!--- Personalize the messages with data from the query ---
cfset 

Re: Weird CF Error

2001-04-12 Thread David E. Crawford

Check the physical memory available and the disk space available. If you are
uploading "Large" files, they have to be read into memory before being
written to disk. Rule of thumb is that you need at least 2.5 times the size
of the file free on disk or in memory to insure that the upload will work.
I would check diskspace first.

DC

- Original Message -
From: "Hayes, David" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 10:15
Subject: RE: Weird CF Error


 As the error message suggests, it's a SQL Server error.  Look up
"deadlock"
 in SQL help.

 -Original Message-
 From: Edward Chanter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:26 AM
 To: CF-Talk
 Subject: Weird CF Error


 Has anyone seen these before:

 ~

 Error Diagnostic Information
 ODBC Error Code = 40001 (Serialization failure)

 [Microsoft][ODBC SQL Server Driver][SQL Server]Your transaction (process
ID
 #15) was deadlocked with another process and has been chosen as the
 deadlock victim. Rerun your transaction.

 ~~

 I can't figure out what's causing it. Is it my dbase (SQL 7) or the CF
 Server (4.01)

 Any help would be most appreciated

 best wishes,

   -= Ed


 Problems cannot be solved at the same
 level of awareness which created them.
- Albert Einstein

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Is WDDX alive well ?

2001-04-12 Thread Billy Cravens

I don't know about how much development is being done with it.  However, I recently 
completed a project where WDDX was
crucial - both in the web site and in a desktop exe I developed to feed data to the 
site.

--
Billy Cravens
HR Web Development, Sabre
[EMAIL PROTECTED]

Tracy Bost wrote:

 Before I jump into Allaire's WDDX  SDK, I'm wondering if this is still a platform 
that is being progressed.
 The web site www.wddx.org doesn't look like its been updated in 2 or 3 years.

  Thanks for any feedback and would love to hear from anyone that's using it to 
syndicate content to perl  asp sites.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



FormatBaseN Blowing up

2001-04-12 Thread C. Hatton Humphrey

Hi folks,

Okay, off the thought ramble for a moment and on to something more pressing
and less theoretical.

Yesterday our network admin updated one of the servers.  The hardware
upgrade was necessary and the server needed cleaning.  The web server was
changed from Netscape Enterprise server to IIS4.0 and the CF Server went
from 4.0 to 4.5.1.  We thought we had all the problems ironed out, but
apparently there's some interesting differences.

The one I'm dealing with right now has to do with the FormatBaseN funciton.
Here's the code in question:

!--- get the current system time ---
cfset systime=#DateFormat(now(),"mmdd")# 
#TimeFormat(now(),"hhmmss")#
cfset systime_orig=systime

!--- now scramble it up ---
cfset length=len(systime)
!---cfoutput#systime#br/cfoutput---
cfloop index="i" from=1 to=#length#
cfset ran1=RandRange(1,length)
cfset ran2=RandRange(1,length)
cfset token1=#mid(systime,ran1,1)#
cfset token2=#mid(systime,ran2,1)#

cfset systime=#removeChars(systime,ran1,1)#
cfset systime=Replace(systime," ","","ALL")
cfset systime=#Ljustify(systime,14)#
cfset systime=#insert(token2,systime,ran1)#

cfset systime=#removeChars(systime,ran2,1)#
cfset systime=Replace(systime," ","","ALL")
cfset systime=#Ljustify(systime,14)#
cfset systime=#insert(token1,systime,ran2)#
/cfloop
cfset systime=Replace(systime," ","","ALL")
cfoutput#systime# Len: #len(systime)#br
#int(systime)# - #val(systime)# - #NumberFormat(systime)# -
#IsNumeric(systime)#br
#int(systime_orig)# - #val(systime_orig)# - #NumberFormat(systime_orig)# -
#IsNumeric(systime_orig)#
cfset base16_systime=#FormatBaseN(systime,16)#
cfset base36_systime=#formatBaseN(systime_orig,36)#
br
#base16_systime# - #base36_systime#
/cfoutput
cfabort (This is here to stop further processing while I'm fixing it)

On the Netscape server, the output is:
20150031924110 Len: 14
2.01500319241E+013 - 2.01500319241E+013 - 20,150,031,924,110 - YES
2.00104121051E+013 - 2.00104121051E+013 - 20,010,412,105,139 - YES
8b7ebb8e - 2my27n

The IIS Server gets the following:
11410401429203 Len: 14
1.14104014292E+013 - 1.14104014292E+013 - 11,410,401,429,203 - YES
2.00104121049E+013 - 2.00104121049E+013 - 20,010,412,104,932 - YES


Error Occurred While Processing Request
Error Diagnostic Information

An error occurred while evaluating the expression:

 base16_systime=#FormatBaseN(systime,16)#

Error near line 56, column 7.


Parameter 1 of function FormatBaseN which is now "11410401429203" must be an
integer

Any ideas or suggestions?

TIA
Hatton Humphrey


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



existence of table

2001-04-12 Thread Diana Nichols

Is there a way to check for the existence of a database table (SQL 2000)?

I have a calendar which stores each month's events in a separate table
(events0301), and if the user hits the "last month" button past where the
tables start, it throws an error.

I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
using a UNION on "this" month and "last" month to show any events not
cleared from the previous month. So, the first table is events0301, and the
cftry/cfcatch scenario won't let them view events from March because
February table doesn't exist.

Insights, suggestions?

as always, TIA!!

Diana

*
Diana Nichols
Webmistress
http://www.lavenderthreads.com
770.434.7374

"One man's magic is another man's engineering." ---Lazarus Long


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: printing

2001-04-12 Thread Heidi Belal

Hey guys!
Thanks for all your suggestions and help.  It seems
like formatting an html doc would be the easiset.  I
will also look into the pdf cf custom tags, before i
diecide on which to use.
so what if i decide to html for the time being.  If i
were to do that all i would need to do was open a new
window with the text etc...that i want to be printed. 
Now opening a new window is giving me this error on IE
but works fine on NN this is the code i'm using:
script language="javascript"
var newWindow
function makeNewWindow()
{
  if (!newWindow || newWindow.closed)
  {
 newWindow=
window.open("/khan/index.cfm?method=TrainingDetailedApprovalTID=#TID#",
"Height=200, width=300")
 if (!newWindow.opener)
 {
newWindow.opener = Window
 }  
  }
  else
  {
 newWindow.focus()
  }
}
/script  

and then i use this to call it:
a href="javascript:makeNewWindow()"Click here to see
approval./a

So what's wrong with that?!
My other question is:
I am passing cf variables through the url...how would
i pass them to the new window then?! any suggestions?
thanks a lot for you time!
Heidi

--- "Hasenfratz, Philipp" [EMAIL PROTECTED] wrote:
  The problem with doing a html file is depending on
 how the clients setup
  their browsers it will print differently, since it
 will be displaying
  differently or possibly displaying differently.
 
 Yes, that's a general problem with HTML. But you can
 do a lot with absolute
 positioning.
 You can set all margins and fonts absolutely. For
 example you can work
 together with CSS.
 Of course this will be a lot of work, but you can
 enforce the browser to do
 what YOU want.
 
  ColdFusion has some
  custom tags for creating .pdf files, I personally
 have never looked at
  them, but they are in their custom tag gallery at
 allaire.com  If this
  were going to be printed just on a intranet and
 always to one computer,
  then you could write a Perl script to output to
 the printed in a set
  format and then pass your CF variables to that
 script via something like a
  html form as hidden form variables, but this
 method is only good for
  specific situations.
 
 Custom tags for creating .pdf files. - Sounds very
 good to solve your
 problem, Heidi.
 
 regards
 
 Philipp
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Is WDDX alive well ?

2001-04-12 Thread Steven A. del Sol

I would be interested to hear more about what you developed.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



OT: Test Environment for Forta's Book

2001-04-12 Thread Dain Anderson

Greetings,

I'm writing to ask if anyone has an Exchange Server running LDAP (or test
server w/Exchange) that I could use for testing.

Here is the scenario: I'm working on the COM and CFLDAP chapters for Ben's
new advanced book, and I have a lot of code that needs to be tested. Another
user a while back provided me with LDAP access, but I could only query the
server, not add or modify entries. Because of his situation, providing me
with enough access to fully test was out of the question.

If someone would be so generous to help out, I'd be very appreciative. I
realise I'm asking a lot, but I was recently laid-off and no longer have
access to an Exchange Server.

Here are the items I would need:

1.) A new account setup for these tests
2.) Access to LDAP on Exchange (for testing code with add, modify, delete
and query on CFLDAP)
3.) Priviledges to connect to Exchange through COM (MAPI.Session)

If anyone can help out, please email me off-list.

Thanks,

Dain Anderson
Caretaker, CF Comet
http://www.cfcomet.com/




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-12 Thread Jeffry Houser


   A function must return a single value.  What language uses functions 
that don't?

   On the other hand, you're write about procedures.  However, procedures 
are (were) often used to modify values of the passed parameters, which is 
what I was referring to below.

At 03:25 PM 04/12/2001 +0100, you wrote:
Functions have the ability to return a value but don't have to.  Procedures
do not return values.

--
Andrew Ewings
Project Manager
Thoughtbubble Ltd
http://www.thoughtbubble.net
--
United Kingdom
http://www.thoughtbubble.co.uk/
Tel: +44 (0) 20 7387 8890
--
New Zealand
http://www.thoughtbubble.co.nz/
Tel: +64 (0) 9 488 9131
--
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.



-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 18:08
To: CF-Talk
Subject: RE: Procedure and Function (Rambling thought)


At 12:28 AM 04/12/2001 -0400, you wrote:
  From what I remember from my CS classes (my degree is in Electronics, not
 CS) functions and procedures are devices that use either an individual or
 multiple attributes to perform some computation.

;)  functions must always return one value.  Procedures can return one,
none, or more than one.  I think that is the only distinction.


 In the case of a function,
 at least one value is returned to the calling process.  Forgive me if I'm
 reaching a bit here, but doesn't that remind anyone else of a custom tag or
 CFX tag?  A procedure doesn't return a value, but simply performs an action
 or actions on attributes passed to it.  Taking a bigger stretch, doesn't
 that sound a bit like an include?

Well, custom tags are similar to procedures.  Includes are not.  If you
call an include multiple times in a template it could produce weird side
effects (or not), depending upon how you wrote the code in the
include.  There is no way to pass values into, or out of, an include.  They
are processed as if they were part of the original code.


Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Duo called Far Cry Fly
http://www.farcryfly.com | http://www.mp3.com/FarCryFly

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Is WDDX alive well ?

2001-04-12 Thread Rey Bango

Its coming very soon, Jon. :)

New look  feel, submission process, forums, et al.

Rey Bango
Team Allaire...

- Original Message -
From: "Jon Hall" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 10:17 AM
Subject: Re: Is WDDX alive  well ?


 Funny you ask...supposedly Macromedia has contracted to have the site
 totally updated and redone. Someone mentioned the new site should be up
very
 soon as work has already begun.

 jon
 - Original Message -
 From: "Tracy Bost" [EMAIL PROTECTED]
 To: "CF-Talk" [EMAIL PROTECTED]
 Sent: Thursday, April 12, 2001 9:00 AM
 Subject: Is WDDX alive  well ?


  Before I jump into Allaire's WDDX  SDK, I'm wondering if this is still a
 platform that is being progressed.
  The web site www.wddx.org doesn't look like its been updated in 2 or 3
 years.
 
   Thanks for any feedback and would love to hear from anyone that's using
 it to syndicate content to perl  asp sites.
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread Peter Stolz

SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'events0301'

HTH,
P.

-Original Message-
From: Diana Nichols [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:07 AM
To: CF-Talk
Subject: existence of table


Is there a way to check for the existence of a database table (SQL 2000)?

I have a calendar which stores each month's events in a separate table
(events0301), and if the user hits the "last month" button past where the
tables start, it throws an error.

I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
using a UNION on "this" month and "last" month to show any events not
cleared from the previous month. So, the first table is events0301, and the
cftry/cfcatch scenario won't let them view events from March because
February table doesn't exist.

Insights, suggestions?

as always, TIA!!

Diana

*
Diana Nichols
Webmistress
http://www.lavenderthreads.com
770.434.7374

"One man's magic is another man's engineering." ---Lazarus Long
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLDAP problem

2001-04-12 Thread Kevin Miller



I get this error most often when either the name specified in the "START" or 
"USERNAME" parameters does not exist.

Kevin

-Original Message-
From: Melissa Fraher [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 11, 2001 4:29 PM
To: CF-Talk
Subject: CFLDAP problem


Hello.
I get the following error when trying to use CFLDAP to connect to our
LDAP server:

---
Error Occurred While Processing Request

 Error Diagnostic Information

 CFLDAP

 No such object
---

Here is the code:

!---Code Example---

CFLDAP
NAME="TestUsers"
SERVER="myserver.xxx.xxx"
ACTION="QUERY"
ATTRIBUTES="subschemasubentry"
SCOPE="BASE"
FILTER="objectclass=*"
START=""
USERNAME="SomeUsername"
PASSWORD="SomePassword" 

cfoutput query="TestUsers"
DN: Root DSEbr
Subschemasubentry: #subschemasubentry#brbr
/cfoutput


Does anyone have any advice on this?  I read in past postings that
removing the password would work, but not in this case.  Also, I was
able to get the example using ldap.bigfoot.com in the CFDOCS 4.5 to
work.

Thank you for any help.

Melissa
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: FormatBaseN Blowing up

2001-04-12 Thread Michael Dinowitz

FormatBaseN() will only work on an integer. Look at this article for more
info on it.
http://www.fusionauthority.com/alert/index.cfm?alertid=30#tech1
http://www.houseoffusion.com/hof/datatype.cfm


 Hi folks,

 Okay, off the thought ramble for a moment and on to something more
pressing
 and less theoretical.

 Yesterday our network admin updated one of the servers.  The hardware
 upgrade was necessary and the server needed cleaning.  The web server was
 changed from Netscape Enterprise server to IIS4.0 and the CF Server went
 from 4.0 to 4.5.1.  We thought we had all the problems ironed out, but
 apparently there's some interesting differences.

 The one I'm dealing with right now has to do with the FormatBaseN
funciton.
 Here's the code in question:

 !--- get the current system time ---
 cfset systime=#DateFormat(now(),"mmdd")# 
 #TimeFormat(now(),"hhmmss")#
 cfset systime_orig=systime

 !--- now scramble it up ---
 cfset length=len(systime)
 !---cfoutput#systime#br/cfoutput---
 cfloop index="i" from=1 to=#length#
 cfset ran1=RandRange(1,length)
 cfset ran2=RandRange(1,length)
 cfset token1=#mid(systime,ran1,1)#
 cfset token2=#mid(systime,ran2,1)#

 cfset systime=#removeChars(systime,ran1,1)#
 cfset systime=Replace(systime," ","","ALL")
 cfset systime=#Ljustify(systime,14)#
 cfset systime=#insert(token2,systime,ran1)#

 cfset systime=#removeChars(systime,ran2,1)#
 cfset systime=Replace(systime," ","","ALL")
 cfset systime=#Ljustify(systime,14)#
 cfset systime=#insert(token1,systime,ran2)#
 /cfloop
 cfset systime=Replace(systime," ","","ALL")
 cfoutput#systime# Len: #len(systime)#br
 #int(systime)# - #val(systime)# - #NumberFormat(systime)# -
 #IsNumeric(systime)#br
 #int(systime_orig)# - #val(systime_orig)# - #NumberFormat(systime_orig)# -
 #IsNumeric(systime_orig)#
 cfset base16_systime=#FormatBaseN(systime,16)#
 cfset base36_systime=#formatBaseN(systime_orig,36)#
 br
 #base16_systime# - #base36_systime#
 /cfoutput
 cfabort (This is here to stop further processing while I'm fixing it)

 On the Netscape server, the output is:
 20150031924110 Len: 14
 2.01500319241E+013 - 2.01500319241E+013 - 20,150,031,924,110 - YES
 2.00104121051E+013 - 2.00104121051E+013 - 20,010,412,105,139 - YES
 8b7ebb8e - 2my27n

 The IIS Server gets the following:
 11410401429203 Len: 14
 1.14104014292E+013 - 1.14104014292E+013 - 11,410,401,429,203 - YES
 2.00104121049E+013 - 2.00104121049E+013 - 20,010,412,104,932 - YES
 --
--
 
 Error Occurred While Processing Request
 Error Diagnostic Information

 An error occurred while evaluating the expression:

  base16_systime=#FormatBaseN(systime,16)#

 Error near line 56, column 7.
 --
--
 
 Parameter 1 of function FormatBaseN which is now "11410401429203" must be
an
 integer

 Any ideas or suggestions?

 TIA
 Hatton Humphrey



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread Philip Arnold - ASP

 Is there a way to check for the existence of a database table (SQL 2000)?

 I have a calendar which stores each month's events in a separate table
 (events0301), and if the user hits the "last month" button past where the
 tables start, it throws an error.

 I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
 using a UNION on "this" month and "last" month to show any events not
 cleared from the previous month. So, the first table is
 events0301, and the
 cftry/cfcatch scenario won't let them view events from March because
 February table doesn't exist.

I'm assuming that SQL 2k works the same as SQL 7 this way

Select table_name
from information_schema.tables
where table_name='myTable'

If it has a record, then it exists...

I'd suggest checking all table_names and then building the SQL in a string
before running it, that'll stop the errors

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: SOLUTION: OT - Sniffing Email

2001-04-12 Thread Sean Daniels

On 4/12/01 10:43 AM Erika L Walker wrote:

 Brian,
 
 What is it that you can't seem to get? I haven't had the time yet to
 implement this solution since I've posted it (another priority project got
 in the way), so I haven't started testing it, but I may have some moments
 this morning to spend on it...

I don't know if Brian is having the same problem I am having, but I get both
versions of the email in a plain text only email. So I get:

 MIME-BOUNDARY
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 blah
 
 MIME-BOUNDARY
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 
 
 html
 
 body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"
 bgcolor="white"
 
 blah
 
 /body
 /html

I did notice in the headers of the email that the Content-type header
appears twice. Look:

Content-type: text/plain
Date: Thu, 12 Apr 2001 11:20:13 -0400
From: "From" [EMAIL PROTECTED]
Subject: This is my subject
Content-type: multipart/alternative;boundary="MIME-BOUNDARY"
X-Mailer: ContestClicker Mailer, MIME-Version: 1.0
To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
Message-ID: DMZ6iyPoHZgzDgtZKpj1dd3@dmz6
X-OriginalArrivalTime: 12 Apr 2001 15:26:34.0687 (UTC)
FILETIME=[F55A84F0:01C0C364]
X-RCPT-TO: [EMAIL PROTECTED]
X-UIDL: 2140
Status: U

Is there something we need to do to rid oursleves of that first content type
header?

- Sean
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Is WDDX alive well ?

2001-04-12 Thread Dick Applebaum

I haven't done any new development in it lately, but I regularly use 
programs I wrote some time ago.

The pluses:  it works well, as advertised.

the minuses: It is pretty verbose.

As I recall, Dave Weiner (Frontier, Userland, Manilla, EditThisPage, 
etc.) was put off with allaire for creating/choosing/promoting WDDX 
instead od Dave's technology.

I think that Marc Cantor was the original founder of MM and is good 
friend of Dave  likes his technology.

Just visited the MM site... the investors page uses Java for 
animation... curious?

Don't know if any of this means anything, but it may stir the pot a little.

Dick

At 8:00 AM -0500 4/12/01, Tracy Bost wrote:
Before I jump into Allaire's WDDX  SDK, I'm wondering if this is 
still a platform that is being progressed.
The web site www.wddx.org doesn't look like its been updated in 2 or 3 years.

  Thanks for any feedback and would love to hear from anyone that's 
using it to syndicate content to perl  asp sites.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: FormatBaseN Blowing up

2001-04-12 Thread C. Hatton Humphrey

But why would this work with CF Server 4.0 and not in 4.5?  There is no
change in the code or OS?

Thanks!
Hatton

 -Original Message-
 From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:36 AM
 To: CF-Talk
 Subject: Re: FormatBaseN Blowing up


 FormatBaseN() will only work on an integer. Look at this article for more
 info on it.
 http://www.fusionauthority.com/alert/index.cfm?alertid=30#tech1
 http://www.houseoffusion.com/hof/datatype.cfm


  Hi folks,
 
  Okay, off the thought ramble for a moment and on to something more
 pressing
  and less theoretical.
 
  Yesterday our network admin updated one of the servers.  The hardware
  upgrade was necessary and the server needed cleaning.  The web
 server was
  changed from Netscape Enterprise server to IIS4.0 and the CF Server went
  from 4.0 to 4.5.1.  We thought we had all the problems ironed out, but
  apparently there's some interesting differences.
 
  The one I'm dealing with right now has to do with the FormatBaseN
 funciton.
  Here's the code in question:
 
  !--- get the current system time ---
  cfset systime=#DateFormat(now(),"mmdd")# 
  #TimeFormat(now(),"hhmmss")#
  cfset systime_orig=systime
 
  !--- now scramble it up ---
  cfset length=len(systime)
  !---cfoutput#systime#br/cfoutput---
  cfloop index="i" from=1 to=#length#
  cfset ran1=RandRange(1,length)
  cfset ran2=RandRange(1,length)
  cfset token1=#mid(systime,ran1,1)#
  cfset token2=#mid(systime,ran2,1)#
 
  cfset systime=#removeChars(systime,ran1,1)#
  cfset systime=Replace(systime," ","","ALL")
  cfset systime=#Ljustify(systime,14)#
  cfset systime=#insert(token2,systime,ran1)#
 
  cfset systime=#removeChars(systime,ran2,1)#
  cfset systime=Replace(systime," ","","ALL")
  cfset systime=#Ljustify(systime,14)#
  cfset systime=#insert(token1,systime,ran2)#
  /cfloop
  cfset systime=Replace(systime," ","","ALL")
  cfoutput#systime# Len: #len(systime)#br
  #int(systime)# - #val(systime)# - #NumberFormat(systime)# -
  #IsNumeric(systime)#br
  #int(systime_orig)# - #val(systime_orig)# -
 #NumberFormat(systime_orig)# -
  #IsNumeric(systime_orig)#
  cfset base16_systime=#FormatBaseN(systime,16)#
  cfset base36_systime=#formatBaseN(systime_orig,36)#
  br
  #base16_systime# - #base36_systime#
  /cfoutput
  cfabort (This is here to stop further processing while I'm fixing it)
 
  On the Netscape server, the output is:
  20150031924110 Len: 14
  2.01500319241E+013 - 2.01500319241E+013 - 20,150,031,924,110 - YES
  2.00104121051E+013 - 2.00104121051E+013 - 20,010,412,105,139 - YES
  8b7ebb8e - 2my27n
 
  The IIS Server gets the following:
  11410401429203 Len: 14
  1.14104014292E+013 - 1.14104014292E+013 - 11,410,401,429,203 - YES
  2.00104121049E+013 - 2.00104121049E+013 - 20,010,412,104,932 - YES
 
 --
 --
  
  Error Occurred While Processing Request
  Error Diagnostic Information
 
  An error occurred while evaluating the expression:
 
   base16_systime=#FormatBaseN(systime,16)#
 
  Error near line 56, column 7.
 
 --
 --
  
  Parameter 1 of function FormatBaseN which is now
 "11410401429203" must be
 an
  integer
 
  Any ideas or suggestions?
 
  TIA
  Hatton Humphrey
 
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread Diana Nichols

Perfect! Thanks!
D

-Original Message-
From: Peter Stolz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:32 AM
To: CF-Talk
Subject: RE: existence of table


SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'events0301'

HTH,
P.

-Original Message-
From: Diana Nichols [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:07 AM
To: CF-Talk
Subject: existence of table


Is there a way to check for the existence of a database table (SQL 2000)?

I have a calendar which stores each month's events in a separate table
(events0301), and if the user hits the "last month" button past where the
tables start, it throws an error.

I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
using a UNION on "this" month and "last" month to show any events not
cleared from the previous month. So, the first table is events0301, and the
cftry/cfcatch scenario won't let them view events from March because
February table doesn't exist.

Insights, suggestions?

as always, TIA!!

Diana

*
Diana Nichols
Webmistress
http://www.lavenderthreads.com
770.434.7374

"One man's magic is another man's engineering." ---Lazarus Long
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: SOLUTION: OT - Sniffing Email

2001-04-12 Thread Sean Daniels

On 4/12/01 9:53 AM Brian Peddle wrote:

 Im attempting to post this for the 4th time.  I tried to apply the solution
 below and spent a couple hours on it but I can't seem to get it:  Code I am
 using is below.  It has been cut down a bit to make it straight forward.  I
 can sent the code as an attachment if needed as it seems as though proper
 carriage returns count.  Any help on this would be greatly appreciated

Brian, I found that using the cfmailparam tag to push the extra headers
(rather than appending them to the subject as was suggested) worked.

Instead of:

 !--- Send the messages ---
 CFMAIL To="#emailaddr#"
 From='"#Form.FromAlias#" #form.from#'
 Server="206.57.37.74"
 Subject="#mySubject#
 Content-type: #contenttype#
 #myHeaders#"#myPlainMsgTop##myPlainText#
 
 #myHTMLMsgTop##myHTMLText#
 /cfmail

I used:

cfmail to="#emailaddr#" from="#Form.FromAlias#" #form.from#"
subject="#subject#"
cfmailparam name="Content-type" value="#contenttype#"
#myPlainMsgTop##myPlainText#

#myHTMLMsgTop##myHTMLText#
/cfmail

I believe that the cfmailparam tag isn't supported below CFAS 4.5 though.

- Sean
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread Bob Silverberg

You can also use the system stored procedure SP_Tables, passing it the table
name.

Bob

-Original Message-
From: Peter Stolz [mailto:[EMAIL PROTECTED]]
Sent: April 12, 2001 11:32 AM
To: CF-Talk
Subject: RE: existence of table


SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'events0301'

HTH,
P.

-Original Message-
From: Diana Nichols [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:07 AM
To: CF-Talk
Subject: existence of table


Is there a way to check for the existence of a database table (SQL 2000)?

I have a calendar which stores each month's events in a separate table
(events0301), and if the user hits the "last month" button past where the
tables start, it throws an error.

I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
using a UNION on "this" month and "last" month to show any events not
cleared from the previous month. So, the first table is events0301, and the
cftry/cfcatch scenario won't let them view events from March because
February table doesn't exist.

Insights, suggestions?

as always, TIA!!

Diana

*
Diana Nichols
Webmistress
http://www.lavenderthreads.com
770.434.7374

"One man's magic is another man's engineering." ---Lazarus Long
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread David Shadovitz

Another option would be to make a query to retrieve all of the table names. 
 You could store the resulting list in the app scope.  Then, when you 
dynamically construct the table name for a given month, check to make sure it 
is in the list of tables before running the query to get the month's events.
-David

On Thursday, April 12, 2001 8:32 AM, Peter Stolz [SMTP:[EMAIL PROTECTED]] 
wrote:
 SELECT *
 FROM INFORMATION_SCHEMA.TABLES
 WHERE TABLE_NAME = 'events0301'

 HTH,
 P.

 -Original Message-
 From: Diana Nichols [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:07 AM
 To: CF-Talk
 Subject: existence of table


 Is there a way to check for the existence of a database table (SQL 2000)?

 I have a calendar which stores each month's events in a separate table
 (events0301), and if the user hits the "last month" button past where the
 tables start, it throws an error.

 I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
 using a UNION on "this" month and "last" month to show any events not
 cleared from the previous month. So, the first table is events0301, and the
 cftry/cfcatch scenario won't let them view events from March because
 February table doesn't exist.

 Insights, suggestions?

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



COM Problem

2001-04-12 Thread Kurt Ward

Anyone ever seen this error and know what the problem might be?

"An unexpected system error was detected. (Error code is 4294934528)

This type of error will most likely occur when the server running ColdFusion
is low on memory and/or system resources.
If you continue to experience this error in a reproducible fashion you
should contact Allaire technical support."

The COM interface is ServerObject's ASPMail V4.0

I get the error when calling ANY method.


Kurt Ward
Senior Web Developer
SailNet.com


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread Diana Nichols

good idea! thanks!
D

-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:38 AM
To: CF-Talk
Subject: RE: existence of table


 Is there a way to check for the existence of a database table (SQL 2000)?

 I have a calendar which stores each month's events in a separate table
 (events0301), and if the user hits the "last month" button past where the
 tables start, it throws an error.

 I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
 using a UNION on "this" month and "last" month to show any events not
 cleared from the previous month. So, the first table is
 events0301, and the
 cftry/cfcatch scenario won't let them view events from March because
 February table doesn't exist.

I'm assuming that SQL 2k works the same as SQL 7 this way

Select table_name
from information_schema.tables
where table_name='myTable'

If it has a record, then it exists...

I'd suggest checking all table_names and then building the SQL in a string
before running it, that'll stop the errors

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Is WDDX alive well ?

2001-04-12 Thread Andrew Peterson

 crucial - both in the web site and in a desktop exe I developed to feed
data to the site about this. .

I too would be interested in hearing more. Have looked into doing something
like this also.

Andrew


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: FormatBaseN Blowing up

2001-04-12 Thread Steve Martin

I recall there being some change in the way ints are handled between the two
versions (4.0  4.5). I can't remember the specifics but your symptoms point
to that as being a likely suspect. Anyone who knows the details care to
elaborate?
Steve

 -Original Message-
 From: C. Hatton Humphrey [mailto:[EMAIL PROTECTED]]
 Sent: 12 April 2001 16:54
 To: CF-Talk
 Subject: RE: FormatBaseN Blowing up


 But why would this work with CF Server 4.0 and not in 4.5?  There is no
 change in the code or OS?

 Thanks!
 Hatton

  -Original Message-
  From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 11:36 AM
  To: CF-Talk
  Subject: Re: FormatBaseN Blowing up
 
 
  FormatBaseN() will only work on an integer. Look at this
 article for more
  info on it.
  http://www.fusionauthority.com/alert/index.cfm?alertid=30#tech1
  http://www.houseoffusion.com/hof/datatype.cfm
 
 
   Hi folks,
  
   Okay, off the thought ramble for a moment and on to something more
  pressing
   and less theoretical.
  
   Yesterday our network admin updated one of the servers.  The hardware
   upgrade was necessary and the server needed cleaning.  The web
  server was
   changed from Netscape Enterprise server to IIS4.0 and the CF
 Server went
   from 4.0 to 4.5.1.  We thought we had all the problems ironed out, but
   apparently there's some interesting differences.
  
   The one I'm dealing with right now has to do with the FormatBaseN
  funciton.
   Here's the code in question:
  
   !--- get the current system time ---
   cfset systime=#DateFormat(now(),"mmdd")# 
   #TimeFormat(now(),"hhmmss")#
   cfset systime_orig=systime
  
   !--- now scramble it up ---
   cfset length=len(systime)
   !---cfoutput#systime#br/cfoutput---
   cfloop index="i" from=1 to=#length#
   cfset ran1=RandRange(1,length)
   cfset ran2=RandRange(1,length)
   cfset token1=#mid(systime,ran1,1)#
   cfset token2=#mid(systime,ran2,1)#
  
   cfset systime=#removeChars(systime,ran1,1)#
   cfset systime=Replace(systime," ","","ALL")
   cfset systime=#Ljustify(systime,14)#
   cfset systime=#insert(token2,systime,ran1)#
  
   cfset systime=#removeChars(systime,ran2,1)#
   cfset systime=Replace(systime," ","","ALL")
   cfset systime=#Ljustify(systime,14)#
   cfset systime=#insert(token1,systime,ran2)#
   /cfloop
   cfset systime=Replace(systime," ","","ALL")
   cfoutput#systime# Len: #len(systime)#br
   #int(systime)# - #val(systime)# - #NumberFormat(systime)# -
   #IsNumeric(systime)#br
   #int(systime_orig)# - #val(systime_orig)# -
  #NumberFormat(systime_orig)# -
   #IsNumeric(systime_orig)#
   cfset base16_systime=#FormatBaseN(systime,16)#
   cfset base36_systime=#formatBaseN(systime_orig,36)#
   br
   #base16_systime# - #base36_systime#
   /cfoutput
   cfabort (This is here to stop further processing while I'm
 fixing it)
  
   On the Netscape server, the output is:
   20150031924110 Len: 14
   2.01500319241E+013 - 2.01500319241E+013 - 20,150,031,924,110 - YES
   2.00104121051E+013 - 2.00104121051E+013 - 20,010,412,105,139 - YES
   8b7ebb8e - 2my27n
  
   The IIS Server gets the following:
   11410401429203 Len: 14
   1.14104014292E+013 - 1.14104014292E+013 - 11,410,401,429,203 - YES
   2.00104121049E+013 - 2.00104121049E+013 - 20,010,412,104,932 - YES
  
 
 --
  --
   
   Error Occurred While Processing Request
   Error Diagnostic Information
  
   An error occurred while evaluating the expression:
  
base16_systime=#FormatBaseN(systime,16)#
  
   Error near line 56, column 7.
  
 
 --
  --
   
   Parameter 1 of function FormatBaseN which is now
  "11410401429203" must be
  an
   integer
  
   Any ideas or suggestions?
  
   TIA
   Hatton Humphrey
  
  
  
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: FormatBaseN Blowing up

2001-04-12 Thread David E. Crawford

There was a change in the way the parser handles things. Specifically the
"length" of an integer value.

DC

- Original Message -
From: "C. Hatton Humphrey" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 11:53
Subject: RE: FormatBaseN Blowing up


 But why would this work with CF Server 4.0 and not in 4.5?  There is no
 change in the code or OS?

 Thanks!
 Hatton

  -Original Message-
  From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 11:36 AM
  To: CF-Talk
  Subject: Re: FormatBaseN Blowing up
 
 
  FormatBaseN() will only work on an integer. Look at this article for
more
  info on it.
  http://www.fusionauthority.com/alert/index.cfm?alertid=30#tech1
  http://www.houseoffusion.com/hof/datatype.cfm
 
 
   Hi folks,
  
   Okay, off the thought ramble for a moment and on to something more
  pressing
   and less theoretical.
  
   Yesterday our network admin updated one of the servers.  The hardware
   upgrade was necessary and the server needed cleaning.  The web
  server was
   changed from Netscape Enterprise server to IIS4.0 and the CF Server
went
   from 4.0 to 4.5.1.  We thought we had all the problems ironed out, but
   apparently there's some interesting differences.
  
   The one I'm dealing with right now has to do with the FormatBaseN
  funciton.
   Here's the code in question:
  
   !--- get the current system time ---
   cfset systime=#DateFormat(now(),"mmdd")# 
   #TimeFormat(now(),"hhmmss")#
   cfset systime_orig=systime
  
   !--- now scramble it up ---
   cfset length=len(systime)
   !---cfoutput#systime#br/cfoutput---
   cfloop index="i" from=1 to=#length#
   cfset ran1=RandRange(1,length)
   cfset ran2=RandRange(1,length)
   cfset token1=#mid(systime,ran1,1)#
   cfset token2=#mid(systime,ran2,1)#
  
   cfset systime=#removeChars(systime,ran1,1)#
   cfset systime=Replace(systime," ","","ALL")
   cfset systime=#Ljustify(systime,14)#
   cfset systime=#insert(token2,systime,ran1)#
  
   cfset systime=#removeChars(systime,ran2,1)#
   cfset systime=Replace(systime," ","","ALL")
   cfset systime=#Ljustify(systime,14)#
   cfset systime=#insert(token1,systime,ran2)#
   /cfloop
   cfset systime=Replace(systime," ","","ALL")
   cfoutput#systime# Len: #len(systime)#br
   #int(systime)# - #val(systime)# - #NumberFormat(systime)# -
   #IsNumeric(systime)#br
   #int(systime_orig)# - #val(systime_orig)# -
  #NumberFormat(systime_orig)# -
   #IsNumeric(systime_orig)#
   cfset base16_systime=#FormatBaseN(systime,16)#
   cfset base36_systime=#formatBaseN(systime_orig,36)#
   br
   #base16_systime# - #base36_systime#
   /cfoutput
   cfabort (This is here to stop further processing while I'm fixing
it)
  
   On the Netscape server, the output is:
   20150031924110 Len: 14
   2.01500319241E+013 - 2.01500319241E+013 - 20,150,031,924,110 - YES
   2.00104121051E+013 - 2.00104121051E+013 - 20,010,412,105,139 - YES
   8b7ebb8e - 2my27n
  
   The IIS Server gets the following:
   11410401429203 Len: 14
   1.14104014292E+013 - 1.14104014292E+013 - 11,410,401,429,203 - YES
   2.00104121049E+013 - 2.00104121049E+013 - 20,010,412,104,932 - YES
  

 --
  --
   
   Error Occurred While Processing Request
   Error Diagnostic Information
  
   An error occurred while evaluating the expression:
  
base16_systime=#FormatBaseN(systime,16)#
  
   Error near line 56, column 7.
  

 --
  --
   
   Parameter 1 of function FormatBaseN which is now
  "11410401429203" must be
  an
   integer
  
   Any ideas or suggestions?
  
   TIA
   Hatton Humphrey
  
  
  

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: COM Problem

2001-04-12 Thread Dain Anderson

Kurt,

How are you calling the methods? Can you post some code?

Dain Anderson
Caretaker, CF Comet
http://www.cfcomet.com/



- Original Message -
From: "Kurt Ward" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 12:03 PM
Subject: COM Problem


 Anyone ever seen this error and know what the problem might be?

 "An unexpected system error was detected. (Error code is 4294934528)

 This type of error will most likely occur when the server running
ColdFusion
 is low on memory and/or system resources.
 If you continue to experience this error in a reproducible fashion you
 should contact Allaire technical support."

 The COM interface is ServerObject's ASPMail V4.0

 I get the error when calling ANY method.


 Kurt Ward
 Senior Web Developer
 SailNet.com



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: COM Problem

2001-04-12 Thread Terry Bader

well, have you checked how much memory your system is eating up??


Terry Bader
IT/Web Specialist
EDO Corp - Combat Systems
(757) 424-1004 ext 361 - Work
[EMAIL PROTECTED]   


(757)581-5981 - Mobile
[EMAIL PROTECTED]
icq: 5202487   aim: lv2bounce
http://www.cs.odu.edu/~bader






 -Original Message-
 From: Kurt Ward [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 12:04 PM
 To: CF-Talk
 Subject: COM Problem
 
 
 Anyone ever seen this error and know what the problem might be?
 
 "An unexpected system error was detected. (Error code is 4294934528)
 
 This type of error will most likely occur when the server 
 running ColdFusion
 is low on memory and/or system resources.
 If you continue to experience this error in a reproducible fashion you
 should contact Allaire technical support."
 
 The COM interface is ServerObject's ASPMail V4.0
 
 I get the error when calling ANY method.
 
 
 Kurt Ward
 Senior Web Developer
 SailNet.com
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: COM Problem

2001-04-12 Thread Howie Hamlin

Is the COM a standard COM or an automation object?  CF will only work with
the latter.

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - the World's most configurable mail server

- Original Message -
From: "Kurt Ward" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 12:03 PM
Subject: COM Problem


 Anyone ever seen this error and know what the problem might be?

 "An unexpected system error was detected. (Error code is 4294934528)

 This type of error will most likely occur when the server running
ColdFusion
 is low on memory and/or system resources.
 If you continue to experience this error in a reproducible fashion you
 should contact Allaire technical support."

 The COM interface is ServerObject's ASPMail V4.0

 I get the error when calling ANY method.


 Kurt Ward
 Senior Web Developer
 SailNet.com




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: existence of table

2001-04-12 Thread Diana Nichols

That's an even better idea...by storing the list of tables in my
application.cfm, I never have to query for them at all...just update the
list once a month when the new table is created!

That brings to mind another option.and a performance question.

What would be the performance difference between loading that list (say up
to 36 items) with every page through the application.cfm file, vs. reading a
..txt file from the server (the parsing should be the same for
both)bearing in mind that my best guess on calendar usage would be about
25% of total pages loaded.

Thanks!
D


-Original Message-
From: David Shadovitz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 12:03 PM
To: CF-Talk
Subject: RE: existence of table


Another option would be to make a query to retrieve all of the table names.
 You could store the resulting list in the app scope.  Then, when you
dynamically construct the table name for a given month, check to make sure
it
is in the list of tables before running the query to get the month's events.
-David

On Thursday, April 12, 2001 8:32 AM, Peter Stolz
[SMTP:[EMAIL PROTECTED]]
wrote:
 SELECT *
 FROM INFORMATION_SCHEMA.TABLES
 WHERE TABLE_NAME = 'events0301'

 HTH,
 P.

 -Original Message-
 From: Diana Nichols [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:07 AM
 To: CF-Talk
 Subject: existence of table


 Is there a way to check for the existence of a database table (SQL 2000)?

 I have a calendar which stores each month's events in a separate table
 (events0301), and if the user hits the "last month" button past where the
 tables start, it throws an error.

 I tried a cftry/cfcatch on the query, butTo complicate matters, I'm
 using a UNION on "this" month and "last" month to show any events not
 cleared from the previous month. So, the first table is events0301, and
the
 cftry/cfcatch scenario won't let them view events from March because
 February table doesn't exist.

 Insights, suggestions?
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Test Environment for Forta's Book

2001-04-12 Thread mherbene

You could download the eval if you have the hardware:

http://www.microsoft.com/exchange/productinfo/Eval.htm



-Original Message-
From: Dain Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:27 AM
To: CF-Talk
Subject: OT: Test Environment for Forta's Book


Greetings,

I'm writing to ask if anyone has an Exchange Server running LDAP (or test
server w/Exchange) that I could use for testing.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Stripping certain ASCII characters for XML file

2001-04-12 Thread Paul Sizemore

How would I make sure that any output I save to a file (CFFile) is
restricted to characters 32-126 of the 127 US_ASCII approved characters? I'm
currently using Repace("xxx","yyy","zzz","all") to replace / escape some
characters (like "" to "amp;") for an XML file.
Paul Sizemore

Finish Line
3308 N Mitthoeffer Rd
Indianapolis, IN 46235
W: 317-899-1022 ext 3516


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



SQL Returns

2001-04-12 Thread Alan Koenig

I would like to refine my sql searches down.  From the following sql statement I am 
recieving up to 12 returns of the same record.  How can I make this so that there is 
only 1 return for each record?
 cfquery datasource="#datasource#" name="prodpage"
 SELECT  Products.ItemID, 
Products.SKU, Products.ItemName, 
Products.CategoryID, 
Products.SubCatID, 
Products.S_Description, 
Products.Description, 
Products.Price, 
Products.Weight, 
Products.A1, 
Products.A1Vals, 
Products.A2, 
Products.A2Vals, 
Products.Units, 
Products.Layout, 
Products.Key_Word, 
ProdPics.PicID, 
ProdPics.ItemPic, 
ProdPics.ItemPicLB, 
ProdPics.ItemPicF, 
ProdPics.ItemPicB
 FROMProducts, ProdPics 
 WHERE   Products.ItemID = ProdPics.PicID 
 AND   Description LIKE '%#form.keyword#%' 
 ORItemName LIKE '%#form.keyword#%' 
 AND   ItemID  1  
 ORDER BY ItemName
 /cfquery

TIA



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Forms and whatnot

2001-04-12 Thread Janine Jakim

I am making an form for people to add information each quarter.  They need
to be able to compare the figures for each quarter in a table. Their quarter
is set up as a stored procedure so they don't need to add which quarter they
are currently editing (ie: it appends all the rows each quarter so their
entry is actually an update query).  I want the previous quarter to show in
one column and the current quarter to be blank and ready to enter.  How is
this possible?
ie:  Sold
Gallons of paint12   1715   ___
Gallons of varnish  5 29   14   ___

  

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Viewing PDFs

2001-04-12 Thread Bruce Holm

Did this work well for you in all situations?
Can you share that piece of code?
We resorted to using javascript to open a window and redirect that way.  It
is not too satisfactory since it performs differently.  I'd like to have it
open in the same window as the page they link from.

Bruce

- Original Message -
From: "Adrian Cesana" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 6:46 PM
Subject: RE: Viewing PDFs


 I just went thru the same thing, I had to change my CFLOCATION's to a meta
 redirect.

 -Adrian

 -Original Message-
 From: Bruce Holm [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 6:27 PM
 To: CF-Talk
 Subject: Viewing PDFs


 I'm new to this list so if this has been beat to death already, please
 forgive...

 For viewing a .pdf file, we store the URL in a db table.  When someone
 clicks on the document url to view the file, it hits the db table,
retrieves
 the PDF's real URL and then CFLOCATIONs to that path.  It works most of
the
 time but for some strange reason, on IE5.0 it's flakey.  Sometimes it just
 launches Acrobat Reader (of the full version) and just displays an empty
 Acrobat Reader window.

 It obviously recognizes that it is a PDF but not sure why the content is
not
 displayed.  It also typically fails to display after the following
sequence
 pretty consistently...

 Click on PDF link to view doc
 Read Db table to get access permission and URL to PDF
 Permission requires user login...display login page
 Login successful...cflocate to the URL
 Acrobat launches (if not already) but displays empty contents in window

 If I now go back around (view the list of PDFs, click on the same one, no
 login required this time because I'm already logged in, cflocate to the
PDF)
 it works fine this time.
 But if I log out, then go through the above sequence, it fails every
 time...only on IE5.0.  IE5.5 works.  Netscape 4.7 works.

 Any ideas on this one

 -
 Bruce Holm - Web Programmer
 Lattice Semiconductor Corp.
 [EMAIL PROTECTED]
 -

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



multiple root mappings?

2001-04-12 Thread Kevin Ward


I am working on a new version of a site and have established a second 
directory structure which is being accessed through a second instance of 
the webserver through a different port.

My question is, how can I set the directory mappings in the CF 
administrator so that the root for one site is one physical directory and 
another root is for another (i.e., some sort of virtual server setup)?

I need to do something that would look like:

Logical pathDirectory Path
/   /oldsite/htdocs
/   /newsite/htdocs

Obviously there cannot be two '/' mappings, but how has anyone dealt with 
this in, for example, a hosting situation?

Thanks,

Kevin

-
Kevin Ward
Web Programmer
Lattice Semiconductor Corporation
 NE Moore Court
Hillsboro, OR 97124-6421
Ph: 503.268.8656
Fx: 503.268.8693
[EMAIL PROTECTED]
http://www.latticesemi.com/


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: SQL Returns

2001-04-12 Thread Kevin Ward


Alan,

You could limit your result set by telling the database to only return 
distinct Products.ItemID :

SELECT distinct(Products.ItemID), ...

Kevin

At 06:57 AM 4/12/01 -1000, you wrote:
I would like to refine my sql searches down.  From the following sql 
statement I am recieving up to 12 returns of the same record.  How can I 
make this so that there is only 1 return for each record?
  cfquery datasource="#datasource#" name="prodpage"
  SELECT  Products.ItemID,
 Products.SKU, Products.ItemName,
 Products.CategoryID,
 Products.SubCatID,
 Products.S_Description,
 Products.Description,
 Products.Price,
 Products.Weight,
 Products.A1,
 Products.A1Vals,
 Products.A2,
 Products.A2Vals,
 Products.Units,
 Products.Layout,
 Products.Key_Word,
 ProdPics.PicID,
 ProdPics.ItemPic,
 ProdPics.ItemPicLB,
 ProdPics.ItemPicF,
 ProdPics.ItemPicB
  FROMProducts, ProdPics
  WHERE   Products.ItemID = ProdPics.PicID
  AND   Description LIKE '%#form.keyword#%'
  ORItemName LIKE '%#form.keyword#%'
  AND   ItemID  1
  ORDER BY ItemName
  /cfquery

TIA

-
Kevin Ward
Web Programmer
Lattice Semiconductor Corporation
 NE Moore Court
Hillsboro, OR 97124-6421
Ph: 503.268.8656
Fx: 503.268.8693
[EMAIL PROTECTED]
http://www.latticesemi.com/


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: SQL Returns

2001-04-12 Thread Hayes, David

Is your join correct? Should it, perhaps, be WHERE products.ItemID =
prodPics.itemID?
 Is there a 1 to 1 relationship between products and pics?  

-Original Message-
From: Alan Koenig [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:58 AM
To: CF-Talk
Subject: SQL Returns


I would like to refine my sql searches down.  From the following sql
statement I am recieving up to 12 returns of the same record.  How can I
make this so that there is only 1 return for each record?
 cfquery datasource="#datasource#" name="prodpage"
 SELECT  Products.ItemID, 
Products.SKU, Products.ItemName, 
Products.CategoryID, 
Products.SubCatID, 
Products.S_Description, 
Products.Description, 
Products.Price, 
Products.Weight, 
Products.A1, 
Products.A1Vals, 
Products.A2, 
Products.A2Vals, 
Products.Units, 
Products.Layout, 
Products.Key_Word, 
ProdPics.PicID, 
ProdPics.ItemPic, 
ProdPics.ItemPicLB, 
ProdPics.ItemPicF, 
ProdPics.ItemPicB
 FROMProducts, ProdPics 
 WHERE   Products.ItemID = ProdPics.PicID 
 AND   Description LIKE '%#form.keyword#%' 
 ORItemName LIKE '%#form.keyword#%' 
 AND   ItemID  1  
 ORDER BY ItemName
 /cfquery

TIA
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: SQL Returns

2001-04-12 Thread Bob Silverberg

Well, one way it to use the DISTINCT keyword.  Change your statement from:

SELECT Products.ItemID, etc.

to

SELECT DISTINCT Products.ItemID, etc.

 but I'm not sure if that will give you what you want.

Give it a try and see what the result set looks like.

Bob

-Original Message-
From: Alan Koenig [mailto:[EMAIL PROTECTED]]
Sent: April 12, 2001 12:58 PM
To: CF-Talk
Subject: SQL Returns


I would like to refine my sql searches down.  From the following sql
statement I am recieving up to 12 returns of the same record.  How can I
make this so that there is only 1 return for each record?
 cfquery datasource="#datasource#" name="prodpage"
 SELECT  Products.ItemID,
Products.SKU, Products.ItemName,
Products.CategoryID,
Products.SubCatID,
Products.S_Description,
Products.Description,
Products.Price,
Products.Weight,
Products.A1,
Products.A1Vals,
Products.A2,
Products.A2Vals,
Products.Units,
Products.Layout,
Products.Key_Word,
ProdPics.PicID,
ProdPics.ItemPic,
ProdPics.ItemPicLB,
ProdPics.ItemPicF,
ProdPics.ItemPicB
 FROMProducts, ProdPics
 WHERE   Products.ItemID = ProdPics.PicID
 AND   Description LIKE '%#form.keyword#%'
 ORItemName LIKE '%#form.keyword#%'
 AND   ItemID  1
 ORDER BY ItemName
 /cfquery

TIA
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



cfoutput lists Alphabetically

2001-04-12 Thread Christine Kelley


Hi!
   How do I output a whole list of names from a query 
grouped alphabetically?  Output example:

A
Allen, Bob
Ames, John

B
Book, Sam
Briant, Max

I'm thinking it's by somehow using the group attribute of 
the cfoutput tag or looping through the query, but I'm 
not sure exactly how to get these results.

Thank-you for any help!
   Christine


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Stripping certain ASCII characters for XML file

2001-04-12 Thread Caulfield, Michael

What you really want to do (if you're going to XML) is replace those
characters with numeric entities (XML will bomb on HTML entities unless you
explicitly declare them in your DTD, or use an HTML compliant DTD)

Hence your your amp; is #38;, your non-breaking space is #160; (i think)
and not nbsp; etc.

The easiest way to do this is replace(chr(x),"##"  x  ";", mystring,
"ALL") You can do this in a loop where x=127 to 254 (but make sure to hit
your "" at 38, etc.)

getting your amps; and nbsp; to numeric entities is a little more involved
-- you basically run through an array of replaces where arr[n] is the HTML
entity for chr(n). Somewhere I have a custom tag called
cf_makeEntitiesNumeric that does this, and I can dig it up if you need it.


Michael Caulfield

-Original Message-
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:53 AM
To: CF-Talk
Subject: Stripping certain ASCII characters for XML file


How would I make sure that any output I save to a file (CFFile) is
restricted to characters 32-126 of the 127 US_ASCII approved characters? I'm
currently using Repace("xxx","yyy","zzz","all") to replace / escape some
characters (like "" to "amp;") for an XML file.
Paul Sizemore

Finish Line
3308 N Mitthoeffer Rd
Indianapolis, IN 46235
W: 317-899-1022 ext 3516
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Forms and whatnot

2001-04-12 Thread Bob Silverberg

Try something like:

cfoutput query="myQuery" group="Item"
tr
td#myQuery.ItemName#/td
cfoutput
td
cfif Val(myQuery.Value)#myQuery.Value#
cfelseinput name="Value"
/cfif
/td
/cfoutput
/tr
/cfoutput

Assuming that your query looks like:
ItemName, Value

And is sorted by ItemName, Quarter

I just wrote that in email, so the syntax may not be perfect, but it should
relay the general idea.

Bob

-Original Message-
From: Janine Jakim [mailto:[EMAIL PROTECTED]]
Sent: April 12, 2001 12:47 PM
To: CF-Talk
Subject: Forms and whatnot


I am making an form for people to add information each quarter.  They need
to be able to compare the figures for each quarter in a table. Their quarter
is set up as a stored procedure so they don't need to add which quarter they
are currently editing (ie: it appends all the rows each quarter so their
entry is actually an update query).  I want the previous quarter to show in
one column and the current quarter to be blank and ready to enter.  How is
this possible?
ie:  Sold
Gallons of paint12   1715   ___
Gallons of varnish  5 29   14   ___



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Stripping certain ASCII characters for XML file

2001-04-12 Thread Tim Painter

Paul,

You might want to look at the XMLFormat function.  It may do what you need.

Tim P.
- Original Message -
From: "Paul Sizemore" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 12:52 PM
Subject: Stripping certain ASCII characters for XML file


 How would I make sure that any output I save to a file (CFFile) is
 restricted to characters 32-126 of the 127 US_ASCII approved characters?
I'm
 currently using Repace("xxx","yyy","zzz","all") to replace / escape some
 characters (like "" to "amp;") for an XML file.
 Paul Sizemore

 Finish Line
 3308 N Mitthoeffer Rd
 Indianapolis, IN 46235
 W: 317-899-1022 ext 3516



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: cfoutput lists Alphabetically

2001-04-12 Thread Simon Horwith

Try adding "ASCII(lastname) AS thesortkey" into your select clause, then
group by thesortkey and order by lastname at the end of your where clause.

~Simon

Simon Horwith
Macromedia Certified Instructor
Certified ColdFusion Developer
Fig Leaf Software
1400 16th St NW, # 500
Washington DC 20036
202.797.6570 (direct line)
www.figleaf.com



-Original Message-
From: Christine Kelley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 1:28 PM
To: CF-Talk
Subject: cfoutput lists Alphabetically



Hi!
   How do I output a whole list of names from a query 
grouped alphabetically?  Output example:

A
Allen, Bob
Ames, John

B
Book, Sam
Briant, Max

I'm thinking it's by somehow using the group attribute of 
the cfoutput tag or looping through the query, but I'm 
not sure exactly how to get these results.

Thank-you for any help!
   Christine
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: cfoutput lists Alphabetically

2001-04-12 Thread Bruce, Rodney

this is one way.


CFLOOP index="letter"
list="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z" delimiters=","
CFQUERY name="list" datasource="database" dbtype="ODBC"
SELECT table.fname, table.lname
FROM table
WHERE table.name Like '#letter#%'
ORDER BY table.name;
/CFQUERY

CFOUTPUT#letter#/CFOUTPUT
CFOUTPUT Query="list"
#list.lname#, #list.fname#
/CFOUTPUT
/CFLOOP

-Original Message-
From: Christine Kelley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:28 AM
To: CF-Talk
Subject: cfoutput lists Alphabetically



Hi!
   How do I output a whole list of names from a query 
grouped alphabetically?  Output example:

A
Allen, Bob
Ames, John

B
Book, Sam
Briant, Max

I'm thinking it's by somehow using the group attribute of 
the cfoutput tag or looping through the query, but I'm 
not sure exactly how to get these results.

Thank-you for any help!
   Christine
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: cfoutput lists Alphabetically

2001-04-12 Thread Pooh Bear

in your SQL statement, do an ORDER BY


For example, I want to sort by last name in alphabetical order, my SQL would 
be like

SELECT FirstName, LastName, Address
FROM ClientInfo
Order By LastName


From: Christine Kelley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: cfoutput lists Alphabetically
Date: Thu, 12 Apr 2001 17:28:06 GMT


Hi!
How do I output a whole list of names from a query
grouped alphabetically?  Output example:

A
Allen, Bob
Ames, John

B
Book, Sam
Briant, Max

I'm thinking it's by somehow using the group attribute of
the cfoutput tag or looping through the query, but I'm
not sure exactly how to get these results.

Thank-you for any help!
Christine



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



cfinsert / Oracle Database

2001-04-12 Thread Francis, Jennifer

I'm trying to use cfinsert for the first time after using SQL queries.  I
can get it to work with a local Access Database, no problem.  But when I try
to use the Oracle database on the server, it asks for:

table names must be qualified with the database name and table owner, as in
'customers.dbo.orders'

I know this is basic...and I'm probably overlooking something REALLY simple.
But I just can't figure it out!

TIA --

Jennifer Francis
ATT Wireless
* [EMAIL PROTECTED]

ATT Proprietary - Use pursuant to company instructions
Attention:  Information contained in this EMAIL, including attachments, may
contain sensitive or ATT proprietary information.  Please use pursuant to
company instructions.  Take care not to disclose proprietary information,
and forward this EMAIL and its attachments with caution only to those that
have a need to have this information.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: cfoutput lists Alphabetically

2001-04-12 Thread Bruce, Rodney

Oops, sorry

ORDER BY table.name;  should be: ORDER BY table.lname;

Type O,  lost the l :o)

-Original Message-
From: Christine Kelley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:28 AM
To: CF-Talk
Subject: cfoutput lists Alphabetically



Hi!
   How do I output a whole list of names from a query 
grouped alphabetically?  Output example:

A
Allen, Bob
Ames, John

B
Book, Sam
Briant, Max

I'm thinking it's by somehow using the group attribute of 
the cfoutput tag or looping through the query, but I'm 
not sure exactly how to get these results.

Thank-you for any help!
   Christine
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



  1   2   >