RE: SUSPECT: RE: slow Java call - Determining physical length of string - Pt 2

2004-08-19 Thread Micha Schopman
Why don't you use _javascript_ to return the width? Or is it supposed to
run serverside?

 
script type=text/_javascript_
function stringMetrics(str){
var tmp = document.createElement(SPAN);
tmp.appendChild(document.createTextNode(str));
tmp.style.display = 'none';
document.body.appendChild(tmp);
alert(tmp.offsetWidth);
}
/script

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BLACKSTONE: Software Development Times Article

2004-08-19 Thread Micha Schopman
Competition is good. competition is good. ;)

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Lightweight CMS

2004-08-19 Thread Mark Drew
Macromedia contribute comes to mind

On Wed, 18 Aug 2004 18:35:13 -0700, Matt Robertson
[EMAIL PROTECTED] wrote:
 ContentMonger Lite is free and includes a wysiwyg editor, revision
 control and a lot of other stuff.
 
 http://mysecretbase.com/CMLite_Home.cfm
 
 --
 --Matt Robertson--
 MSB Designs, Inc.
 mysecretbase.com
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Lightweight CMS

2004-08-19 Thread James McCann
can you do a simple admin panel for them to use, like the ones above i presume, ive been using cf for about a month and ive just done an admin panel which i found quite a challenge but i will use these a lot for work. i can edit the data in the table or editable region and del/add stuff to it aswell.
we do this for companies that want to update every week, but the updates arent worth us doing cos its not enough to charge them for.
hope i helped in my essay of useless info.

James
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Double Negative way of making decisions? Good?

2004-08-19 Thread Michael Kear
I've been taking a look at ContentMonger LiteCMS system, mentioned
elsewhere today by Matt Robertson (http://mysecretbase.com/CMLite_Home.cfm),
and I notice a lot of the decisions in the code are made by what seems to be
a double negative for me.Quite confusing until I got used to it.Is
there any performance or other advantage to doing it the way Matt does it,
or is it just a matter of style? 

For example, ContentMonger has this: 

cfif not Compare(GetItem.SecureDisplay,Y)
	. Stuff .
/cfif

Where I'd be more likely to put this: 

cfif GetItem.SecureDisplay EQ Y
	. Stuff .
/cfif

If it's just a matter of style, that's no problem, although I think my way
is more readable and more readily understood, but if there is any other
reason to do it Matt's way I've got an awful lot of revision of code to do!!

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Robertson-Ravo, Neil (RX)
Don't think there is any real performance advantage, its just coder
preference...

But Matt's way IMHO is incorrect in this instance as Compare can return 3
results and Matt is checking for a Boolean.

Compare can return -1,0 or 1 which is not Boolean.





_

From: Michael Kear [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 11:24
To: CF-Talk
Subject: Double Negative way of making decisions? Good?

I've been taking a look at ContentMonger LiteCMS system, mentioned
elsewhere today by Matt Robertson (http://mysecretbase.com/CMLite_Home.cfm),
and I notice a lot of the decisions in the code are made by what seems to be
a double negative for me.Quite confusing until I got used to it.Is
there any performance or other advantage to doing it the way Matt does it,
or is it just a matter of style? 

For example, ContentMonger has this: 

cfif not Compare(GetItem.SecureDisplay,Y)
. Stuff .
/cfif

Where I'd be more likely to put this: 

cfif GetItem.SecureDisplay EQ Y
. Stuff .
/cfif

If it's just a matter of style, that's no problem, although I think my way
is more readable and more readily understood, but if there is any other
reason to do it Matt's way I've got an awful lot of revision of code to do!!

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Micha Schopman
No, he is checking for a string, not a Boolean. Boolean is either 1/0 or
true/false but not y or n.

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Access SQL Question

2004-08-19 Thread Jochem van Dieten
Qasim Rasheed wrote:
 I want to recursively delete descendants at all levels. Any thoughts?

How about a self-referencing foreign key with ON DELETE CASCADE?

Jochem
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Access SQL Question

2004-08-19 Thread Micha Schopman
Or,

 
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

 
ALTERPROCEDURE dbo.upu_Instance_Delete
@InstanceIDint
AS
-- Variables
DECLARE@lCurrentID int
DECLARE@lError int
DECLARE@lInstanceIDint
DECLARE@lPreviousIDint
--Find Children and kill them all.
BEGIN TRAN trInstanceDelete
SET@lPreviousID = -1
SET@lCurrentID = 0
WHILE (@lCurrentID  @lPreviousID) BEGIN
SET@lPreviousID = @lCurrentID
-- Volgende record ophalen
SELECT@lCurrentID= MIN
(I.InstanceID)
FROMInstance I
WHERE(I.ParentID = @InstanceID)
AND(I.InstanceID 
@lPreviousID)
SET@lError = @@ERROR
IF (@lError  0) BEGIN
RAISERROR ('Fout bij ophalen
Instance! Fout: %d', 16, 1, @lError)
ROLLBACK TRAN trInstanceDelete
RETURN (-1)
END
-- Controleren of er een nieuwe gevonden is
SET@lCurrentID = ISNULL (@lCurrentID, 0)
IF ((@lCurrentID  0) AND (@lCurrentID 
@lPreviousID)) BEGIN
-- Delete children
EXEC upu_Instance_Delete
@InstanceID = @lCurrentID
END
END
DELETEInstance
WHERE(InstanceID = @InstanceID)
SET@lError = @@ERROR
IF (@lError  0) BEGIN
RAISERROR ('Fout bij verwijderen instance! Fout:
%d', 16, 1, @lError)
ROLLBACK TRAN trInstanceDelete
RETURN (-1)
END
COMMIT TRAN trInstanceDelete
-- The End
RETURN (0)

 
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Freelance

2004-08-19 Thread vishnu prasad
Hi All
i would like to do freelance job in Coldfusion ,ASP
how can i proceed,how i need to approch to get freelance job?

if anybody intrest in giving freelance job i can send the prototype which i developed

thanks in advance
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfx_MyHelloColdFusion - SOLVED

2004-08-19 Thread Craig Dudley
Why not copy cfx.jar into your development directory e.g. c:\java ?,
your'e comamnd line would then be much shorter

in c:\java, just type javac -classpath cfx.jar MyHelloColdFusion.java
somewhat easier yes? Then just move the compiled class file to wherever
you want it.

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2004 22:12
To: CF-Talk
Subject: Re: cfx_MyHelloColdFusion - SOLVED

holy crap!!! the compiling is fixed.

i tried this at the command line:

javac -classpath CFusionMX\lib\cfx.jar
c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

when it should be 

javac -classpath c:\CFusionMX\lib\cfx.jar
c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java

i forgot the drive letter in the classpath .. DOH!!! 

i may be back :) 
thanks for responding so quickly!

- joe

Joe,

It appears as though you the cfx.jar is not in your class path.This
JAR
contains all of the interface classes that the ColdFusion Server uses
to
connect to your Java CFX.

For CFMX this can be located in the lib subdirectory of your server
installation.
For CF 5 you can locate this in the Java subdirectory of your server
installation.

rish

-Original Message-
From: joe velez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 18, 2004 4:01 PM
To: CF-Talk
Subject: CFX_MyHelloColdFusion


Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following
errors

MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
import com.allaire.cfx.* ;
^
MyHelloColdFusion.java [13:1] cannot resolve symbol
symbol: class CustomTag 
location: class MyHelloColdFusion
public class MyHelloColdFusion implements CustomTag {
^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Request 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
 ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol: class Response 
location: class MyHelloColdFusion
public void processRequest( Request request, Response response )
^
4 errors
Errors compiling MyHelloColdFusion.

JAVA FILE

import com.allaire.cfx.* ;

public class MyHelloColdFusion implements CustomTag {
public void processRequest( Request request, Response response )
throws Exception {
String strName = request.getAttribute( NAME ) ;
response.write( Hello,  + strName ) ;
}
}

Ok, now i think the last 3 errors occur because of the first error, so
lets
start there.

How can i add the package or what do i need to do to get this working?

I'm runningCFMX 6,1,0,63958 on Win2K Server and the version info for
Java
is:
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

If anyone can help, thanks! If I can get this one working, I'm hoping
to
create my first real custom tag :) 

Thanks

Joe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Robertson-Ravo, Neil (RX)
Ermunless I read it wrong he is using Compare and it is this which is
comparing the string - The actual CFIF is checking for the value returned
back from this Compare which is going to be -1,0,1 which is not
Boolean.the code Matt listed is checking for a boolean value (well he is
assuming its 1 or 0 / True / False).

I am not sure how CF treats -1 - i.e. does it treat it as False?This is
classic case of using ColdFusion's typelessness to your advantage.





_

From: Micha Schopman [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 11:37
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

No, he is checking for a string, not a Boolean. Boolean is either 1/0 or
true/false but not y or n.

Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Michael Kear
It treats zero as false, and the other two values as true.You can tell
because the following both give the same result:

cfif not Compare(Z,Y)Stuff/cfif

cfif not Compare(Y,Z)Stuff/cfif

while

cfif not Compare(Y,Y)Other stuff/cfifgives a different result.

For my money though, the fact that it's a double negative means it's
sufficiently easy to get confused (for me anyway) and therefore to code
round the wrong way, that I'm going to stick with CFIF variable NEQ Y.

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com


From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, 19 August 2004 9:28 PM
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

Ermunless I read it wrong he is using Compare and it is this which is
comparing the string - The actual CFIF is checking for the value returned
back from this Compare which is going to be -1,0,1 which is not
Boolean.the code Matt listed is checking for a boolean value (well he is
assuming its 1 or 0 / True / False).

I am not sure how CF treats -1 - i.e. does it treat it as False?  This is
classic case of using ColdFusion's typelessness to your advantage.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




escaping apostrphee in a select statement

2004-08-19 Thread cf coder
Hi Guys,

I'm passing a url variable a string/text that has a apostrphee in it.

Ex:
mytext = It's a test

I'm escaping it like this:

window.location.href = "">

I'm passing this url varialbe, url.txt to the select statement,

I get an error: 

Incorrect syntax near apos;sapos;. 

Can someone show me how to get round this please.

Best regards
cfcoder
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Micha Schopman
The value -1 is treated as true (odd though, but yes it validates as
true), you are right with the compare returnvalue, but I thought you
meant the value y to be a Boolean value, If not.. erm.. oops .. need a
beer? 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: escaping apostrphee in a select statement

2004-08-19 Thread Micha Schopman
... bbzzz Crystal Ball warming up Bz... I see women... ... the
show me code... in bikini's... .. do you have some example code to show
us? :-)

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Sandy Clark
cf_historylesson

 
Michael Dinowitz had written an article on this years ago. Apparently it was
much faster to use Not compare() back during the CF3 and 4 days.I remember
writing stuff like that then.The reasons for using it became less useful
when CF5 came out since it ran considerably faster than older versions of CF
and squeezing every last millisecond became far less important (at least for
me) than writing more easily understood code,

 
The original article can be found at:
http://www.fusionauthority.com/alert/index.cfm?alertid=5#Tech2. (2000) 

 
Tom Nunamaker's article Nov 2002 on comparisons can be read here
http://www.findarticles.com/p/articles/mi_m0MLU/is_11_4/ai_94550933/pg_1
/cf_historylesson

 
Sandy

_

From: Michael Kear [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 6:24 AM
To: CF-Talk
Subject: Double Negative way of making decisions? Good?

I've been taking a look at ContentMonger LiteCMS system, mentioned
elsewhere today by Matt Robertson (http://mysecretbase.com/CMLite_Home.cfm),
and I notice a lot of the decisions in the code are made by what seems to be
a double negative for me.Quite confusing until I got used to it.Is
there any performance or other advantage to doing it the way Matt does it,
or is it just a matter of style? 

For example, ContentMonger has this: 

cfif not Compare(GetItem.SecureDisplay,Y)
. Stuff .
/cfif

Where I'd be more likely to put this: 

cfif GetItem.SecureDisplay EQ Y
. Stuff .
/cfif

If it's just a matter of style, that's no problem, although I think my way
is more readable and more readily understood, but if there is any other
reason to do it Matt's way I've got an awful lot of revision of code to do!!
 http://www.houseoffusion.com/banners/view.cfm?bannerid=40
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread cf coder
you what? what's your problem? are you a you clown or something?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread cf coder
you what? what's your problem? are you a clown or something?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Robertson-Ravo, Neil (RX)
Yes,classic...-1 as true :-)



_

From: Michael Kear [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 12:47
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

It treats zero as false, and the other two values as true.You can tell
because the following both give the same result:

cfif not Compare(Z,Y)Stuff/cfif

cfif not Compare(Y,Z)Stuff/cfif

while

cfif not Compare(Y,Y)Other stuff/cfifgives a different result.

For my money though, the fact that it's a double negative means it's
sufficiently easy to get confused (for me anyway) and therefore to code
round the wrong way, that I'm going to stick with CFIF variable NEQ Y.

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com


From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, 19 August 2004 9:28 PM
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

Ermunless I read it wrong he is using Compare and it is this which is
comparing the string - The actual CFIF is checking for the value returned
back from this Compare which is going to be -1,0,1 which is not
Boolean.the code Matt listed is checking for a boolean value (well he is
assuming its 1 or 0 / True / False).

I am not sure how CF treats -1 - i.e. does it treat it as False?This is
classic case of using ColdFusion's typelessness to your advantage.

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Double Negative way of making decisions? Good?

2004-08-19 Thread Claude Schneegans
Compare can return -1,0 or 1 which is not Boolean.

In almost any language, 0 is false and not 0 is true, boolean or not.
Even in C which is strongly typed.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: escaping apostrphee in a select statement

2004-08-19 Thread Micha Schopman
Can you provide is with example code so we can find out what is
happening?

 
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: escaping apostrphee in a select statement

2004-08-19 Thread d.a.collie
Your original post wasn't very informative was it?

 
It looks like you have

 
-- page one -
var myText = Show's some example code please;
window.location.href = ''#URL.text#')
/cfquery

I'm guessing here... but you then get the error message that you have
quoted cos the apostrophe is in the (escaped) _javascript_ url

 
Here's what _javascript_ escape does ...
http://www.devguru.com/Technologies/ecmascript/quickref/escape.html

 
And you will probably find URLDecode or something or other a help

 
If you gave us the actual code we could help further. as Micha was
trying to.Well I better get back to my own work.

 
-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread Claude Schneegans
Incorrect syntax near apos;sapos;.

This is weird, normally the escape function escapes characters as hexadecimals, not in HTML code.
You should have get %27s%27 here.
Are you sure your _javascript_ code does not redefine the escape function for something to escape
characters as HTML codes?

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread Joe Rinehart
Try:

mytext = It's a test

window.location.href = "">

If you need to escape a ' inside of a string surrounded by ' marks,
use \ (standard for ECMA escaping), i.e., 'This is Joe\'s example'

-joe

- Original Message -
From: cf coder [EMAIL PROTECTED]
Date: Thu, 19 Aug 2004 07:51:19 -0400
Subject: escaping apostrphee in a select statement
To: CF-Talk [EMAIL PROTECTED]

Hi Guys,

 I'm passing a url variable a string/text that has a apostrphee in it.

 Ex:
 mytext = It's a test

 I'm escaping it like this:

 window.location.href = "">

 I'm passing this url varialbe, url.txt to the select statement,

 I get an error: 

 Incorrect syntax near apos;sapos;. 

 Can someone show me how to get round this please.

 Best regards
 cfcoder
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread cf coder
ok, I'm passing the url variable to the stored procedure

 page two ---

CFPROCPARAM TYPE=IN
VALUE=#URLDecode(url.text)#
DBVARNAME=@db_txt
CFSQLTYPE=cf_sql_char

This is when the error occurrs. When I execute the query in query analyser

this is what the text looks like

@db_txt = 'it''s a test'
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread Claude Schneegans
VALUE=#URLDecode(url.text)#

You don't have to URLDecode a string passed by URL, it is supposed to be decoded by the HTTP server
when it receives the request.

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Inserting into multiple tables

2004-08-19 Thread Chris Kavanagh
Dear list,

So here I am, at the last line of defence, so to speak: my first app is 
due today!

Luckily, I'm nearly finished, but I have another stupid question for 
you lot, my new favourite people.I'd like to insert values from an 
insert form into two separate tables.I'm planning to use a SQL insert 
like this:

CFQUERY datasource=myDatasource
	INSERT INTO tasks(taskname,deadline,notes)
	VALUES('#taskname#','#deadline#','#notes#')
/CFQUERY

In my backend Access database I have a relationship between two tables:

TASKSPROJECTS
Project		--		projectsID [key]
	projectname

The insert form gets all the projectnames and puts them in a list 
box.But how do I go from there to inserting the corresponding 
projectsID value into the tasks table?

Thank you for your continued patience with my stupid, basic questions.

Yours tiredly and confusedly,
CK
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread Ewok
what's a you clown; )
- Original Message - 
From: cf coder 
To: CF-Talk 
Sent: Thursday, August 19, 2004 8:10 AM
Subject: Re: escaping apostrphee in a select statement

you what? what's your problem? are you a you clown or something?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Inserting into multiple tables

2004-08-19 Thread Deanna Schneider
I'm not sure I'm following you, Chris. But, are you saying that you're
currently passing the projectname, but you need the projectid? If so, you
can display the projectname and pass the projectid. On your form, just do
this:

select...
option value=#projectid##projectname#/option
/select

- Original Message - 
From: Chris Kavanagh

!

 Luckily, I'm nearly finished, but I have another stupid question for
 you lot, my new favourite people.I'd like to insert values from an
 insert form into two separate tables.I'm planning to use a SQL insert
 like this:

 CFQUERY datasource=myDatasource
 INSERT INTO tasks(taskname,deadline,notes)
 VALUES('#taskname#','#deadline#','#notes#')
 /CFQUERY

 In my backend Access database I have a relationship between two tables:

 TASKS PROJECTS
 Project -- projectsID [key]
 projectname

 The insert form gets all the projectnames and puts them in a list
 box.But how do I go from there to inserting the corresponding
 projectsID value into the tasks table?

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Coldfusion MX on SuSe? (And ideally MySQL...)

2004-08-19 Thread rob.stokes
Hi All,

I've got a (fairly beefy) server sitting upstairs working as a router for the cable connection we've got. I thought to myself, why don't I set this up as a dev server for my CFMX apps? The problem is, it's a SuSe linux distro, and I know next to nothing about setting up CFMX on unix, or integrating apache and MySQL with it.

Basically I'm asking if any one has got any advice, or a step-by-step idiots guide on the web would be useful.

And of course, it'd be handy to know if CFMX  suse  mysql  apache actually works! At a later stage I'd like to run PHP - can this integrate into my CFMX setup without the two crossing swords?

Cheers,
Rob
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Inserting into multiple tables

2004-08-19 Thread Chris Kavanagh
In my backend Access database I have a relationship between two 
 tables:

TASKS PROJECTS
Project -- projectsID [key]
projectname

That didn't survive reformatting very well.Let me try again:

TASKS
project		(linked to projectsID)

PROJECTS
projectsID		(the key)
projectname
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Web Form Data Security

2004-08-19 Thread Damien McKenna
On Aug 18, 2004, at 5:58 PM, CF Coder2 wrote:
 What other best practices are there to ensure nothing can happen?

One idea would be to add a unique variable in a hidden field to each 
form.You would store the variable in a database and clear it when the 
form was submitted.If a form was submitted and there was not a 
matching variable the input would not be accepted.This would be one 
way to avoid hacker/cracker/script-kiddies.

Then again, all they'd have to do is load the form, which would have a 
valid variable in it, then do their funny stuff based off the variable. 
I never said it was fool proof ;)
-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
Nothing endures but change. - Heraclitus
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFC troulbe

2004-08-19 Thread Dan Phillips
Hello everyone. I'm having trouble with a CFC and I'm at my wits end. I'm running MX6.1 on a Windows 2003 server with IIS 6. When I go to domain.com/cfc/clients.cfc I get the error:

Error Occurred While Processing Request
File not found: /CFIDE/componentutils/cfcexplorer.cfc

 
I'm not sure why this is looking for the CFIDE directory. I have verified that cfcexplorer.cfcdoes exist on the server and that my mapping for the CFC folder is setup correctly in the CF admin. 

This works on my Windows 2000 box. Any ideas?

Much thanks! 

Dan Phillips
CFXhosting.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




SOLVED: Inserting into multiple tables

2004-08-19 Thread Chris Kavanagh
Dear list,

I think I'm falling in love with you, all of you.Deanna, thank you so 
much, that worked perfectly.

Kind regards,
CK.

On 19 Aug 2004, at 2:05 pm, Deanna Schneider wrote:

 I'm not sure I'm following you, Chris. But, are you saying that you're
currently passing the projectname, but you need the projectid? If so, 
 you
can display the projectname and pass the projectid. On your form, 
 just do
this:

select...
option value=#projectid##projectname#/option
/select

- Original Message -
From: Chris Kavanagh

!

 Luckily, I'm nearly finished, but I have another stupid question for
 you lot, my new favourite people.  I'd like to insert values from an
 insert form into two separate tables.  I'm planning to use a SQL 
 insert
 like this:

 CFQUERY datasource=myDatasource
 INSERT INTO tasks(taskname,deadline,notes)
 VALUES('#taskname#','#deadline#','#notes#')
 /CFQUERY

 In my backend Access database I have a relationship between two 
 tables:

 TASKS PROJECTS
 Project -- projectsID [key]
 projectname

 The insert form gets all the projectnames and puts them in a list
 box.  But how do I go from there to inserting the corresponding
 projectsID value into the tasks table?


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Lofback, Chris
IIRC, there was a time (thru CF5, I believe) where the use of Compare() was said to be faster because it was a numeric function rather than a string comparison (like IS or EQ).So this was an optimization method.I found it difficult to read too so I stuck with IS and suffered the few millisecond penalty.That penalty may not exist any more in CFMX, though.

 
As for the value of Compare(), CF treats numbers as boolean like this:0 is false, anything else is true.I'm pretty sure that is true across all programming languages.

 
Chris

-Original Message-
From: Michael Kear [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 6:24 AM
To: CF-Talk
Subject: Double Negative way of making decisions? Good?

I've been taking a look at ContentMonger LiteCMS system, mentioned
elsewhere today by Matt Robertson (http://mysecretbase.com/CMLite_Home.cfm),
and I notice a lot of the decisions in the code are made by what seems to be
a double negative for me.Quite confusing until I got used to it.Is
there any performance or other advantage to doing it the way Matt does it,
or is it just a matter of style? 

For example, ContentMonger has this: 

cfif not Compare(GetItem.SecureDisplay,Y)
. Stuff .
/cfif

Where I'd be more likely to put this: 

cfif GetItem.SecureDisplay EQ Y
. Stuff .
/cfif

If it's just a matter of style, that's no problem, although I think my way
is more readable and more readily understood, but if there is any other
reason to do it Matt's way I've got an awful lot of revision of code to do!!

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: escaping apostrphee in a select statement

2004-08-19 Thread Greg Morphis
I use JSStringFormat a lot when playing with JS in my ColdFusion, try that..

On Thu, 19 Aug 2004 09:04:33 -0400, Ewok [EMAIL PROTECTED] wrote:
 what's a you clown; )
- Original Message -
From: cf coder
To: CF-Talk
Sent: Thursday, August 19, 2004 8:10 AM
Subject: Re: escaping apostrphee in a select statement
 
you what? what's your problem? are you a you clown or something?
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFC troulbe

2004-08-19 Thread d.a.collie
 Error Occurred While Processing Request
 File not found: /CFIDE/componentutils/cfcexplorer.cfc

 
I'm a noob to CFC's but I got the exact same when I called a controller
CFC via HTTP post and I didn't relocate anywhere after it... it seemed
to redirect to the cfc explorer without the redirect to the view layer

 
dunno if that helps(doesn't explain the error of not finding the
cfcexplorer but heh :)

 
-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Inserting into multiple tables

2004-08-19 Thread Greg Morphis
yeah, you really cant do it easily with a list box, use a select box
as Deanna said..
if not you'd have to pass the string, and first query the string off
the projects table to get the projectid for that project and then
insert it into the tasks table.

On Thu, 19 Aug 2004 14:06:53 +0100, Chris Kavanagh [EMAIL PROTECTED] wrote:
 In my backend Access database I have a relationship between two
  tables:
 
 TASKS PROJECTS
 Project -- projectsID [key]
 projectname
 
 That didn't survive reformatting very well.Let me try again:
 
 TASKS
 project(linked to projectsID)
 
 PROJECTS
 projectsID(the key)
 projectname
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread John Beynon
it's looking for the component explorer since you've typed the .cfc
extension - it should present you with the components introspection
resuls. is this what you're expecting? have you got a /cfide mapping
on your virtual server?

jb.

On Thu, 19 Aug 2004 09:18:05 -0400, Dan Phillips [EMAIL PROTECTED] wrote:
 Hello everyone. I'm having trouble with a CFC and I'm at my wits end. I'm running MX6.1 on a Windows 2003 server with IIS 6. When I go to domain.com/cfc/clients.cfc I get the error:
 
 Error Occurred While Processing Request
 File not found: /CFIDE/componentutils/cfcexplorer.cfc
 
 I'm not sure why this is looking for the CFIDE directory. I have verified that cfcexplorer.cfcdoes exist on the server and that my mapping for the CFC folder is setup correctly in the CF admin.
 
 This works on my Windows 2000 box. Any ideas?
 
 Much thanks!
 
 Dan Phillips
 CFXhosting.com
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Greg Morphis
Why dont you use JS and let the client do all the validation?

On Thu, 19 Aug 2004 15:58:00 +1200, Mark Henderson [EMAIL PROTECTED] wrote:
 hi Qasim,
 I was doing something similar to this when your answer arrived, only I wasn't using urlencoding (though it was still working). After I broke it down to a simple test case and compared to my login form I realised I needed to pass the values back via the url.I must admit I'm still not sure why. Oh, and one last thing -- thanks!
 
 Regards
 
 Mark Henderson
 Web Designer
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
 205 Main Street
 PO Box 143, Gore
 Southland 9700
 Phone: (03) 203 
 Fax: (03) 203 9900
 
 
 
 
 -Original Message-
 From: Qasim Rasheed [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 3:14 PM
 To: CF-Talk
 Subject: Re: form validation problems
 
 Pass the message with cflocation too
 
 cfif variables.msg IS NOT 
cfset variables.msg=h1ENTRY ERROR/h1The following error(s)
 were detected:ul#variables.msg#/ul
cflocation URL="">
 variables.msg)#
 /cfif
 
 - Original Message -
 From: Mark Henderson [EMAIL PROTECTED]
 Date: Thu, 19 Aug 2004 12:43:32 +1200
 Subject: form validation problems
 To: CF-Talk [EMAIL PROTECTED]
 
 I've recently revisited some form validation issues, and once again
 it's driving me batty. Here is what I have so far...
 
 here's the main part of the form from dsp_register.cfm
 at the top I set a default value for variables.msg and form fields
 
 cfparam name=form.team_name default=
 cfparam name=form.company_name default=
 cfparam name=form.address_1 default=
 cfparam name=form.email default=
 cfparam name=variables.msg default=
 
 cfif isdefined(client.form_variables)
cfwddx action="" input=#client.form_variables# output=formTemp
cfloop index=formItem list=#StructKeyList(formTemp)#
 cfset StructInsert(form,formItem,evaluate(formTemp. 
 formItem), true)
/cfloop
 /cfif
 
cfif variables.msg is not 
 p#variables.msg#/p
/cfif
 
 form name=npcregister method=post enablecab=No
action="">
 class=center
div class=rugbyform
 Team Name:br /
 input type=text name=team_name value=#form.team_name#
 size=34 /br /
 Company Name:br /
 input type=text name=company_name value=#form.company_name#
 size=34 /br /
 Address 1:br /
 input type=text name=address_1 value=#form.address_1#
 size=34 /br /
 Email:br /
 input type=text name=email size=34 /br /br /
 
 Charge my Chamber account
 input type=radio name=payment value=charge chamber
 class=radio /br /
 I will forward payment to Box 237, Gore
 input type=radio name=payment value=forward payment
 class=radio /br /br /
 input type=submit name=submit id=submit value=Submit
 class=button /
 input type=reset name=reset id=reset value=Reset class=button /
/div
 
 /form
 
 it then gets sent to the XFA.submitRegister for validation (using
 act_validateRegisterInfo.cfm) which is as follows:
 
 cfwddx action="" input=#form#
 output=client.form_variables usetimezoneinfo=No
 
cfif form.team_name IS 
 cfset variables.msg=variables.msg  liYou must enter your team
 name/li
/cfif
cfif form.company_name IS 
 cfset variables.msg=variables.msg  liYou must enter your
 company name/li
/cfif
cfif form.address_1 IS 
 cfset variables.msg=variables.msg  liYou must enter a valid
 address/li 
/cfif
 
 cfif variables.msg IS NOT 
cfset variables.msg=h1ENTRY ERROR/h1The following error(s)
 were detected:ul#variables.msg#/ul
cflocation URL="">
 /cfif
 
 Which by rights should send the user back to the form if one of the
 above fields is empty, and above the form it should list the errors.
 However, when a field is left empty such ss company_name, it will send
 me back and it will display the values I had previously entered (using
 cfwddx) that were ok...but it WONT show me the variables.msg for those
 invalid entries (variables.msg is always )
 
 What am I doing wrong? All I want to do is output the relevant error
 messages in a list when the user is returned to the form and keep
 previously entered form data. Help! Or is there another more efficient
 way of achieving this? I've heard of cf_reuseform but know nothing
 about it.
 
 All help greatly appreciated. TIA
 
 Regards
 Mark
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread Dan Phillips
it's looking for the component explorer since you've typed the .cfc
extension - it should present you with the components introspection
resuls. is this what you're expecting? have you got a /cfide mapping
on your virtual server?

jb.

On Thu, 19 Aug 2004 09:18:05 -0400, Dan Phillips [EMAIL PROTECTED] wrote:


Yes, I was expecting the results. I have a cfide mapping in the default website but not for this one in IIS. When I did add it and run the URL, it brought up the CF admin.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: form validation problems

2004-08-19 Thread d.a.collie
 Why dont you use JS and let the client do all the validation?

 
Cos a user may have _javascript_ turned off... never trust the client
(well you know what I mean)

 
-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread Joe Rinehart
Dan,

Browsing to your CFC directly should bring up the CF Admin login
screen.After entering your password, you'll see the introspection
information for that CFC.

CFC's aren't used directly by your browser, but by your .CFM files.

-joe

-- 
For Tabs, Trees, and more, use the jComponents:
http://clearsoftware.net/clear/?template=downloads.jComponents
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread Brian Kotek
If you log it it should show you the introspection information for the
CFC. The CFC Explorer is secured behind the CF Admin login so that
random outsiders can't see the guts of your CFCs.

Hope that helps,

Brian

- Original Message -
From: Dan Phillips [EMAIL PROTECTED]
Date: Thu, 19 Aug 2004 09:32:50 -0400
Subject: Re: CFC troulbe
To: CF-Talk [EMAIL PROTECTED]

it's looking for the component explorer since you've typed the .cfc
extension - it should present you with the components introspection
resuls. is this what you're expecting? have you got a /cfide mapping
on your virtual server?

jb.

On Thu, 19 Aug 2004 09:18:05 -0400, Dan Phillips [EMAIL PROTECTED] wrote:


Yes, I was expecting the results. I have a cfide mapping in the
default website but not for this one in IIS. When I did add it and run
the URL, it brought up the CF admin.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Joe Rinehart
Hi Greg,

Letting JS do all your validation is a Very Bad Idea.

First and foremost, users can turn it off at will.

Secondly, most JS validation is only written to validate type, not value.

In general, you should apply validation on the server side that
validates both the type of input, and that it's valid according to
your business logic (did they try to enter a date for a future
appointment that's in the past?), and then again at the database level
using parameters (for type), and logic + constraints for your business
logic.

-joe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Robertson-Ravo, Neil (RX)
This not what I am saying...

0 = False

Not 0 = True

Not 1 = False

What I am saying is that Compare() can yield 3 return values-1,1 or 0
and by saying cfif NOT Compare(..) you are checking for a Boolean value...
-1 is not Boolean.

_

From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 13:19
To: CF-Talk
Subject: Re: Double Negative way of making decisions? Good?

Compare can return -1,0 or 1 which is not Boolean.

In almost any language, 0 is false and not 0 is true, boolean or not.
Even in C which is strongly typed.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread John Beynon
it brought up the CF admin.

It should say Component Explorer login or something like that, punch
in your password and iit will show you the introspection

On Thu, 19 Aug 2004 09:38:29 -0400, Joe Rinehart [EMAIL PROTECTED] wrote:
 Dan,
 
 Browsing to your CFC directly should bring up the CF Admin login
 screen.After entering your password, you'll see the introspection
 information for that CFC.
 
 CFC's aren't used directly by your browser, but by your .CFM files.
 
 -joe
 
 --
 For Tabs, Trees, and more, use the jComponents:
 http://clearsoftware.net/clear/?template=downloads.jComponents
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: CFC troulbe

2004-08-19 Thread d.a.collie
 CFC's aren't used directly by your browser, but by your .CFM files.

 
I use them as my controller's... my form submit calls the CFC
directly or is this just bad?

 
(Based on http://www.benorama.com/coldfusion/patterns/part2.htmwhich I
like)

 
-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread Dan Phillips
Brian and Joe, 

I think that just might do it. I'll be back if I still run into trouble
:-) 

Much thanks! Enjoy a free virtual beverage of your choice. My Treat.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Ewok
yeah, you mean never trust a client; )

js is just a luxury for your server's sake and the sake of time for AOL users (heh)
I always have it there to validate my forms but in the end... the cf validation has the final say.

liek d.a said, active scripting could be turned off. You could also have the slighest error or unsupported function in your js script that breaks ALL of the validation.

TIP: disable JS and test all of your forms when you're writing them

... and they lived happily ever after.

The End
- Original Message - 
From: [EMAIL PROTECTED] 
To: CF-Talk 
Sent: Thursday, August 19, 2004 9:40 AM
Subject: RE: form validation problems

 Why dont you use JS and let the client do all the validation?

Cos a user may have _javascript_ turned off... never trust the client
(well you know what I mean)

-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFC troulbe

2004-08-19 Thread Andy Allan
It's supposed to bring up the CFAdmin.. Fire in your password and then it gives
you the CFC explorer.

Quoting Dan Phillips [EMAIL PROTECTED]:

 it's looking for the component explorer since you've typed the .cfc
 extension - it should present you with the components introspection
 resuls. is this what you're expecting? have you got a /cfide mapping
 on your virtual server?
 
 jb.
 
 On Thu, 19 Aug 2004 09:18:05 -0400, Dan Phillips [EMAIL PROTECTED]
 wrote:
 
 
 Yes, I was expecting the results. I have a cfide mapping in the default
 website but not for this one in IIS. When I did add it and run the URL, it
 brought up the CF admin. 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Double Negative way of making decisions? Good?

2004-08-19 Thread Joe Rinehart
Hey Neil,

-1 is boolean for true in CF (and in most languages I've dealt with),
therefore doing the boolean test not compare() is a valid boolean
comparison for all three results of compare().

-joe

- Original Message -
From: Robertson-Ravo, Neil (RX) [EMAIL PROTECTED]
Date: Thu, 19 Aug 2004 14:43:40 +0100
Subject: RE: Double Negative way of making decisions?Good?
To: CF-Talk [EMAIL PROTECTED]

This not what I am saying...

 0 = False

 Not 0 = True

 Not 1 = False

 What I am saying is that Compare() can yield 3 return values-1,1 or 0
 and by saying cfif NOT Compare(..) you are checking for a Boolean value...
 -1 is not Boolean.

 
 _

 From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
 Sent: 19 August 2004 13:19
 To: CF-Talk
 Subject: Re: Double Negative way of making decisions? Good?

 Compare can return -1,0 or 1 which is not Boolean.

 In almost any language, 0 is false and not 0 is true, boolean or not.
 Even in C which is strongly typed.
 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.

 
 _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Claude Schneegans
First and foremost, users can turn it off at will.

Well, is a user turns off his _javascript_, it's HIS problem, and _javascript_ is so much used
that chances he ever reaches a page with a form are very low anyway.

Secondly, most JS validation is only written to validate type, not value.

??? I can write code in _javascript_ to verify whatever I want, almost as easily as in CF.
The only thing I cannot do is check values against data stored in the database.
This should be checked on server side of course.
But most of the validation can be and SHOULD be done client side on the contrary.
The advantage is that it is much faster and the user still can go back to make the necessary modifications.
Many sites using server side validation will just tell you there is an error and just redisplay the empty form,
this is very frustrating. If verification is done server side, the server must return the user to the form with the
field initialized with the values the user already filled in, even if there are errors.
With _javascript_ validation, this is automatic.

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Web Services: Sharing Data - E-Commerce

2004-08-19 Thread Chris Johnston
On Thu, 19 Aug 2004 02:10:52 +, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 What's the best way to securely transfer customer's order information from an Affiliate
 back to our company, the distributor?

SSL

 After an Affiliate's order has been successfully taken, we're suggesting the Affiliate Web site write
 the order information to an XML template that we'll define and then give to each Affiliate
 a secure folder to ftp the XML file to. We perform a similar process with this type of XML
 data importing.I just wanted to get some feedback if anyone had any other ideas or better methods.
 

I am not sure if this is possible, but instead of having them ftp the
file back, why not have them feed it into another web service on you
website over SSL? This way the information is both secure and already
in your database to be acted upon.

Otherwise, I would suggest setting up sftp on a server. At least the
information will be encrypted during transmission.

-- 
chris johnston

www.fuzzylizard.com
For millions of years, mankind lived just like the animals and
something happened which unleashed the power of our imagination, we
learned to talk.
Pink Floyd
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




CFCHART 3D Depth

2004-08-19 Thread Ewok
I haven't found an answer one way or the other on rather or not you can adjust the depth of the 3D effect in a cfchart. The flat is... well it's flat and the default 3D depth is way too deep. Any clues?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Claude Schneegans
Cos a user may have _javascript_ turned off... never trust the client

One of the first thing I do in my apps is to check if the user has _javascript_ turned off.
If yes, he his requested to turn it on.
Gee, he can also close his Browser or pull the plug of his PC, the form won't work either.
If he closes everything, its his problem. There is a decent limit to paranoia ;-)

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: form validation problems

2004-08-19 Thread Tangorre, Michael
 Well, is a user turns off his _javascript_, it's HIS problem, 
 and _javascript_ is so much used that chances he ever reaches a 
 page with a form are very low anyway.

It actually becomes your problem. You have to clean up the mess if one
should occur fomr someone circumventing your JS validation.

 
 This should be checked on server side of course.
 But most of the validation can be and SHOULD be done client 
 side on the contrary.

I disagree. Validation on the client side is a nice to have.. Saves a
few server cycles, blah blah blah...

 The advantage is that it is much faster and the user still 
 can go back to make the necessary modifications.

My users can go back and make changes. In fact it is no harder for me to
populate the form coming back from the server than it is for you to
populate it via _javascript_.

 Many sites using server side validation will just tell you 
 there is an error and just redisplay the empty form, this is 
 very frustrating. 

Sites have gotten much better IMO about displaying better messages for
the user, often denoting the field with some kind of image or color,
etc.

My 2 cents.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: form validation problems

2004-08-19 Thread d.a.collie
 But most of the validation can be and SHOULD be done client side on
the contrary.

 
Must disagree... the more client side validation, the better for the end
user and a better app you will build... 

 
But the most important validation is on the server... 

 
You can build something with only server side validation and it will be
more robust than one built with loads of client side validation...Of
course the users'll hate it cos it'll be a PITA to use :)

 
-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




500 error until I refresh

2004-08-19 Thread Chris Kavanagh
Dear list,

Here's an odd one.My page projects.cfm links (via a standard A 
HREF="" to the page newtask.cfm.

In my browser I get an HTTP 500 error - (The page cannot be 
displayed...) but when I refresh it it loads fine.This hasn't 
happened in any of my other .cfm pages - any ideas?

I am running a local server (CFMX dev ed) on a Win XP PC, and viewing 
with IE5.

Puzzled,
CK.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Robertson-Ravo, Neil (RX)
Cool, to be honest, ive never really seen -1 as true, thanks thoughafter
all these years its good to know.



_

From: Joe Rinehart [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 14:53
To: CF-Talk
Subject: Re: Double Negative way of making decisions? Good?

Hey Neil,

-1 is boolean for true in CF (and in most languages I've dealt with),
therefore doing the boolean test not compare() is a valid boolean
comparison for all three results of compare().

-joe

- Original Message -
From: Robertson-Ravo, Neil (RX) [EMAIL PROTECTED]
Date: Thu, 19 Aug 2004 14:43:40 +0100
Subject: RE: Double Negative way of making decisions?Good?
To: CF-Talk [EMAIL PROTECTED]

This not what I am saying...

0 = False

Not 0 = True

Not 1 = False

What I am saying is that Compare() can yield 3 return values-1,1 or 0
and by saying cfif NOT Compare(..) you are checking for a Boolean value...
-1 is not Boolean.

 _

From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 13:19
To: CF-Talk
Subject: Re: Double Negative way of making decisions? Good?

Compare can return -1,0 or 1 which is not Boolean.

In almost any language, 0 is false and not 0 is true, boolean or not.
Even in C which is strongly typed.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.

 _

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: form validation problems

2004-08-19 Thread Micha Schopman
One of the most important rules in software development is not to trust
user input. ever! 

 
_javascript_ is an excellent scripting language providing a user friendly
1st layer of notifying problems, fast, and responding to those problems
with another piece of _javascript_. Whether is it displaying an alert, or
showing a red border around the formfield containing the errors.

 
But you should always check user input again, on the server side. I
am able to change everything within _javascript_, I can fake every
formfield if I want to. If I can do it, certainly somebody else also.
Micha Schopman 
Software Engineer 
Modern Media, Databankweg 12 M, 3821 ALAmersfoort 
Tel 033-4535377, Fax 033-4535388 
KvK Amersfoort 39081679, Rabo 39.48.05.380
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread James Smith
Actually if you want to be really picky I think you will find that
historically -1 is true and 0 is false, the 1 is the value that is not
strictly Boolean.However Claude is correct in saying In almost any
language, 0 is false and not 0 is true, Boolean or not.

--
Jay 

 -Original Message-
 From: Robertson-Ravo, Neil (RX) 
 [mailto:[EMAIL PROTECTED] 
 Sent: 19 August 2004 14:44
 To: CF-Talk
 Subject: RE: Double Negative way of making decisions? Good?
 
 This not what I am saying...
 

 
 0 = False
 
 Not 0 = True
 
 Not 1 = False
 

 
 What I am saying is that Compare() can yield 3 return 
 values-1,1 or 0 and by saying cfif NOT Compare(..) you 
 are checking for a Boolean value...
 -1 is not Boolean.
 

 
 _
 
 From: Claude Schneegans [mailto:[EMAIL PROTECTED]
 Sent: 19 August 2004 13:19
 To: CF-Talk
 Subject: Re: Double Negative way of making decisions? Good?
 

 
 Compare can return -1,0 or 1 which is not Boolean.
 
 In almost any language, 0 is false and not 0 is true, boolean or not.
 Even in C which is strongly typed.
 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: 
 [EMAIL PROTECTED]) Thanks.
 
 _
 
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Coldfusion MX on SuSe? (And ideally MySQL...)

2004-08-19 Thread Chris Johnston
On Thu, 19 Aug 2004 14:07:23 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 I've got a (fairly beefy) server sitting upstairs working as a router for the cable connection we've got. I thought to myself, why don't I set this up as a dev server for my CFMX apps? The problem is, it's a SuSe linux distro, and I know next to nothing about setting up CFMX on unix, or integrating apache and MySQL with it.
 
 Basically I'm asking if any one has got any advice, or a step-by-step idiots guide on the web would be useful.
 
 And of course, it'd be handy to know if CFMX  suse  mysql  apache actually works! At a later stage I'd like to run PHP - can this integrate into my CFMX setup without the two crossing swords?
 

First question that needs to be answered is what version of SUSE do
you have? Second, do you mind changing to Red Hat? In addition, what
version of MySQL do you need?

I have White Box Linux[1] running on my home server and I have CFMX
6.1, jRun, Apache 2, MySQL 3.xx, PHP, PostgreSQL all running quite
happily beside each other. So it is more than possible to do.

As for a tutorial on how to set all of this up, that I do not have.
Although, if you get the right version of SUSE, just doing the install
is enough to install MySQL, PHP, and Apache onto the box for you. This
is the easiest way of getting things up and running. Installing
ColdFusion MX, for me at least, is a fairly trivial thing. Just
remember to use the GUI installer.

Any questions, just shout.

[1] White Box Linux is a clone of Red Hat Enterprise Linux 3 AS. 
http://www.whiteboxlinux.org
-- 
chris johnston

www.fuzzylizard.com
For millions of years, mankind lived just like the animals and
something happened which unleashed the power of our imagination, we
learned to talk.
Pink Floyd
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Coldfusion MX on SuSe? (And ideally MySQL...)

2004-08-19 Thread John Beynon
it's pretty easy, i'd never user nix before and i got it going, rh9,
mysql, cfmx! The installer is pretty good,

jb.

On Thu, 19 Aug 2004 14:07:23 +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi All,
 
 I've got a (fairly beefy) server sitting upstairs working as a router for the cable connection we've got. I thought to myself, why don't I set this up as a dev server for my CFMX apps? The problem is, it's a SuSe linux distro, and I know next to nothing about setting up CFMX on unix, or integrating apache and MySQL with it.
 
 Basically I'm asking if any one has got any advice, or a step-by-step idiots guide on the web would be useful.
 
 And of course, it'd be handy to know if CFMX  suse  mysql  apache actually works! At a later stage I'd like to run PHP - can this integrate into my CFMX setup without the two crossing swords?
 
 Cheers,
 Rob
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Ewok
 ??? I can write code in _javascript_ to verify whatever I want, almost as easily as in CF.

yeah its not hard, thats not the point

 But most of the validation can be and SHOULD be done client side on the contrary.

yes it should, for convenince. But once that is done it should be validated again on server side.

 The advantage is that it is much faster and the user still can go back to make the necessary modifications.

the only advantage is it's speed. normally when your JS validates ok, your serverside code will as well and the user wont be back to the form for modifications, Whereas if the JS validation DOES catch an error, th euser is still there and no waiting has to happen.

Many sites using server side validation will just tell you there is an error and just redisplay the empty form, this is very frustrating. 

I dont know what sites you are going to but they're poorly written

 If verification is done server side, the server must return the user to the form with the
field initialized with the values the user already filled in, even if there are errors.

?? post forms back to theirselves and call to action if its a submit?

 Well, is a user turns off his _javascript_, it's HIS problem, and _javascript_ is so much used
that chances he ever reaches a page with a form are very low anyway.

once again... i dont know what pages you are visiting. But YOU tell a client that just paid 1000's of dollars for an application coded by you that his IT department is going to have change the way they do things because YOU have code in their network now that hinges on rather or not a USER end feature is on or off.

more change for ya

- Original Message - 
From: Claude Schneegans 
To: CF-Talk 
Sent: Thursday, August 19, 2004 9:57 AM
Subject: Re: form validation problems

First and foremost, users can turn it off at will.

Well, is a user turns off his _javascript_, it's HIS problem, and _javascript_ is so much used
that chances he ever reaches a page with a form are very low anyway.

Secondly, most JS validation is only written to validate type, not value.

??? I can write code in _javascript_ to verify whatever I want, almost as easily as in CF.
The only thing I cannot do is check values against data stored in the database.
This should be checked on server side of course.
But most of the validation can be and SHOULD be done client side on the contrary.
The advantage is that it is much faster and the user still can go back to make the necessary modifications.
Many sites using server side validation will just tell you there is an error and just redisplay the empty form,
this is very frustrating. If verification is done server side, the server must return the user to the form with the
field initialized with the values the user already filled in, even if there are errors.
With _javascript_ validation, this is automatic.

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Lofback, Chris
But it is treated as boolean.0 is false and anything else is true, including -1 and 3.I use this principle all the time like this:

 
CFIF qryFoo.RecordCount
--Output records here--
CFELSE
No records found!
/CFIF

 
Chris

-Original Message-
From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 6:31 AM
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

Don't think there is any real performance advantage, its just coder
preference...

But Matt's way IMHO is incorrect in this instance as Compare can return 3
results and Matt is checking for a Boolean.

Compare can return -1,0 or 1 which is not Boolean.



_

From: Michael Kear [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 11:24
To: CF-Talk
Subject: Double Negative way of making decisions? Good?

I've been taking a look at ContentMonger LiteCMS system, mentioned
elsewhere today by Matt Robertson (http://mysecretbase.com/CMLite_Home.cfm),
and I notice a lot of the decisions in the code are made by what seems to be
a double negative for me.Quite confusing until I got used to it.Is
there any performance or other advantage to doing it the way Matt does it,
or is it just a matter of style? 

For example, ContentMonger has this: 

cfif not Compare(GetItem.SecureDisplay,Y)
. Stuff .
/cfif

Where I'd be more likely to put this: 

cfif GetItem.SecureDisplay EQ Y
. Stuff .
/cfif

If it's just a matter of style, that's no problem, although I think my way
is more readable and more readily understood, but if there is any other
reason to do it Matt's way I've got an awful lot of revision of code to do!!

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com

_ 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Web Services: Sharing Data - E-Commerce

2004-08-19 Thread Adam Haskell
I agree with chris. Have them consume a webservice over SSL that gives
you the order. That way your system can process the order at the time
and send back succes or failure over the webservice.

Adam H

On Thu, 19 Aug 2004 09:58:14 -0400, Chris Johnston
[EMAIL PROTECTED] wrote:
 On Thu, 19 Aug 2004 02:10:52 +, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
  What's the best way to securely transfer customer's order information from an Affiliate
  back to our company, the distributor?
 
 SSL
 
  After an Affiliate's order has been successfully taken, we're suggesting the Affiliate Web site write
  the order information to an XML template that we'll define and then give to each Affiliate
  a secure folder to ftp the XML file to. We perform a similar process with this type of XML
  data importing.I just wanted to get some feedback if anyone had any other ideas or better methods.
 
 
 I am not sure if this is possible, but instead of having them ftp the
 file back, why not have them feed it into another web service on you
 website over SSL? This way the information is both secure and already
 in your database to be acted upon.
 
 Otherwise, I would suggest setting up sftp on a server. At least the
 information will be encrypted during transmission.
 
 --
 chris johnston
 
 www.fuzzylizard.com
 For millions of years, mankind lived just like the animals and
 something happened which unleashed the power of our imagination, we
 learned to talk.
 Pink Floyd
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




BlueDragon cfinclude issues

2004-08-19 Thread Ken Ferguson
This happens on BD 6.1 as my dev server.

I have this code:

cfset variables.incfilename = attributes.mode  .cfm

cfif fileexists(evaluate(variables.incfilename))

cfinclude template=#variables.incfilename#

cfelse

Which produces the error: CFML Runtime error: billingandshipping.cfm
does not exist.

So I replaced the whole thing with this code:

cfinclude template=billingandshipping.cfm 

And it all works just fine???

So then I changed the original, just to test, like this:

cfset variables.incfilename = billingandshipping.cfm

cfif fileexists(evaluate(variables.incfilename))

cfinclude template=#variables.incfilename#

cfelse

Which produces the error: CFML Runtime error: billingandshipping.cfm
does not exist.

Has anyone got any bright ideas on why this is so? In both instances
where it is throwing the error, it gets to the cfinclude, but thinks the
file doesn't exist. But the middle one just including the file straight
away works perfectly. Incidentally, the first, second and third code
blocks all work fine on my prod server running CFMX.

Thanks,

Ferg
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: 500 error until I refresh

2004-08-19 Thread Deanna Schneider
First off, go to tools - options - advanced and uncheck the checkbox that
says show friendly http errors. Then, you might have a reasonable chance
of figuring out what the error really is.

It could be, that if you're saving the file then browsing, that the save
just hasn't finished yet. I get that a lot when I'm doing development.

- Original Message - 
From: Chris Kavanagh

 Dear list,

 Here's an odd one.My page projects.cfm links (via a standard A
 HREF="" to the page newtask.cfm.

 In my browser I get an HTTP 500 error - (The page cannot be
 displayed...) but when I refresh it it loads fine.This hasn't
 happened in any of my other .cfm pages - any ideas?

 I am running a local server (CFMX dev ed) on a Win XP PC, and viewing
 with IE5.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Double Negative way of making decisions? Good?

2004-08-19 Thread Robertson-Ravo, Neil (RX)
I suppose my SQL hapbits come through...when I expect a bit operator I
expect it to be Boolean!



_

From: Lofback, Chris [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 15:24
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

But it is treated as boolean.0 is false and anything else is true,
including -1 and 3.I use this principle all the time like this:

CFIF qryFoo.RecordCount
--Output records here--
CFELSE
No records found!
/CFIF

Chris

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 6:31 AM
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?

Don't think there is any real performance advantage, its just coder
preference...

But Matt's way IMHO is incorrect in this instance as Compare can return 3
results and Matt is checking for a Boolean.

Compare can return -1,0 or 1 which is not Boolean.

_

From: Michael Kear [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2004 11:24
To: CF-Talk
Subject: Double Negative way of making decisions? Good?

I've been taking a look at ContentMonger LiteCMS system, mentioned
elsewhere today by Matt Robertson (http://mysecretbase.com/CMLite_Home.cfm),
and I notice a lot of the decisions in the code are made by what seems to be
a double negative for me.Quite confusing until I got used to it.Is
there any performance or other advantage to doing it the way Matt does it,
or is it just a matter of style? 

For example, ContentMonger has this: 

cfif not Compare(GetItem.SecureDisplay,Y)
Stuff .
/cfif

Where I'd be more likely to put this: 

cfif GetItem.SecureDisplay EQ Y
Stuff .
/cfif

If it's just a matter of style, that's no problem, although I think my way
is more readable and more readily understood, but if there is any other
reason to do it Matt's way I've got an awful lot of revision of code to do!!

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com

_ 
_

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




SOLVED: 500 error until I refresh

2004-08-19 Thread Chris Kavanagh
:DI fixed it all by myself.I found the clue in the server log.I'm 
turning into a coder!

On 19 Aug 2004, at 3:03 pm, Chris Kavanagh wrote:

 Dear list,

Here's an odd one.  My page projects.cfm links (via a standard A
HREF="" to the page newtask.cfm.

In my browser I get an HTTP 500 error - (The page cannot be
displayed...) but when I refresh it it loads fine.  This hasn't
happened in any of my other .cfm pages - any ideas?

I am running a local server (CFMX dev ed) on a Win XP PC, and viewing
with IE5.

Puzzled,
CK.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Joe Rinehart
Claude,

When a user turns off _javascript_, it's their preference, and very much
your problem.If you're using at as the sole means to make sure a
string is a string and a number is a number, you're likely to begin
getting emails about users encountering ColdFusion errors.

I can write code in _javascript_ to verify whatever I want

Good, keep doing it, and save people a round-trip to the server.But
don't trust that your _javascript_ has validated the data coming to you,
and check it again on the server once it passes your script.

But most of the validation can be and SHOULD be done client side on
the contrary.

I disagree strongly.I think validation should be done on the client
whenever possible, but should always be backed up by
equally-if-not-more strong validation on the server and the database. 
On the server in case of client-side disabling of validation.For the
database, it's doubleplus likely that you'll have have other ways of
interacting with data (straight SQL, another app, etc), and you'll
need validation there to make sure everybody plays by the same rules.

 Many sites using server side validation will just tell you there is an error and just redisplay the empty form.

Well, many developers should learn to default their form values
properly so that you see an error message as well as what was entered
before the submit.

If verification is done server side, the server must return the user
to the form with the field initialized with the values the user
already filled in, even if there are errors.

This is not hard, and only a lazy developer would not do this.See
previous comment.

-joe

-- 
For Tabs, Trees, and more, use the jComponents:
http://clearsoftware.net/clear/?template=downloads.jComponents
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Matt Liotta
Maybe I am reading the following line wrong, but it looks like you are
trying to evaluate the filename as a variable.

cfif fileexists(evaluate(variables.incfilename))

Shouldn't the above be as follows?

cfif fileexists(variables.incfilename)

-Matt
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Looking for french cold fusion resources

2004-08-19 Thread Marc Campeau
Hi everyone,

I was told by a few advanced Flash developpers in a community I follow
(mainly french speaking developers from Quebec, France) that they
abandonned trying out ColdFusion because they couldn't find ColdFusion
tutorials, forums, documentation (PHP.net style, cause let's face it
MM livedoc's navigation sucks), etc. They have chosen PHP for the most
part using AMFPHP for remoting but all seem to agree that ColdFusion
seems to be a more natural fit.

I have been googling around to try and find French coldfusion material
to feed their hunger for CF, I will create some material(articles,
presentations for their meetings) to get them started and help them
move on the CF bandwagon. Some were also looking for French CF hosting
companies who offer Remoting, PHP or FlashComm.

So my question is, does anyone here know of french cold fusion
resources? I'd like it if you could share those with me. Also, if
anyone as some material (articles, presentations) that I could
use/translate that they would share with me, that would give me a head
start.

Oh, since I'm posting this, might as well invite Montreal, QC
developers who don't know of it to take a look at
http://www.FlashADN.com which is the official - I think -Montreal
MMUG. Checkout the forum.

Thanks in advance

-- 
Marc Campeau

P.S.: Here's my background, in case it matters:
- B.S. Computer science
- CF developer since version 3.0
- Certified CF5 Advanced Developer
- Mostly active in the CFUGToronto community
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: BlueDragon cfinclude issues

2004-08-19 Thread Scott Brady
You have this block:

 cfif fileexists(evaluate(variables.incfilename))

 
 cfinclude template=#variables.incfilename#

 cfelse
...

I think the issue is that you're testing to see if
Evaluate(variables.incfilename) exists, but then you're only
including variables.incfilename.Try cfinclude
template=#Evaluate(variables.incfilename)# Instead.

Or, better yet, find a way to get rid of the evaluate. (I haven't used
BD, but Evaluate is probably slow as it is in Macromedia CF)

Scott

-- 
-
Scott Brady
http://www.scottbrady.net/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Ken Ferguson
Right, first I had cfif fileexists(variables.incfilename), but it
yields the same result, I was just playing around to see if anything
would help and my last revolution was trying the evaluate. It doesn't
really matter though, because it IS getting past that cfif and into the
cfinclude, but then it craps out.

Ken Ferguson

Fitz and Floyd

http://www.fitzandfloyd.com http://www.fitzandfloyd.com 

http://www.exclusivelyfitz.com http://www.exclusivelyfitz.com/ 

http://stores.ebay.com/fitzandfloydscharmingtails

_

From: Matt Liotta [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 9:40 AM
To: CF-Talk
Subject: RE: BlueDragon cfinclude issues

Maybe I am reading the following line wrong, but it looks like you are
trying to evaluate the filename as a variable.

cfif fileexists(evaluate(variables.incfilename))

Shouldn't the above be as follows?

cfif fileexists(variables.incfilename)

-Matt

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFCHART 3D Depth

2004-08-19 Thread Marc Campeau
 I haven't found an answer one way or the other on rather or not you can adjust the depth of the 3D effect in a cfchart. The flat is... well it's flat and the default 3D depth is way too deep. Any clues?

CFCHART 
xOffset = number between -1 and 1 
yOffset = number between -1 and 1 
 

If I'm not mistaken those help with the depth...

-- 
Marc Campeau
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: 500 error until I refresh

2004-08-19 Thread Ewok
That or possibly timing out (due to load maybe). When I write my apps, I do it at home on a server2003 machine on a Roadrunner connection everything is fine and fast locally, but when I start showing it to a few other people, the load gets to be too much for the connection and pages start timing out and I get the same error
- Original Message - 
From: Deanna Schneider 
To: CF-Talk 
Sent: Thursday, August 19, 2004 10:32 AM
Subject: Re: 500 error until I refresh

First off, go to tools - options - advanced and uncheck the checkbox that
says show friendly http errors. Then, you might have a reasonable chance
of figuring out what the error really is.

It could be, that if you're saving the file then browsing, that the save
just hasn't finished yet. I get that a lot when I'm doing development.

- Original Message - 
From: Chris Kavanagh

 Dear list,

 Here's an odd one.My page projects.cfm links (via a standard A
 HREF="" to the page newtask.cfm.

 In my browser I get an HTTP 500 error - (The page cannot be
 displayed...) but when I refresh it it loads fine.This hasn't
 happened in any of my other .cfm pages - any ideas?

 I am running a local server (CFMX dev ed) on a Win XP PC, and viewing
 with IE5.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Ken Ferguson
Nope, same result.

Also, cfoutput#variables.incfilename#/cfoutput gives the same value
as cfoutput#evaluate(variables.incfilename)#/cfoutput

The evaluate just got in there as I was playing around with things. It's
not really useful in this code. Remove all the evaluates and you still
get the same thing.





_

From: Scott Brady [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 9:42 AM
To: CF-Talk
Subject: Re: BlueDragon cfinclude issues

You have this block:

cfif fileexists(evaluate(variables.incfilename))

 cfinclude template=#variables.incfilename#

cfelse
...

I think the issue is that you're testing to see if
Evaluate(variables.incfilename) exists, but then you're only
including variables.incfilename.Try cfinclude
template=#Evaluate(variables.incfilename)# Instead.

Or, better yet, find a way to get rid of the evaluate. (I haven't used
BD, but Evaluate is probably slow as it is in Macromedia CF)

Scott

-- 
-
Scott Brady
http://www.scottbrady.net/

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: SOLVED: 500 error until I refresh

2004-08-19 Thread Ewok
heh good job, what was it
- Original Message - 
From: Chris Kavanagh 
To: CF-Talk 
Sent: Thursday, August 19, 2004 10:32 AM
Subject: SOLVED: 500 error until I refresh

:DI fixed it all by myself.I found the clue in the server log.I'm 
turning into a coder!

On 19 Aug 2004, at 3:03 pm, Chris Kavanagh wrote:

 Dear list,

Here's an odd one.My page projects.cfm links (via a standard A
HREF="" to the page newtask.cfm.

In my browser I get an HTTP 500 error - (The page cannot be
displayed...) but when I refresh it it loads fine.This hasn't
happened in any of my other .cfm pages - any ideas?

I am running a local server (CFMX dev ed) on a Win XP PC, and viewing
with IE5.

Puzzled,
CK.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Mark A. Kruger - CFG
You are not modifying it for path so fileexists( ) should crap out - unless BD does relative paths... does it? Also -
what's with the evaluate( ) function? Seems superflous to me.

-mk
-Original Message-
From: Ken Ferguson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 9:31 AM
To: CF-Talk
Subject: BlueDragon cfinclude issues

This happens on BD 6.1 as my dev server.

I have this code:

cfset variables.incfilename = attributes.mode  .cfm

cfif fileexists(evaluate(variables.incfilename))

cfinclude template=#variables.incfilename#

cfelse

Which produces the error: CFML Runtime error: billingandshipping.cfm
does not exist.

So I replaced the whole thing with this code:

cfinclude template=billingandshipping.cfm

And it all works just fine???

So then I changed the original, just to test, like this:

cfset variables.incfilename = billingandshipping.cfm

cfif fileexists(evaluate(variables.incfilename))

cfinclude template=#variables.incfilename#

cfelse

Which produces the error: CFML Runtime error: billingandshipping.cfm
does not exist.

Has anyone got any bright ideas on why this is so? In both instances
where it is throwing the error, it gets to the cfinclude, but thinks the
file doesn't exist. But the middle one just including the file straight
away works perfectly. Incidentally, the first, second and third code
blocks all work fine on my prod server running CFMX.

Thanks,

Ferg
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




cfmail and SMTP authentication?

2004-08-19 Thread techmike
Is it possible to use a SMTP server that requires authentication with the
cfmail tag?

Excuse me for not just googleing it, but I'm stuck behind a proxy at work.

-Mike
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: SOLVED: 500 error until I refresh

2004-08-19 Thread Chris Kavanagh
 heh good job, what was it

I was CFOUTPUTing a value that I hadn't CFQUERYd.Rookie mistake...
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: CFCHART 3D Depth

2004-08-19 Thread Ewok
that seems to do some pretty weird (useless) things to a bar graph. Doesn't seem to change the depth or the effect of it at all 

- Original Message - 
From: Marc Campeau 
To: CF-Talk 
Sent: Thursday, August 19, 2004 10:43 AM
Subject: Re: CFCHART 3D Depth

 I haven't found an answer one way or the other on rather or not you can adjust the depth of the 3D effect in a cfchart. The flat is... well it's flat and the default 3D depth is way too deep. Any clues?

CFCHART 
 xOffset = number between -1 and 1 
 yOffset = number between -1 and 1 


If I'm not mistaken those help with the depth...

-- 
Marc Campeau
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Claude Schneegans
But once that is done it should be validated again on server side.

Ah ok, I agree with that. Validate on the server, but validate first client side.

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Matt Liotta
In testing locally I found that FileExists() seems to be the problem.
Basically, nothing inside the cfif executes. Simply including a template
based on a variable without checking to see if it exists works.

In fact, the following template shows this strange behavior.

cfset foo = index.cfm
cfif FileExists(foo)
	cfabort
/cfif
cfinclude template=#foo#

When called index.cfm will be included.

-Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Ken Ferguson
 Sent: Thursday, August 19, 2004 10:43 AM
 To: CF-Talk
 Subject: RE: BlueDragon cfinclude issues
 
 Right, first I had cfif fileexists(variables.incfilename), but it
 yields the same result, I was just playing around to see if anything
 would help and my last revolution was trying the evaluate. It doesn't
 really matter though, because it IS getting past that cfif and into the
 cfinclude, but then it craps out.
 
 
 
 Ken Ferguson
 
 Fitz and Floyd
 
 http://www.fitzandfloyd.com http://www.fitzandfloyd.com
 
 http://www.exclusivelyfitz.com http://www.exclusivelyfitz.com/
 
 http://stores.ebay.com/fitzandfloydscharmingtails
 
 
 
_
 
 From: Matt Liotta [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 9:40 AM
 To: CF-Talk
 Subject: RE: BlueDragon cfinclude issues
 
 
 
 Maybe I am reading the following line wrong, but it looks like you are
 trying to evaluate the filename as a variable.
 
 cfif fileexists(evaluate(variables.incfilename))
 
 Shouldn't the above be as follows?
 
 cfif fileexists(variables.incfilename)
 
 -Matt
 
_
 
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Claude Schneegans
When a user turns off _javascript_, it's their preference, and very much
your problem.

Ok, I admit I almost exclusively write intranet applications that always require _javascript_ enabled,
It is part of the specifications of the product, otherwise the application will simply not run.

I agree that in the Web in general, it is not the same.

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: form validation problems

2004-08-19 Thread Claude Schneegans
Must disagree... the more client side validation, the better for the end
user and a better app you will build...

Then you don't desagree, you agree ;-)

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Regex Question: All punct except...

2004-08-19 Thread Patricia Lee
I want a CF regex to replace all punctuation except for the / character.

I made it work with the following:

[^/[:alpha:][:digit:][:space:]]

But I was wondering if there was a simpler way to write it with the
[:punct:] class?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Ken Ferguson
I didn't think it through very well before posting. I just got
frustrated and asked.

The problem was, or rather is, that I am an idiot. The evaluate was
only in there because I was playing around with it. I was getting the
EXACT same results without it in there. However, I was causing another
problem INSIDE the included file when I was outputting a variable that
didn't exist. I got hung up on the fact that I thought it was failing to
include the file and didn't think about the fact that the error might be
happening on the first line of the included file. So I took the blinders
off and tried looking at it all again. I went into
billingandshipping.cfm and found the error on line 2. Now it all works
fine and next time I'll try looking a little harder before throwing up
my hands in frustration. 

It's just that I've had so many issues with BD and functions. I seem to
have been forced to rework every single one of them in the move from
CFMX. They're all flying well on my prod server which runs MX, but they
fail on BD for any number of reasons. So, in the end, I'm not sure if
I'm going to be switching over to BD at all. 

Sorry to waste everyone's time, he says walking away feeling like a
total moron.

--Ferg

_

From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 9:53 AM
To: CF-Talk
Subject: RE: BlueDragon cfinclude issues

You are not modifying it for path so fileexists( ) should crap out -
unless BD does relative paths... does it? Also -
what's with the evaluate( ) function? Seems superflous to me.

-mk
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Jim Davis
Are you sure that the CFIF is getting passed?It really seems like that
should fail.

It seems like the error could be misleading and being thrown at the CFFF
rather than the CFINCLUDE - try commenting out the CFINCLUDE and see if you
still get the problem.

If you do then you know, at least, that the error message is less than
specific.;^)

Jim Davis

_

From: Ken Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 10:49 AM
To: CF-Talk
Subject: RE: BlueDragon cfinclude issues

Nope, same result.

Also, cfoutput#variables.incfilename#/cfoutput gives the same value
as cfoutput#evaluate(variables.incfilename)#/cfoutput

The evaluate just got in there as I was playing around with things. It's
not really useful in this code. Remove all the evaluates and you still
get the same thing.



_

From: Scott Brady [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 9:42 AM
To: CF-Talk
Subject: Re: BlueDragon cfinclude issues

You have this block:

cfif fileexists(evaluate(variables.incfilename))

 cfinclude template=#variables.incfilename#

cfelse
...

I think the issue is that you're testing to see if
Evaluate(variables.incfilename) exists, but then you're only
including variables.incfilename.Try cfinclude
template=#Evaluate(variables.incfilename)# Instead.

Or, better yet, find a way to get rid of the evaluate. (I haven't used
BD, but Evaluate is probably slow as it is in Macromedia CF)

Scott

-- 
-
Scott Brady
http://www.scottbrady.net/

_

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Mark A. Kruger - CFG
Matt,

Yes but... fileexists requires the fule path (i.e. e:\wwwroot\index.cfm - not just index.cfm) so I would definitley
expect the cfif to return FALSE - or am I missing something?

-mark
-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 10:05 AM
To: CF-Talk
Subject: RE: BlueDragon cfinclude issues

In testing locally I found that FileExists() seems to be the problem.
Basically, nothing inside the cfif executes. Simply including a template
based on a variable without checking to see if it exists works.

In fact, the following template shows this strange behavior.

cfset foo = index.cfm
cfif FileExists(foo)
cfabort
/cfif
cfinclude template=#foo#

When called index.cfm will be included.

-Matt

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Ken Ferguson
 Sent: Thursday, August 19, 2004 10:43 AM
 To: CF-Talk
 Subject: RE: BlueDragon cfinclude issues

 Right, first I had cfif fileexists(variables.incfilename), but it
 yields the same result, I was just playing around to see if anything
 would help and my last revolution was trying the evaluate. It doesn't
 really matter though, because it IS getting past that cfif and into the
 cfinclude, but then it craps out.



 Ken Ferguson

 Fitz and Floyd

 http://www.fitzandfloyd.com http://www.fitzandfloyd.com

 http://www.exclusivelyfitz.com http://www.exclusivelyfitz.com/

 http://stores.ebay.com/fitzandfloydscharmingtails



_

 From: Matt Liotta [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 9:40 AM
 To: CF-Talk
 Subject: RE: BlueDragon cfinclude issues



 Maybe I am reading the following line wrong, but it looks like you are
 trying to evaluate the filename as a variable.

 cfif fileexists(evaluate(variables.incfilename))

 Shouldn't the above be as follows?

 cfif fileexists(variables.incfilename)

 -Matt

_




 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




changing jsessionid in the middle of my session

2004-08-19 Thread Ryan Mannion
I have a question... sometimes when going from one page to another, my
jsessionid changes and my session variables get dropped. It happens if
I'm submitting a form with enctype=multipart/form-data (if uploading
a file) while carrying the urltoken through the URL. It's also happens
when I'm using cookies - if I log into my application from my home
page, after it's run through the log in action page and set a bunch of
session variables, on the return to the home page the jsessionid
changes, thus dropping my session. Strangely, if I log in again (with
the changed jsessionid), everything works fine from thus on. Any
ideas?

Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfmail and SMTP authentication?

2004-08-19 Thread Ken Ferguson
I would imagine that: cfmail's username=usernamevaluehere and
password=passwordvaluehere attributes should work just fine for that
purpose.

_

From: techmike [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 10:01 AM
To: CF-Talk
Subject: cfmail and SMTP authentication?

Is it possible to use a SMTP server that requires authentication with
the
cfmail tag?

Excuse me for not just googleing it, but I'm stuck behind a proxy at
work.

-Mike
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: form validation problems

2004-08-19 Thread d.a.collie
 Then you don't desagree, you agree ;-)

 
I do agree with the more client side the better... I know it's pretty
bad, but it's usually my deadlines that define how much client side
validation I get to put in.

 
Cheers Claude :)

 
-- 
dc
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Coldfusion MX on SuSe? (And ideally MySQL...)

2004-08-19 Thread Pete Freitag
[EMAIL PROTECTED] wrote:


 it'd be handy to know if CFMX  suse  mysql  apache actually works!

SuSE 7.2,7.3, and 8.x are listed as supported Operating Systems for 
ColdFusion MX, so if your running one of those versions it shuldn't be 
too hard to get working. If your running a different version, it would 
probably still be worth trying. I don't think there will be any issue 
getting mysql or apache to work either.

 At a later stage I'd like to run PHP - can this integrate into my CFMX 
 setup without the two crossing swords?

They should work fine together on the same server.

__
Pete Freitag
http://www.cfdev.com/
Author of the CFMX Developers Cookbook
http://www.petefreitag.com/bookshelf/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Looping over Dates - Revisited..

2004-08-19 Thread Jeff Waris
About 2 weeks ago there was a thread on looping over monthly dates I
need to take it a step further

 
I'd like to loop over a date range in DAYS.

 
Say startdate=06/01/2004 endate=08/06/2004 and have it loop consecutively
through each day of the month until it gets to the end date.

 
06/01/2004
06/02/2004
06/03/2004
06/04/2004
06/05/2004
...etc...
08/05/2004
08/06/2004

 
and know June has 30 days, July has 31 etc.

 
Thanks...
Jeff
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: BlueDragon cfinclude issues

2004-08-19 Thread Alexander Sherwood
At 11:09 AM 8/19/2004, you wrote:
I didn't think it through very well before posting. I just got
frustrated and asked.

 So, in the end, I'm not sure if
I'm going to be switching over to BD at all. 

Why switch to begin with? Do you need functionality in BD that is not in CFMX, or is it the price of the license?

--
Alex
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: cfmail and SMTP authentication?

2004-08-19 Thread techmike
Hrm, I get an attribute validation error with that..I'm running MX 6.0
if that makes a difference..

I tried doing a cfpop first to see if my server would authenticate like
that, but no such luck..:(

-mike

-Original Message-
From: Ken Ferguson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: Thu, 19 Aug 2004 10:13:43 -0500
Subject: RE: cfmail and SMTP authentication?

 I would imagine that: cfmail's username=usernamevaluehere and
 password=passwordvaluehere attributes should work just fine for that
 purpose.
 

 
_
 
 From: techmike [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 19, 2004 10:01 AM
 To: CF-Talk
 Subject: cfmail and SMTP authentication?
 

 
 Is it possible to use a SMTP server that requires authentication with
 the
 cfmail tag?
 
 Excuse me for not just googleing it, but I'm stuck behind a proxy at
 work.
 
 -Mike
 
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




  1   2   3   >