Re: Checking arrays for any values

2010-09-06 Thread Peter Boughton

It's not clear what you're trying to do.

Can you post examples of each type of value it might contain, and whether that 
is considered true/false?

(It's probably still simplest to step through the array and check each value 
though.) 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336832
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Checking arrays for any values

2010-09-06 Thread Scott Brady

You can do listFind(arrayToList(aYourArray),1)  for the bit datatypes.  I'm
not sure what the performance of that will be if your array is very large,
though.

For the string array, you can do NOT listFind(arrayToList(aYourArray,))

I'm not sure if that logic is exactly correct, but it should get you going
down the right path.

Scott

On Sun, Sep 5, 2010 at 6:46 PM, Richard Steele r...@photoeye.com wrote:


 If any of the elements of an array have a value of 1 for bit datatypes or
 don't have empty strings for string datatypes, then I need to have my
 program do one thing, otherwise, if everything is either empty or false,
 another thing.  I could parse the array and get their values, but I wonder
 if there is an easier way.



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


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336833
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Need some fresh eyes on an application

2010-09-06 Thread Rick Faircloth

Not being familiar with mssql (I'm a mysql user), I made
some entry mistakes when trying to create a table.  An error
message would pop up identifying my mistake, but then when
I clicked ok to go back and correct the error, the form
for entering a column had disappeared.  Is that supposed to
happen?  I would think that the alert would disappear, then
the form would reappear.

Rick

-Original Message-
From: Paul Day [mailto:p...@nucomsolutions.com] 
Sent: Friday, September 03, 2010 7:34 AM
To: cf-talk
Subject: Re: Need some fresh eyes on an application


(Sorry, forgot the demo URL...)

I have created a test account with the following credentials:

Demo URL: http://www.nucomsolutions.com/dbDiscover
Server name: sql1100.shared-servers.com
Port number: 1086
Username: hof_test
Password: hof_test

I'm not allowed to do anything with the user accounts or adding databases,
since this is on a shared database hosting server.

All interested are encouraged to play around and offer any feedback.
Remember this is a work in progress, so a lot of functionality is yet to be
added.

Thanks,
Paul

Paul Day 
 Owner/Principal Architect

phone: 410.241.8465
email:  p...@nucomsolutions.com
web: http://www.nucomsolutions.com/

 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336834
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Checking arrays for any values

2010-09-06 Thread Peter Boughton

In CF9, Adobe have (finally) added the ArrayFind function, which simplifies 
that code.

(Also available in OpenBD v1.3 and above, and in Railo since early days.) 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336835
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Calculate next Tuesday 3 weeks from date

2010-09-06 Thread Steve Sequenzia

Got it. Thanks Andrew.

Use the DayOfWeek(now) to get the day number, find out the difference to
Tuesday and to a dateAdd for day to either go back in time. Then use the
DateAdd of 3 weeks to get your result.

Regards,
Andrew Scott
http://www.andyscott.id.au/


 I need a little help with a ColdFusion function. I need to calculate the
date of
 the next Tuesday 3 weeks from the current date.
 
 I am assuming that I need to use the dateadd but I am not really sure how
to 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336836
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Ajax file upload.

2010-09-06 Thread Steve Sequenzia

I am trying to make this http://www.webtoolkit.info/ajax-file-upload.html work 
in ColdFusion.

I can get it to work as long as I don't make the form a cfform. I need to make 
it work with a cfform though.

When I change the form to cfform it just submits to the action page I created 
but it loses the ajax functionality.

Any one know how to make it work with cfform?

Thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336837
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Michael Grant

You have it like this?

CFFORM NAME=foo ACTION=bar.cfc METHOD=POST enctype=multipart/form-data


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336838
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Need some fresh eyes on an application

2010-09-06 Thread Sebastiaan GMC van Dijk

Login doesn't work (at the moment?). So I cannot help with testing. I'm using 
Opera, IE8, Firefox, Safari and Chrome on Windows 7, but none of them want to 
login with the credentials provided.


Sebastiaan
=
So long and thanx 4 all the fish

== Onlinebase.nl


 Date: Mon, 6 Sep 2010 07:01:58 -0400
 Subject: RE: Need some fresh eyes on an application
 From: r...@whitestonemedia.com
 To: cf-talk@houseoffusion.com
 
 
 Not being familiar with mssql (I'm a mysql user), I made
 some entry mistakes when trying to create a table.  An error
 message would pop up identifying my mistake, but then when
 I clicked ok to go back and correct the error, the form
 for entering a column had disappeared.  Is that supposed to
 happen?  I would think that the alert would disappear, then
 the form would reappear.
 
 Rick
 
 -Original Message-
 From: Paul Day [mailto:p...@nucomsolutions.com] 
 Sent: Friday, September 03, 2010 7:34 AM
 To: cf-talk
 Subject: Re: Need some fresh eyes on an application
 
 
 (Sorry, forgot the demo URL...)
 
 I have created a test account with the following credentials:
 
 Demo URL: http://www.nucomsolutions.com/dbDiscover
 Server name: sql1100.shared-servers.com
 Port number: 1086
 Username: hof_test
 Password: hof_test
 
 I'm not allowed to do anything with the user accounts or adding databases,
 since this is on a shared database hosting server.
 
 All interested are encouraged to play around and offer any feedback.
 Remember this is a work in progress, so a lot of functionality is yet to be
 added.
 
 Thanks,
 Paul
 
 Paul Day 
  Owner/Principal Architect
 
 phone: 410.241.8465
 email:  p...@nucomsolutions.com
 web: http://www.nucomsolutions.com/
 
  
 
 
 
 
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336839
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Steve Sequenzia

No, I have action=formRes.cfm. Then on the formRes.cfm it does a file upload. 
Again, it works with a html form but not with a cfform. should I have the 
action be a .cfc file?

Thanks for the help.

You have it like this?

CFFORM NAME=foo ACTION=bar.cfc METHOD=POST enctype=multipart/form-data 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336840
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Michael Grant

The name and action are just there as example. What I'm asking is did you
include *enctype=multipart/form-data in your cfform tag?


On Mon, Sep 6, 2010 at 1:39 PM, Steve Sequenzia c...@thinksys.com wrote:


 No, I have action=formRes.cfm. Then on the formRes.cfm it does a file
 upload. Again, it works with a html form but not with a cfform. should I
 have the action be a .cfc file?

 Thanks for the help.

 You have it like this?
 
 CFFORM NAME=foo ACTION=bar.cfc METHOD=POST
 enctype=multipart/form-data

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Ajax file upload.

2010-09-06 Thread andy matthews

I'm more interested why it has to be cfform? Are you using the validation
for cfform? You know that once your form is finalized, you can just download
the JS that cfform outputs and ditch cfform for production?


andy

-Original Message-
From: Steve Sequenzia [mailto:c...@thinksys.com] 
Sent: Monday, September 06, 2010 12:12 PM
To: cf-talk
Subject: Ajax file upload.


I am trying to make this http://www.webtoolkit.info/ajax-file-upload.html
work in ColdFusion.

I can get it to work as long as I don't make the form a cfform. I need to
make it work with a cfform though.

When I change the form to cfform it just submits to the action page I
created but it loses the ajax functionality.

Any one know how to make it work with cfform?

Thanks 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336842
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfmail and Groupwise-SMTP

2010-09-06 Thread Thomas Stichnoth

Hello,

 

curious:

Im using a Groupwise-SMTP-Server with CF8. Delivery of Mails is working.
But, when I try to send mail with an illegal recipient, I get no error in
the Coldfusion-Logs (debug=yes), Status 250 OK.

If I try the same via Telnet, I get the an error (550)

Any Idea?

 

Kind regards

Thomas

 

 

 

 

Viele Grüße
Thomas Stichnoth



 


Thomas Stichnoth
Internetkonzepte und -lösungen
stichnoth.net
Rühmkorffstr. 18
30163 Hannover
http://www.stichnoth.net
Tel. 0511 / 7601528
Fax 0511 / 7601530
Priv. 0511 / 2137769
Mobil 0175 / 1768800

 

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336843
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax file upload.

2010-09-06 Thread Steve Sequenzia

 I am trying to make this http://www.webtoolkit.info/ajax-file-upload.
 html work in ColdFusion.
 
 I can get it to work as long as I don't make the form a cfform. I need 
 to make it work with a cfform though.
 
 When I change the form to cfform it just submits to the action page I 
 created but it loses the ajax functionality.
 
 Any one know how to make it work with cfform?
 
 Thanks 

Yes, enctype=multipart/form-data is in the cfform 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336844
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfmail and Groupwise-SMTP

2010-09-06 Thread Russ Michaels

in the mail settings you need to set *Error Log Severity to warning or error
I believe

Russ
*
On Mon, Sep 6, 2010 at 9:43 PM, Thomas Stichnoth i...@stichnoth.net wrote:


 Hello,



 curious:

 Im using a Groupwise-SMTP-Server with CF8. Delivery of Mails is working.
 But, when I try to send mail with an illegal recipient, I get no error in
 the Coldfusion-Logs (debug=yes), Status 250 OK.

 If I try the same via Telnet, I get the an error (550)

 Any Idea?



 Kind regards

 Thomas









 Viele Grüße
 Thomas Stichnoth






 Thomas Stichnoth
 Internetkonzepte und -lösungen
 stichnoth.net
 Rühmkorffstr. 18
 30163 Hannover
 http://www.stichnoth.net
 Tel. 0511 / 7601528
 Fax 0511 / 7601530
 Priv. 0511 / 2137769
 Mobil 0175 / 1768800







 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336845
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm