Setting Shared Object Return Variable from CF & Flash Remoting

2004-06-11 Thread Chuck Mason
I am trying to set a shared object from my "flash remoting" return 
variable - but have not had any luck. The return variable is returning 
and populating a combo box just fine (as an example). My attempt at 
passing the return variable to an object and then setting that object as 
a shared object is below.

/* -- Begin -- */
function getID_Result(result) {
// Bind Combo Box to data
// Use DataGlue.bindFormatStrings function to do this
DataGlue.bindFormatStrings(test1, result, "#rid#");
trace(test1)
}

test1 = newObject();
test1 = SharedObject.getLocal("test1");
/* -- End -- */

Thank you.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




test

2004-06-11 Thread Michael T. Tangorre
test
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: newbie CF installation questions

2004-06-11 Thread Dave Phillips
You probably need to install the MDAC.  It's been awhile since I worked
with
Access (I use SQL Server now) but I remember something about MDAC
needing
to be up to date on the server for it to work.  I'd run a search on
Microsoft's site
about MDAC and Access and see what you find.

 
HTH,

 
Dave Phillips



From: Suzanne Stephens [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 6:29 PM
To: CF-Talk
Subject: newbie CF installation questions

I'm a graphic designer much more at home on my Mac than on my PC. I've 
been trying to configure CFMX6.1 with DWMX for several days so that I 
can use the Cartweaver Dreamweaver extension, but I  keep running into 
a roadblock:

When I try to set the datasource name, I designated the name of my 
Access file, and designated Access as the driver. Then, when CF Admin 
goes to the next screen, and I click "submit," I get this error 
message:

"Unable to update the NT registry. Variable driverpath is undefined."

This has me stymied because I thought I'd specifed Access as the driver.

And here's a really stupid question: do I need to have Access installed 
and/or running on the PC for this process to work? If so, will either 
Microsoft Works database program which came installed with the PC or my 
old copy of Access from an Office 97 package work with CF6.1.

Windows XP Home Edition on Pentium 4 Fujitsu laptop

thanks, Suz 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Cfmail

2004-06-11 Thread Dave Phillips
Stevo,

 
I think I understand.  If so, it should be as simple as this:

 

    


 

subject="leads #CategoryText# Lead">#CategoryText#
Company Name: #FORM.CompanyName#

 
If you don't want to do it in a separate statement you can put this in
the FROM field:

 
FROM="#iif(email EQ '',DE('[EMAIL PROTECTED]'),email)#"

 
Try that too.  I didn't test it...it might need to be  #iif(email EQ
'',DE('[EMAIL PROTECTED]'),DE(email))#

 
One of those should work.

 
HTH

 
Dave Phillips



From: Stevo Vee [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 7:26 PM
To: CF-Talk
Subject: Cfmail

Please Help. I am changing some forms and actions on my website. I have 
a lead subscription website and currently the lead emails that go to my 
subscribing companies have my websites email as the sent and reply 
email with the customers in the form.  I am changing to have the
potential 
customers as the from and reply email now which I have acomplished. 
HOWEVER, now if the customer does not have an email the lead gets lost
in 
cyber space. How can I make add a rule that if the customer has no 
email and only phone that it at least goes to me or my subcribing
companies 
using perhaps my websites email acting as a default?? Below is the 
current code: Your help or advice would be greatly appreciated. Thanks.


subject="leads #CategoryText# Lead">#CategoryText#
Company Name: #FORM.CompanyName# 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Test

2004-06-11 Thread Michael T. Tangorre
Testing my updated email address..

Mike
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




communicating with SQL Server 2000

2004-06-11 Thread Andrew Grosset
I've been advised that I need "the 2000 version of the Enterprise Manager" to communicate with "SQL 2000".
   Should I download "Microsoft SQL Server 2000 Desktop Engine (MSDE 2000)" (44MB) or do I need to download an entire evaluation version of SQL server 2000 (172MB...ouch!). The evaluation version times out after 30 days but the client interface remains operational - which is all I need on the browser to interact with the database on the server.

MSDE can be found here: http://www.microsoft.com/sql/msde/.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: newbie CF installation questions

2004-06-11 Thread Dave Watts
> And here's a really stupid question: do I need to have Access 
> installed and/or running on the PC for this process to work? 
> If so, will either Microsoft Works database program which 
> came installed with the PC or my old copy of Access from an 
> Office 97 package work with CF6.1.

No, you don't need Access installed to use Access files from CF.
Unfortunately, I don't have an answer to your more serious problem.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CF 5.0 Hogging Computer Services?

2004-06-11 Thread Nick Baker
Dave,

Super! With the confidence gained from your input I tired various 
configurations. It is the following group that is gobbling up all of the 
resources.

net start "ColdFusion Management Repository Server"
net start "ColdFusion Management Service"
net start "ColdFusion Monitoring Service"

When viewing computer performance (Memory and Processing) -- removing these 
drop computer utilization from saturation most of the time to in the less 
than 10% range. With an occasional blip around 40%. That is with 7 other 
resources/tasks open.

As you pointed out I evidently do not need these. For anyone else's info 
these apparently came with our default installation. It might be worth a 
check if someone is suffering from weak computer performance.

Thanks again,

Nick

At 05:43 PM 6/11/2004, you wrote:
> > My local CF is causing the local computer to perform like
> > molasses. Disabling all of the following reduce the performance
> > from saturation to a mere few percentage points. My guess is
> > that some of the CF services running may be unnecessary.
> > Following is a list that is in the startup batch file. Any
> > suggestions on what may and may not be needed?
>
>Honestly, I doubt that turning off the ones you're not using will make a
>significant difference. My guess is that the service doing all the work (and
>using all the resources) is the CF Application Server service. But it's
>still a good idea to disable things you're not using.
>
> > net start "ColdFusion Executive"
> > net start "Cold Fusion Application Server"
>
>You need these.
>
> > net start "SiteMinder Authentication Service"
> > net start "Siteminder Authorization Service"
>
>If you aren't using SiteMinder, you can disable these.
>
> > net start "ColdFusion RDS"
>
>If you don't edit files or browse databases remotely through RDS using CF
>Studio, HomeSite+ or Dreamweaver MX, you don't need this.
>
> > net start "ColdFusion Graphing Server"
>
>If you're not using the CFCHART tag, you don't need this.
>
> > net start "ColdFusion Management Repository Server"
> > net start "ColdFusion Management Service"
> > net start "ColdFusion Monitoring Service"
>
>If you're not using the management functionality that CF provides, such as
>interaction with hardware load balancers (most people aren't), you don't
>need any of these.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>phone: 202-797-5496
>fax: 202-797-5444
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: newbie CF installation questions

2004-06-11 Thread Nick Baker
Suz,

I am not sure that I can answer all of the potential ramifications of your 
problem. But, based on the way you stated your question -- I am curious if 
you only entered the name of your DB without including the path. Typically 
you would browse to find the DB, as the complete path must be included.

Nick

At 06:28 PM 6/11/2004, you wrote:
>I'm a graphic designer much more at home on my Mac than on my PC. I've
>been trying to configure CFMX6.1 with DWMX for several days so that I
>can use the Cartweaver Dreamweaver extension, but I  keep running into
>a roadblock:
>
>When I try to set the datasource name, I designated the name of my
>Access file, and designated Access as the driver. Then, when CF Admin
>goes to the next screen, and I click "submit," I get this error
>message:
>
>"Unable to update the NT registry. Variable driverpath is undefined."
>
>This has me stymied because I thought I'd specifed Access as the driver.
>
>And here's a really stupid question: do I need to have Access installed
>and/or running on the PC for this process to work? If so, will either
>Microsoft Works database program which came installed with the PC or my
>old copy of Access from an Office 97 package work with CF6.1.
>
>Windows XP Home Edition on Pentium 4 Fujitsu laptop
>
>thanks, Suz
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Cfmail

2004-06-11 Thread Stevo Vee
Please Help. I am changing some forms and actions on my website. I have 
a lead subscription website and currently the lead emails that go to my 
subscribing companies have my websites email as the sent and reply 
email with the customers in the form.  I am changing to have the potential 
customers as the from and reply email now which I have acomplished. 
HOWEVER, now if the customer does not have an email the lead gets lost in 
cyber space. How can I make add a rule that if the customer has no 
email and only phone that it at least goes to me or my subcribing companies 
using perhaps my websites email acting as a default?? Below is the 
current code: Your help or advice would be greatly appreciated. Thanks.


subject="leads #CategoryText# Lead">#CategoryText#
Company Name: #FORM.CompanyName#
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Grouping records

2004-06-11 Thread Spectrum WebDesign
Hi all

please give me a little time. Help me to group this records...

Company	Dept	FormsID	FormsType	FormsDescr
Coca-Cola Co.	Accounting	05D6EDD0-795D	Contact Evaluation	Testing Evaluation
Coca-Cola Co.	Administration	05D6EDD0-795D	Contact Evaluation	Testing Evaluation
Coca-Cola Co.	Administration	05D6EDD0-795D	Contact Evaluation	Testing forms
Coca-Cola Co.	Accounting	05D6EDD0-795D	Contact Evaluation	Testing forms
Coca-Cola Co.	Administration	FFF0A8A0-795D	Managers Evaluation	Testing Evaluation
Coca-Cola Co.	Finances	FFF0A8A0-795D	Managers Evaluation	Testing Evaluation
Coca-Cola Co.	Accounting	FFF0A8A0-795D	Managers Evaluation	Testing Evaluation
Coca-Cola Co.	Administration	FFF0A8A0-795D	Managers Evaluation	Testing forms
Coca-Cola Co.	Accounting	FFF0A8A0-795D	Managers Evaluation	Testing forms
Coca-Cola Co.	Finances	FFF0A8A0-795D	Managers Evaluation	Testing forms

The correct is:

Coca-Cola Co.			
	Managers Evaluation	Testing Evaluation	Administration
			Accounting
			Finances
	Contact Evaluation	Testing forms	Administration
			Accounting

How to aggregate my records? Thanx in advance... for any help... and for your time.
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




newbie CF installation questions

2004-06-11 Thread Suzanne Stephens
I'm a graphic designer much more at home on my Mac than on my PC. I've 
been trying to configure CFMX6.1 with DWMX for several days so that I 
can use the Cartweaver Dreamweaver extension, but I  keep running into 
a roadblock:

When I try to set the datasource name, I designated the name of my 
Access file, and designated Access as the driver. Then, when CF Admin 
goes to the next screen, and I click "submit," I get this error 
message:

"Unable to update the NT registry. Variable driverpath is undefined."

This has me stymied because I thought I'd specifed Access as the driver.

And here's a really stupid question: do I need to have Access installed 
and/or running on the PC for this process to work? If so, will either 
Microsoft Works database program which came installed with the PC or my 
old copy of Access from an Office 97 package work with CF6.1.

Windows XP Home Edition on Pentium 4 Fujitsu laptop

thanks, Suz
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CF 5.0 Hogging Computer Services?

2004-06-11 Thread Dave Watts
> My local CF is causing the local computer to perform like 
> molasses. Disabling all of the following reduce the performance 
> from saturation to a mere few percentage points. My guess is 
> that some of the CF services running may be unnecessary. 
> Following is a list that is in the startup batch file. Any
> suggestions on what may and may not be needed?

Honestly, I doubt that turning off the ones you're not using will make a
significant difference. My guess is that the service doing all the work (and
using all the resources) is the CF Application Server service. But it's
still a good idea to disable things you're not using.

> net start "ColdFusion Executive"
> net start "Cold Fusion Application Server"

You need these.

> net start "SiteMinder Authentication Service"
> net start "Siteminder Authorization Service"

If you aren't using SiteMinder, you can disable these.

> net start "ColdFusion RDS"

If you don't edit files or browse databases remotely through RDS using CF
Studio, HomeSite+ or Dreamweaver MX, you don't need this.

> net start "ColdFusion Graphing Server"

If you're not using the CFCHART tag, you don't need this.

> net start "ColdFusion Management Repository Server"
> net start "ColdFusion Management Service"
> net start "ColdFusion Monitoring Service"

If you're not using the management functionality that CF provides, such as
interaction with hardware load balancers (most people aren't), you don't
need any of these.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CF 5.0 Hogging Computer Services?

2004-06-11 Thread Nick Baker
My local CF is causing the local computer to perform like molasses. 
Disabling all of the following reduce the performance from saturation to a 
mere few percentage points. My guess is that some of the CF services 
running may be unnecessary. Following is a list that is in the startup 
batch file. Any suggestions on what may and may not be needed?

net start "SiteMinder Authentication Service"
net start "Siteminder Authorization Service"
net start "ColdFusion Executive"
net start "Cold Fusion Application Server"
net start "ColdFusion RDS"
net start "ColdFusion Graphing Server"
net start "ColdFusion Management Repository Server"
net start "ColdFusion Management Service"
net start "ColdFusion Monitoring Service"

Thanks,

Nick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How does CFmail work? Under the hood.

2004-06-11 Thread Robert Munn
>What I am looking is what exactly happens after the message is spooled into
>the spool folder. What are the steps taken by CFmail to get the message to
>the mail server?

>-How many messages does CF take at one time from the spool? Can that be
>controlled?

I don't know "under the covers", but anecdotally from watching large cfmail 
spool directories empty, it always looks to me like it is sending each 
message one at a time in serial fashion.

>-Does CF open a new connection on the mail server per message? Or do the
>messages go out in a serial fashion?

This is getting into the mechanics of how SMTP servers work. I don't think 
it requires any kind of connection, I think it just fires off the message to 
the stated SMTP server address on the port listed. I assume it waits for a 
response, and if none if receieved, or if an error response is received, it 
moves the mail message to the undelivr queue.

>
>-Is there a white paper on this?

no idea

There is a custom tag called CF_REsendUndeliverableEmail that I use to 
re-queue mail from the undelivr folder. You can get it off the MM Exchange, 
if you can't find it email me offline at robert.munn at peregrine.com and 
I'll be happy to send you the version I have.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Jim McAtee
- Original Message - 
From: "Rick Root" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 11:13 AM
Subject: Re: Message Board

> Tim Laureska wrote:
> 
> > Rick... any links to where you can get these php message boards ... 
> 
> I know it's tough.. but..
> 
> phpbb = www.phpbb.com
> phorum = www.phorum.com

Pharmaceutical Information Services?

Try http://phorum.org
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Slow Down CFmail?

2004-06-11 Thread Mark W. Breneman
One more question Tom, 

How does each batch get sent out?

Does CF open a new connection to the mail server per message? If so, does CF
make multiple connections to the mail server at the same time?



Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

  _  

From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 2:51 PM
To: CF-Talk
Subject: RE: Slow Down CFmail?

That is VERY good to know.  Thank you.

I will also post this in cfwish list. Would it be possible in future
versions of CF to have the ability to control this via xml config file OR CF
Admin?

Do the "features" list for Professional Vs. Enterprise state that the cf
mail is faster in the enterprise version? 

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

  _  

From: Tom Jordahl [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 1:46 PM
To: CF-Talk
Subject: RE: Slow Down CFmail?

Mark,

CFMX Professional has limits on the number of messages it will deliver when
the spooler runs.  The formula in CFMX 6.1 is:

int batch_size = 35;

if (size > 100)

{

batch_size = size / (int)Math.log ((double)size);

if (batch_size > 1000) batch_size = 1000;

if (batch_size < 35) batch_size = 35;

}

There are no external tweaks to this calculation.

CFMX Enterprise goes flat out till *all* of the messages are delivered, and
then it will go to sleep for the spool interval.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 10, 2004 2:56 PM
To: CF-Talk
Subject: RE: Slow Down CFmail?

The mail server is GMS (Gordano Messaging Server) http://www.ntmail.co.uk/
We contacted the makers and they told us that the "pro version" (250 user)
we have will slow down sending mail after a Approx, 5000 messages per day
have been reached. (I do not remember the exact number of messages) If we
upgraded to the enterprise version we would not see the slowdown. Even
though it would be just a SN that we would plug-in to our existing server to
make the server the enterprise version. : - (

The solution found at http://tutorial256.easycfm.com/ would work very well,
(in fact I am using something like that for another client.) But, I have
several clients mail list that I can't spend the time on rebuilding. I wish
I could.

I think tweaking something like the spooler frequency in the CFADMIN is what
I am looking for.

Does anyone know how many messages the spooler will take each time it checks
for new messages? Can that be tweaked in one of the xml config files?

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

  _

  _

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




RE: Message Board

2004-06-11 Thread Mark A. Kruger - CFG
Rick,

yeah - me neither (dropping it)... plus I get so dang pompous when I'm arguing - it's not a side of me I like .

-mk
  -Original Message-
  From: Rick Root [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 2:41 PM
  To: CF-Talk
  Subject: Re: Message Board

  Mark A. Kruger - CFG wrote:

  > 
  > Ah. I see your point - although anyone who has done any business 
  > with Sun Micro might bridle at the thought that the
  > main purpose of their "free" psuedo open-source java project is to 
  > benefit the world in general without a thought to
  > profit. And let's not forget all those "enterprise" applications out 
  > there that run on Java for thousands of dollars per
  > CPU a year - should they all be free because Java is free?  Apache is 
  > another story.  
  

  Oh I'm in no way saying that everythin should be free.  I'm just glad 
  there is some good quality FREE stuff out there.  Ther eare, of course, 
  distandvantages.. I'm experiencing one of those disadvantages right now 
  with JasperReports, in that there is no support, and the mailing list 
  for it is completely inactive... no responses to my questions.

  I'll let this one drop for now since this whole discussion doesn't 
  really belong here anyway, and I really don't feel like taking it up 
  elsewhere :)

    - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Slow Down CFmail?

2004-06-11 Thread Mark W. Breneman
That is VERY good to know.  Thank you.

I will also post this in cfwish list. Would it be possible in future
versions of CF to have the ability to control this via xml config file OR CF
Admin?

Do the "features" list for Professional Vs. Enterprise state that the cf
mail is faster in the enterprise version? 

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

  _  

From: Tom Jordahl [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 1:46 PM
To: CF-Talk
Subject: RE: Slow Down CFmail?

Mark,

CFMX Professional has limits on the number of messages it will deliver when
the spooler runs.  The formula in CFMX 6.1 is:

int batch_size = 35;

if (size > 100)

{

batch_size = size / (int)Math.log ((double)size);

if (batch_size > 1000) batch_size = 1000;

if (batch_size < 35) batch_size = 35;

}

There are no external tweaks to this calculation.

CFMX Enterprise goes flat out till *all* of the messages are delivered, and
then it will go to sleep for the spool interval.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 10, 2004 2:56 PM
To: CF-Talk
Subject: RE: Slow Down CFmail?

The mail server is GMS (Gordano Messaging Server) http://www.ntmail.co.uk/
We contacted the makers and they told us that the "pro version" (250 user)
we have will slow down sending mail after a Approx, 5000 messages per day
have been reached. (I do not remember the exact number of messages) If we
upgraded to the enterprise version we would not see the slowdown. Even
though it would be just a SN that we would plug-in to our existing server to
make the server the enterprise version. : - (

The solution found at http://tutorial256.easycfm.com/ would work very well,
(in fact I am using something like that for another client.) But, I have
several clients mail list that I can't spend the time on rebuilding. I wish
I could.

I think tweaking something like the spooler frequency in the CFADMIN is what
I am looking for.

Does anyone know how many messages the spooler will take each time it checks
for new messages? Can that be tweaked in one of the xml config files?

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

  _

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




Re: Message Board

2004-06-11 Thread Rick Root
Mark A. Kruger - CFG wrote:

> 
> Ah. I see your point - although anyone who has done any business 
> with Sun Micro might bridle at the thought that the
> main purpose of their "free" psuedo open-source java project is to 
> benefit the world in general without a thought to
> profit. And let's not forget all those "enterprise" applications out 
> there that run on Java for thousands of dollars per
> CPU a year - should they all be free because Java is free?  Apache is 
> another story.  


Oh I'm in no way saying that everythin should be free.  I'm just glad 
there is some good quality FREE stuff out there.  Ther eare, of course, 
distandvantages.. I'm experiencing one of those disadvantages right now 
with JasperReports, in that there is no support, and the mailing list 
for it is completely inactive... no responses to my questions.

I'll let this one drop for now since this whole discussion doesn't 
really belong here anyway, and I really don't feel like taking it up 
elsewhere :)

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




cfcatch question

2004-06-11 Thread Tony Weeg
hi there.

can someone run this and tell me what you get?  also, if you could, in your
reply, let me know if you have any hotfixes and/or patches in your
runtime/servers/lib directory? or if that directory exists at all for you?






	select * from blahBlahBooey


	
		
	





thanks.

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

visit www.antiwrap.com to send long url emails to your friends!

-- dont mistake my perfection as arrogance
anonymous
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Message Board

2004-06-11 Thread Mark A. Kruger - CFG
Rick,

Ah. I see your point - although anyone who has done any business with Sun Micro might bridle at the thought that the
main purpose of their "free" psuedo open-source java project is to benefit the world in general without a thought to
profit. And let's not forget all those "enterprise" applications out there that run on Java for thousands of dollars per
CPU a year - should they all be free because Java is free?  Apache is another story.  I personally don't think of
software or technology with enough piety to separate it from my profit motive (ha). I'm quite happy to have folks build
things and then charge for their use - after all, that's what I do for a living. I suspect that if CF were to become
more "free" I would have to charge less and make less because it would be perceived differently. I'm not interested in
giving the gift of CF to the world - there are probably other things more deserving my charity. I'm more interested
early retirement (hehe).

-Mark

  -Original Message-
  From: Rick Root [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 2:01 PM
  To: CF-Talk
  Subject: Re: Message Board

  Mark A. Kruger - CFG wrote:

  > uh what?

  Is not the java programming language free?  What about the XML and SOAP
  parsing stuff from the Apache project.  I'm pretty sure that's all free too.

    - Rick

  >   -Original Message-
  >   From: Rick Root [mailto:[EMAIL PROTECTED]
  >   Sent: Friday, June 11, 2004 1:49 PM
  >   To: CF-Talk
  >   Subject: Re: Message Board
  >
  >   Calvin Ward wrote:
  >
  >   > I  don't agree with the need for free anything, especially something
  >   > someone crafted.
  >
  >   That's an awfully irrational statement coming from a cold fusion
  >   developer, whose language depends heavily on FREE software.
  >
  > - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Rick Root
Mark A. Kruger - CFG wrote:

> uh what?

Is not the java programming language free?  What about the XML and SOAP 
parsing stuff from the Apache project.  I'm pretty sure that's all free too.

  - Rick

>   -Original Message-
>   From: Rick Root [mailto:[EMAIL PROTECTED]
>   Sent: Friday, June 11, 2004 1:49 PM
>   To: CF-Talk
>   Subject: Re: Message Board
> 
>   Calvin Ward wrote:
> 
>   > I  don't agree with the need for free anything, especially something
>   > someone crafted.
> 
>   That's an awfully irrational statement coming from a cold fusion
>   developer, whose language depends heavily on FREE software.
> 
> - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Message Board

2004-06-11 Thread Mark A. Kruger - CFG
uh what?
  -Original Message-
  From: Rick Root [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 1:49 PM
  To: CF-Talk
  Subject: Re: Message Board

  Calvin Ward wrote:

  > I  don't agree with the need for free anything, especially something 
  > someone crafted.

  That's an awfully irrational statement coming from a cold fusion 
  developer, whose language depends heavily on FREE software.

    - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: UTF-8 Encoding on CF5

2004-06-11 Thread dr
>not following you. if you assign a result from that method:
>
>strData=jObj.getBytes("UTF-8");
>
>strData will be a binary (i want to say array of bytes but not without
>checking first). is that what you meant?
>

Right, it's a byte array.  Essentially, I have a string.  Say it's "foo".  I need to get the utf8 byte representation of "foo", then get the hash value of the byte representation, then get the byte representation of the hash value.  Once I get the byte representation of the hash, I need to hex encode it for comparison purposes.  I guess I'm struggling with converting the byte representation of "foo" to the hash, so I'm trying to get the byte representation to print to the screen for troubleshooting purposes.  This doesn't seem possible at all to me.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Rick Root
Calvin Ward wrote:

> I  don't agree with the need for free anything, especially something 
> someone crafted.

That's an awfully irrational statement coming from a cold fusion 
developer, whose language depends heavily on FREE software.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Slow Down CFmail?

2004-06-11 Thread Kristopher Pilles

    
    
    
    
    
    
cachedwithin="#CreateTimeSpan(0,1,0,0)#">
   SELECT mylist.myEmail
   FROM mylist
   WHERE mylist.myEmail IS NOT NULL
   ORDER BY mylist.myPrimaryKey ASC
    
    
    
    
    
    
    



   
   

FINISHED


   
   All Done
   Close this browser window!
   Do NOT press your BACK button to leave.
   
    

   
   
   
   
  
   
   
   
   
   
   
 &UniqueURL=#UrlEncodedFormat(CreateUUID()#">
   
   
Low Volume Mass Mailer
   
   
   
   
   
  to="#MailList.myEmail#"
  from="[EMAIL PROTECTED]"
  subject="SnailMail" 
  server="mail.blah.com"
  query="MailRun" 
  maxrows="#variables.QueryRun#"
  startrow="#url.CurrStart#"
  type="HTML">
    YOUR EMAIL TEXT GOES HERE
    
   name="Reply-To" 
   value="[EMAIL PROTECTED]">
    
   name="Message-ID" 
   value="<#CreateUUID()[EMAIL PROTECTED]>">
    
   name="Content-Type" 
   value="#variables.CharSet#">
    
   name="Mime-Version" 
   value="1.0">
   
   
   
   Sending messages #url.CurrStart# thru #variables.NextShow#
   Total to send: #MailRun.RecordCount#
   
   
   Leave this system alone and wait for this job to complete.
   When it finishes, you will be notified.
   


	-Original Message-
	From: Tom Jordahl [mailto:[EMAIL PROTECTED] 
	Sent: Friday, June 11, 2004 2:46 PM
	To: CF-Talk
	Subject: RE: Slow Down CFmail?
	
	
	Mark,
	
	CFMX Professional has limits on the number of messages it will
deliver when
	the spooler runs.  The formula in CFMX 6.1 is:
	
	int batch_size = 35;
	
	if (size > 100)
	
	{
	
	batch_size = size / (int)Math.log ((double)size);
	
	if (batch_size > 1000) batch_size = 1000;
	
	if (batch_size < 35) batch_size = 35;
	
	}
	
	There are no external tweaks to this calculation.
	
	CFMX Enterprise goes flat out till *all* of the messages are
delivered, and
	then it will go to sleep for the spool interval.
	
	--
	Tom Jordahl
	Macromedia Server Development
	
	-Original Message-
	From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
	Sent: Thursday, June 10, 2004 2:56 PM
	To: CF-Talk
	Subject: RE: Slow Down CFmail?
	
	The mail server is GMS (Gordano Messaging Server)
http://www.ntmail.co.uk/
	We contacted the makers and they told us that the "pro version"
(250 user)
	we have will slow down sending mail after a Approx, 5000
messages per day
	have been reached. (I do not remember the exact number of
messages) If we
	upgraded to the enterprise version we would not see the
slowdown. Even
	though it would be just a SN that we would plug-in to our
existing server to
	make the server the enterprise version. : - (
	
	The solution found at http://tutorial256.easycfm.com/ would work
very well,
	(in fact I am using something like that for another client.)
But, I have
	several clients mail list that I can't spend the time on
rebuilding. I wish
	I could.
	
	I think tweaking something like the spooler frequency in the
CFADMIN is what
	I am looking for.
	
	Does anyone know how many messages the spooler will take each
time it checks
	for new messages? Can that be tweaked in one of the xml config
files?
	
	Mark W. Breneman
	-Cold Fusion Developer
	-Network Administrator
	  Vivid Media
	  [EMAIL PROTECTED]
	  www.vividmedia.com
	  608.270.9770
	
	  _ 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Slow Down CFmail?

2004-06-11 Thread Tom Jordahl
Mark,

CFMX Professional has limits on the number of messages it will deliver when
the spooler runs.  The formula in CFMX 6.1 is:

int batch_size = 35;

if (size > 100)

{

batch_size = size / (int)Math.log ((double)size);

if (batch_size > 1000) batch_size = 1000;

if (batch_size < 35) batch_size = 35;

}

There are no external tweaks to this calculation.

CFMX Enterprise goes flat out till *all* of the messages are delivered, and
then it will go to sleep for the spool interval.

--
Tom Jordahl
Macromedia Server Development

-Original Message-
From: Mark W. Breneman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 10, 2004 2:56 PM
To: CF-Talk
Subject: RE: Slow Down CFmail?

The mail server is GMS (Gordano Messaging Server) http://www.ntmail.co.uk/
We contacted the makers and they told us that the "pro version" (250 user)
we have will slow down sending mail after a Approx, 5000 messages per day
have been reached. (I do not remember the exact number of messages) If we
upgraded to the enterprise version we would not see the slowdown. Even
though it would be just a SN that we would plug-in to our existing server to
make the server the enterprise version. : - (

The solution found at http://tutorial256.easycfm.com/ would work very well,
(in fact I am using something like that for another client.) But, I have
several clients mail list that I can't spend the time on rebuilding. I wish
I could.

I think tweaking something like the spooler frequency in the CFADMIN is what
I am looking for.

Does anyone know how many messages the spooler will take each time it checks
for new messages? Can that be tweaked in one of the xml config files?

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

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




RE: CFMAIL stripping graphics in HTML

2004-06-11 Thread Paul Jones
Thanks Goug.  That was exactly my problem.  I've since changed my tag to point to the web server for the image.

[EMAIL PROTECTED] wrote:this CFMX?  can't send inline images via CFMAIL with cfmx yet.  You can send HTML  tags of course with a src pointing to a webserver, just not in-line images.

Doug

		
-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Calvin Ward
I  don't agree with the need for free anything, especially something someone crafted.

-Original Message-
From:  Mark Drew 
Date:  6/11/04 12:38 pm
To:  CF-Talk 
Subj:  Re: Message Board

I have to agree on that, and I am not sure the reason why? do PHPers
talk more???

On Fri, 11 Jun 2004 12:35:30 -0400, Rick Root <[EMAIL PROTECTED]> wrote:
> 
> Tangorre, Michael wrote:
> 
> >  > Could someone suggest a good forum/message board in CF for a
> >  > good price?
> >
> > http://www.fusetalk.com/
> 
> I love CF as much as the next guy, but I've never found a message board
> software written in CF that is as good as some of the open source ones
> out there written in PHP, like phpbb and phorum.  Most of them have more
> features than fuseTalk basic does for $449 (assuming you want the source)
> 
> I'm perfectly happy integrating a php-based message board into a
> cold-fusion based web site rather than forking out a ton of money.
> 
> Seems like just every every "decent" cold fusion powered message board
> out there is a commercial product, which is a shame.
> 
>   - Rick
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Function for days and years...

2004-06-11 Thread Mark A. Kruger - CFG
Sorry,

I was trying to send that to the guy who needed it.

-Mark
  -Original Message-
  From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 1:13 PM
  To: CF-Talk
  Subject: Function for days and years...

  This function makes sure that the days match the correct number of days for that month...

  -Mark

    -Original Message-
    From: Pascal Peters [mailto:[EMAIL PROTECTED]
    Sent: Friday, June 11, 2004 12:38 PM
    To: CF-Talk
    Subject: RE: Regular expressions in JS (or in general) for dates

    function daysInMonth(y,m){
    if (m == 4 || m == 6 || m == 9 || m == 11)
    return 30;
    else if (m == 2)
    {
    if (y % 4 > 0)
    return 28;
    else if (y % 100 == 0 && y % 400 > 0)
    return 28;
    else
    return 29;
    }
    else return 31;
    }
    function isDate(date){
    var date_pattern =
    /^(0?[1-9]|1[0-2])\/(0?[1-9]|[12]\d|3[01])\/(\d{2}){1,2}$/;
    if(!date_pattern.test(date)) return false;
    var aDate = date.split("/");
    if(aDate[2].length==2) aDate[2] = (eval(aDate[2])>30)?"19":"20"
    + aDate[2];
    alert(aDate[2]+"-"+aDate[0]+"-"+aDate[1]);
    if(eval(aDate[1])>daysInMonth(eval(aDate[2]),eval(aDate[0])))
    return false;
    return true;
    } 

    > -Original Message-
    > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
    > Sent: vrijdag 11 juni 2004 18:41
    > To: CF-Talk
    > Subject: OT: Regular expressions in JS (or in general) for dates
    > 
    > Regex gurus,
    > 
    > I have a string and I want to ensure that the date format is:
    > 
    > xx/xx/ or x/x/ or x/x/xx (you get the idea)
    > 
    > Does anyone have a stock regex for this?  Am I going to need 
    > more than 1 or can I look at everything (length, format and 
    > range of numbers) in 1 regex?
    > 
    > -mark
    > 
    > 
    > 
    > Mark A. Kruger, MCSE, CFG
    > www.cfwebtools.com
    > www.necfug.com
    > http://blog.mxconsulting.com
    > ...what the web can be!
    > 
    > 
    > 
    > 
    > 
    >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFMAIL stripping graphics in HTML

2004-06-11 Thread Douglas.Knudsen
this CFMX?  can't send inline images via CFMAIL with cfmx yet.  You can send HTML  tags of course with a src pointing to a webserver, just not in-line images.

 
Doug

-Original Message-
From: Paul Jones [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 2:03 PM
To: CF-Talk
Subject: CFMAIL stripping graphics in HTML

I am using CFMAIL to send an html type mail that has an inline graphic.  All the information goes through properly however the graphic seems to be stripped off.  Initially I thought my SMTP server was stripping it off.  I have since tried several servers and I still get the same result.  Should there be another attribute to the CFMAIL tag to include in-line graphics? 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Function for days and years...

2004-06-11 Thread Mark A. Kruger - CFG
This function makes sure that the days match the correct number of days for that month...

-Mark

  -Original Message-
  From: Pascal Peters [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 12:38 PM
  To: CF-Talk
  Subject: RE: Regular expressions in JS (or in general) for dates

  function daysInMonth(y,m){
  if (m == 4 || m == 6 || m == 9 || m == 11)
  return 30;
  else if (m == 2)
  {
  if (y % 4 > 0)
  return 28;
  else if (y % 100 == 0 && y % 400 > 0)
  return 28;
  else
  return 29;
  }
  else return 31;
  }
  function isDate(date){
  var date_pattern =
  /^(0?[1-9]|1[0-2])\/(0?[1-9]|[12]\d|3[01])\/(\d{2}){1,2}$/;
  if(!date_pattern.test(date)) return false;
  var aDate = date.split("/");
  if(aDate[2].length==2) aDate[2] = (eval(aDate[2])>30)?"19":"20"
  + aDate[2];
  alert(aDate[2]+"-"+aDate[0]+"-"+aDate[1]);
  if(eval(aDate[1])>daysInMonth(eval(aDate[2]),eval(aDate[0])))
  return false;
  return true;
  } 

  > -Original Message-
  > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
  > Sent: vrijdag 11 juni 2004 18:41
  > To: CF-Talk
  > Subject: OT: Regular expressions in JS (or in general) for dates
  > 
  > Regex gurus,
  > 
  > I have a string and I want to ensure that the date format is:
  > 
  > xx/xx/ or x/x/ or x/x/xx (you get the idea)
  > 
  > Does anyone have a stock regex for this?  Am I going to need 
  > more than 1 or can I look at everything (length, format and 
  > range of numbers) in 1 regex?
  > 
  > -mark
  > 
  > 
  > 
  > Mark A. Kruger, MCSE, CFG
  > www.cfwebtools.com
  > www.necfug.com
  > http://blog.mxconsulting.com
  > ...what the web can be!
  > 
  > 
  > 
  > 
  > 
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFMAIL stripping graphics in HTML

2004-06-11 Thread Rick Root
Paul Jones wrote:

> I am using CFMAIL to send an html type mail that has an inline 
> graphic.  All the information goes through properly however the graphic 
> seems to be stripped off.  Initially I thought my SMTP server was 
> stripping it off.  I have since tried several servers and I still get 
> the same result.  Should there be another attribute to the CFMAIL tag to 
> include in-line graphics?

Do you mean it's stripping the HTML code that includes the graphic?  ie, 
the  tag?  If you include images within CFMAIL HTML messages, I was 
under the impression that the only way to do it was via external 
reference... ie, 

If that is what you are doing, then maybe hte mail client is blocking 
the external reference

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Regular expressions in JS (or in general) for dates

2004-06-11 Thread Mark A. Kruger - CFG
Thanks! also thanks to Ben. This is what I needed.

-Mark

  -Original Message-
  From: Pascal Peters [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 12:38 PM
  To: CF-Talk
  Subject: RE: Regular expressions in JS (or in general) for dates

  function daysInMonth(y,m){
  if (m == 4 || m == 6 || m == 9 || m == 11)
  return 30;
  else if (m == 2)
  {
  if (y % 4 > 0)
  return 28;
  else if (y % 100 == 0 && y % 400 > 0)
  return 28;
  else
  return 29;
  }
  else return 31;
  }
  function isDate(date){
  var date_pattern =
  /^(0?[1-9]|1[0-2])\/(0?[1-9]|[12]\d|3[01])\/(\d{2}){1,2}$/;
  if(!date_pattern.test(date)) return false;
  var aDate = date.split("/");
  if(aDate[2].length==2) aDate[2] = (eval(aDate[2])>30)?"19":"20"
  + aDate[2];
  alert(aDate[2]+"-"+aDate[0]+"-"+aDate[1]);
  if(eval(aDate[1])>daysInMonth(eval(aDate[2]),eval(aDate[0])))
  return false;
  return true;
  } 

  > -Original Message-
  > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
  > Sent: vrijdag 11 juni 2004 18:41
  > To: CF-Talk
  > Subject: OT: Regular expressions in JS (or in general) for dates
  > 
  > Regex gurus,
  > 
  > I have a string and I want to ensure that the date format is:
  > 
  > xx/xx/ or x/x/ or x/x/xx (you get the idea)
  > 
  > Does anyone have a stock regex for this?  Am I going to need 
  > more than 1 or can I look at everything (length, format and 
  > range of numbers) in 1 regex?
  > 
  > -mark
  > 
  > 
  > 
  > Mark A. Kruger, MCSE, CFG
  > www.cfwebtools.com
  > www.necfug.com
  > http://blog.mxconsulting.com
  > ...what the web can be!
  > 
  > 
  > 
  > 
  > 
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFMAIL stripping graphics in HTML

2004-06-11 Thread Paul Jones
I am using CFMAIL to send an html type mail that has an inline graphic.  All the information goes through properly however the graphic seems to be stripped off.  Initially I thought my SMTP server was stripping it off.  I have since tried several servers and I still get the same result.  Should there be another attribute to the CFMAIL tag to include in-line graphics?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Rick Root
Howie Hamlin wrote:

> CFBB is free with source:
> 
> http://www.adersoftware.com/index.cfm?page=cfbb

Hey that looks nice... looks like they based it on phpbb, too.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Regular expressions in JS (or in general) for dates

2004-06-11 Thread Pascal Peters
function daysInMonth(y,m){
 	if (m == 4 || m == 6 ||	m == 9 || m == 11)
		return 30;
	else if (m == 2)
	{
		if (y % 4 > 0)
			return 28;
		else if (y % 100 == 0 && y % 400 > 0)
			return 28;
		else
			return 29;
	}
	else return 31;
}
function isDate(date){
	var date_pattern =
/^(0?[1-9]|1[0-2])\/(0?[1-9]|[12]\d|3[01])\/(\d{2}){1,2}$/;
	if(!date_pattern.test(date)) return false;
	var aDate = date.split("/");
	if(aDate[2].length==2) aDate[2] = (eval(aDate[2])>30)?"19":"20"
+ aDate[2];
	alert(aDate[2]+"-"+aDate[0]+"-"+aDate[1]);
	if(eval(aDate[1])>daysInMonth(eval(aDate[2]),eval(aDate[0])))
return false;
	return true;
} 

> -Original Message-
> From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
> Sent: vrijdag 11 juni 2004 18:41
> To: CF-Talk
> Subject: OT: Regular expressions in JS (or in general) for dates
> 
> Regex gurus,
> 
> I have a string and I want to ensure that the date format is:
> 
> xx/xx/ or x/x/ or x/x/xx (you get the idea)
> 
> Does anyone have a stock regex for this?  Am I going to need 
> more than 1 or can I look at everything (length, format and 
> range of numbers) in 1 regex?
> 
> -mark
> 
> 
> 
> Mark A. Kruger, MCSE, CFG
> www.cfwebtools.com
> www.necfug.com
> http://blog.mxconsulting.com
> ...what the web can be!
> 
> 
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Thank you page after download

2004-06-11 Thread Ben Doom
Why not embed this page in an iframe on the thank you page?  Or a thank 
you page that redirects onLoad to this page, since that ought to leave 
the thankyou page visible when the download starts?

--Ben Doom

Dave Francis wrote:

> Hi,
> 
> In CF 5.0, to download a file to the user I have a page that 
> consists only of
> 
> 
> 
> 
> which downloads very nicely. But now I'd like to present a "Thank 
> you" page when download has finished (or even when it starts!). Can this 
> be done?
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: OT: Regular expressions in JS (or in general) for dates

2004-06-11 Thread Ben Doom
You could try something like this:

\d{1,2}/\d{1,2}/\d\d(?\d\d)?

Of course, that's only using slashes, not dashes or dots or spaces, but 
it should give you the right idea.

--BenD

Mark A. Kruger - CFG wrote:

> Regex gurus,
> 
> I have a string and I want to ensure that the date format is:
> 
> xx/xx/ or x/x/ or x/x/xx (you get the idea)
> 
> Does anyone have a stock regex for this?  Am I going to need more than 1 
> or can I look at everything (length, format and
> range of numbers) in 1 regex?
> 
> -mark
> 
> Mark A. Kruger, MCSE, CFG
> www.cfwebtools.com
> www.necfug.com
> http://blog.mxconsulting.com
> ...what the web can be!
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Regular expressions in JS (or in general) for dates

2004-06-11 Thread Pascal Peters
You can't do it with only regexp. There is a function in the
cfide/scripts/cfform.js file tht does about that. You can validate most
of it with

/^(0?[1-9]|[12]\d|3[01])\/(0?[1-9]|1[0-2])\/(\d{2}){1,2}$/

Then extract the day, month and year and see if the day is correct.

> -Original Message-
> From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
> Sent: vrijdag 11 juni 2004 18:41
> To: CF-Talk
> Subject: OT: Regular expressions in JS (or in general) for dates
> 
> Regex gurus,
> 
> I have a string and I want to ensure that the date format is:
> 
> xx/xx/ or x/x/ or x/x/xx (you get the idea)
> 
> Does anyone have a stock regex for this?  Am I going to need 
> more than 1 or can I look at everything (length, format and 
> range of numbers) in 1 regex?
> 
> -mark
> 
> 
> 
> Mark A. Kruger, MCSE, CFG
> www.cfwebtools.com
> www.necfug.com
> http://blog.mxconsulting.com
> ...what the web can be!
> 
> 
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFC init() question

2004-06-11 Thread Raymond Camden
I won't say this is bettere, this is just an idea I've been using. For every
application, I'll create a CFC with the same name as the app itself, or a
CFC called "settings". This CFC will have a method, getSettings, that
returns a struct. This struct contains all the stuff I used to store in
application vars. DSN names. Mappings. Settings. Etc.

So, in my Application.cfm file, I'll have something like this:


isDefined("url.reinitmebaby")>
	
returnVariable="settings">
	


This then allows me to use these settings in my code. In my CFCs, the
constructor area will have the exact same code, pretty much...

	
returnVariable="variables.settings">

Then methods can use #variables.settings.dsn#, or whatever. This means that
all my CFCs and other code use the same API to get settings. It also means
my CFCs aren't required to use Application variables.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Thank you page after download

2004-06-11 Thread Dain Anderson
You can put another CFHEADER, just before the others:





-Dain

Dave Francis wrote:

> Hi,
> 
> In CF 5.0, to download a file to the user I have a page that 
> consists only of
> 
> 
> 
> 
> which downloads very nicely. But now I'd like to present a "Thank 
> you" page when download has finished (or even when it starts!). Can this 
> be done?
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Howie Hamlin
CFBB is free with source:

http://www.adersoftware.com/index.cfm?page=cfbb

HTH,
-- 
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
PrismAV - Virus scanning for ColdFusion applications
>>> Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm

  - Original Message - 
  From: CFDEV 
  To: CF-Talk 
  Sent: Friday, June 11, 2004 10:24 AM
  Subject: Message Board

  Hi All,

  I know it's been discuss many time but in the archive, I can't satisfy
  myself with the answers.

  Could someone suggest a good forum/message board in CF for a good price?

  Thanks

  Pat
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Finding the current directory of a script

2004-06-11 Thread Raymond Camden
> > Tis true! I hang myself in shame for not knowing that funciton!.
> 
> Heh.
> 
> I once spent some time writing a custom tag to get the 
> filename from a complete path, and another one to get the 
> directory from a complete path.
> 
> Then I discovered GetFileFromPath and GetDirectoryFromPath
> 
> That was a long long time ago =)  But damn I felt stupid.
> 

Don't feel so bad. CFLib gets _numerous_
submissions for functions that already exist in CF.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Thank you page after download

2004-06-11 Thread Dave Francis
Hi,

    In CF 5.0, to download a file to the user I have a page that consists only of




    which downloads very nicely. But now I'd like to present a "Thank you" page when download has finished (or even when it starts!). Can this be done?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Message Board

2004-06-11 Thread Tim Laureska
thanks

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 1:14 PM
To: CF-Talk
Subject: Re: Message Board

Tim Laureska wrote:

> Rick... any links to where you can get these php message boards ... 

I know it's tough.. but..

phpbb = www.phpbb.com
phorum = www.phorum.com

  =)

I'm guilty of the money grubbing myself... back in 1999, I wrote a lot 
of custom tags and uploaded them to the allaire cold fusion exchange... 
they were free to download but I charged $20 or so for the source code..

Anyone remember my CF_AMAZON tag?  It was a "top pick" for a while.. it 
screenscraped product details from amazon.com.. and it broke every time 
they changed their HTML design. =)  so I ended up re-writing it to 
screen scrape the data, store it on my server, and the CF_AMAZON custom 
tag would contact my server instead and get WDDX data in return.

Damn, I invented web services! ;)

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Rick Root
Tim Laureska wrote:

> Rick... any links to where you can get these php message boards ... 

I know it's tough.. but..

phpbb = www.phpbb.com
phorum = www.phorum.com

  =)

I'm guilty of the money grubbing myself... back in 1999, I wrote a lot 
of custom tags and uploaded them to the allaire cold fusion exchange... 
they were free to download but I charged $20 or so for the source code..

Anyone remember my CF_AMAZON tag?  It was a "top pick" for a while.. it 
screenscraped product details from amazon.com.. and it broke every time 
they changed their HTML design. =)  so I ended up re-writing it to 
screen scrape the data, store it on my server, and the CF_AMAZON custom 
tag would contact my server instead and get WDDX data in return.

Damn, I invented web services! ;)

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Trusted Cache

2004-06-11 Thread Philip Arnold
On Fri, 11 Jun 2004 17:11:07 +0100, Robertson-Ravo, Neil (RX) wrote:
> 
> Anyone currently using Trusted Cache?  Good/Bad?

In my old company (you know who they are), we used Trusted Cache on
the servers, and had an app which uploaded and "touched" the cache to
refresh the template

But the servers were all on CF5

Not sure if you can do the same in MX now...

The Trusted Cache made a definite difference in speed, but other
things are important as well which are really simple:
Ensure Debugging is turned off
Ensure Robust Exceptions are turned off
Ensure Performance Monitor is turned off
Ensure CFSTAT is turned off

All of those take a little bit of resourcing which isn't requires
unless you REALLY need them at the time - so only turn them on when
needed, and turn them off after
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Trusted Cache

2004-06-11 Thread Mark W. Breneman
I think it is a good idea but, the boss wants to make sure any changes we do
to any of our clients websites are immediately visible to the client.
Luckily all of our client's website are very low traffic, so caching is not
needed.

One downside is that you need to reset the CFserver to turn off Trusted
Cache. (at least in CFMX 6.0)

BTW, is there any way to turn off Trusted Cache or at least clear the
Trusted Cache with out resetting the CF server? 

Mark W. Breneman
-Cold Fusion Developer
-Network Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

  _  

From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 11:27 AM
To: CF-Talk
Subject: RE: Trusted Cache

sure am.

great.  pages load, REALLY fast, I think, at least they seem to, maybe its
placebonic, but it seems as though its making speed faster.

tw 

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 12:11 PM
To: CF-Talk
Subject: Trusted Cache

Anyone currently using Trusted Cache?  Good/Bad?



This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

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




Re: On Error Resume Next

2004-06-11 Thread Asim Manzur
I Have already tried it in that way, but it stops running the code.

in the debugging info it shows the error
Exceptions

12:49:52.052 - Object Exception - in C:\CFusionMX\wwwroot\dev\dundas\dundas.cfm : line 3
	    An exception occurred when executing a Com method.

is this component documentation it says that some server will through exceptions, so use On Error Resume Next.

below is my codes


	
	
		
	The name of the form item is: #objFormItem#
			  The value of the form item is: #objFormItem.Value#"
	
	
	
		
	


Thanks
Asim
>> In ASP we use 
>
>There is no exact equivalent to "On Error Resume Next" in CFML. I would
>argue that this is a good thing - I think that "On Error Resume Next" is
>terrible!
>
>Instead, we have exception handling. For any block of code that you expect
>might fail, you can use CFTRY/CFCATCH to build an exception handler. In
>addition to being able to continue running code, you can actually respond to
>the specific problem encountered.
>
>In your case, if you simply want to continue running code, you could do
>this:
>
>
>
>	... problematic code goes here ...
>
>	
>	
>	
>
>
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>phone: 202-797-5496
>fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Finding the current directory of a script

2004-06-11 Thread Rick Root
Mark Drew wrote:

> I reutrn to my hole shaking my head in disgust at my useless self.

BTW, after I wrote those custom tags when I could've just used the 
built-in functions, I decided to spend some time actually reading the 
CF4.0 reference guide.    You see, I started using CF 3.1, but at the 
time we had upgraded to CF 4.0, and that's why I didn't know the 
function existed.

There are still many functions in CFMX that I don't know about.. one of 
these days, I'll have to read the reference guide again... maybe when I 
decide to go for certification. :)

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: someone has to know this... MACROMEDIANS, anyone...cfdump 3rd post

2004-06-11 Thread Tony Weeg
yeah, the hotfixes, and its not just one of them, it's them, it's the
directory.  I tried renaming everything with an _1 at the end, and the
cfdump didn't work, so I new it wasn't the files in the directory.  then I
renamed the directory with an _1 at the end, and GUESS WHAT? it works.

explanation, I hope its enough, let me know if not.

tw 

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 12:37 PM
To: CF-Talk
Subject: RE: someone has to know this... MACROMEDIANS, anyone...cfdump 3rd
post

Is there anything IN your servers/lib directory - and how did you figure out
that this was the problem??

-Mark

  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 11:18 AM
  To: CF-Talk
  Subject: someone has to know this... MACROMEDIANS, anyone...cfdump 3rd
post

  if I run this code, with a "c:\cfusion\runtime\servers\lib" path present
on
  my server

  

  
  select * from companyTables
  

  
  
  

  

  I get this response...

  [unknown type]

  however, if I remove the c:\cfusion\runtime\servers\lib directory, I get
the
  cfcatch struct, as expected.  any ideas?

  thanks

  ...tony

  tony weeg
  senior web applications architect
  navtrak, inc.
  www.navtrak.net
  [EMAIL PROTECTED]
  410.548.2337

  visit www.antiwrap.com to send long url emails to your friends!

  -- dont mistake my perfection as arrogance
  anonymous
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Finding the current directory of a script

2004-06-11 Thread Rick Root
Mark Drew wrote:

> Tis true! I hang myself in shame for not knowing that funciton!.

Heh.

I once spent some time writing a custom tag to get the filename from a 
complete path, and another one to get the directory from a complete path.

Then I discovered GetFileFromPath and GetDirectoryFromPath

That was a long long time ago =)  But damn I felt stupid.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Flushing CFCACHE

2004-06-11 Thread Philip Arnold
On Fri, 11 Jun 2004 11:40:26 -0400, Robert Shaw wrote:
> 
> Is there a method for flushing individual pages from trusted cache within
> CFMX?

There is a programatic way to do it in CF5, but I've not seen code to
do the same for MX
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Message Board

2004-06-11 Thread Tangorre, Michael
> Seems like just every every "decent" cold fusion powered 
> message board out there is a commercial product, which is a shame.

PHP is free. If CF were free, there would be more free applications.

Mike
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Nathan Strutz
Mark Drew wrote:

 > I have to agree on that, and I am not sure the reason why? do PHPers
 > talk more???
 >

open source = open mouth?

Who's going to start a high quality CF messageboard on sourceforge?
not me. at least not this week.

-nathan strutz
http://www.dopefly.com/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Damien McKenna
On Jun 11, 2004, at 12:38 PM, Mark Drew wrote:
> I have to agree on that, and I am not sure the reason why? do PHPers
> talk more???

PHP has more of a community following.  It stems from an open-source 
methodology thus the majority of tools written in it are open-sourced.  
Compare that to ColdFusion where people have to pay large amounts of 
money to use it, many attempt to recoup some of this through selling 
add-ons.  It is a completely different mind-set.
-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Message Board

2004-06-11 Thread Tim Laureska
Rick... any links to where you can get these php message boards ... you
can send them off list if you want

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 12:36 PM
To: CF-Talk
Subject: Re: Message Board

Tangorre, Michael wrote:

>  > Could someone suggest a good forum/message board in CF for a
>  > good price?
> 
> http://www.fusetalk.com/

I love CF as much as the next guy, but I've never found a message board 
software written in CF that is as good as some of the open source ones 
out there written in PHP, like phpbb and phorum.  Most of them have more

features than fuseTalk basic does for $449 (assuming you want the
source)

I'm perfectly happy integrating a php-based message board into a 
cold-fusion based web site rather than forking out a ton of money.

Seems like just every every "decent" cold fusion powered message board 
out there is a commercial product, which is a shame.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Mark Drew
I have to agree on that, and I am not sure the reason why? do PHPers
talk more???

On Fri, 11 Jun 2004 12:35:30 -0400, Rick Root <[EMAIL PROTECTED]> wrote:
> 
> Tangorre, Michael wrote:
> 
> >  > Could someone suggest a good forum/message board in CF for a
> >  > good price?
> >
> > http://www.fusetalk.com/
> 
> I love CF as much as the next guy, but I've never found a message board
> software written in CF that is as good as some of the open source ones
> out there written in PHP, like phpbb and phorum.  Most of them have more
> features than fuseTalk basic does for $449 (assuming you want the source)
> 
> I'm perfectly happy integrating a php-based message board into a
> cold-fusion based web site rather than forking out a ton of money.
> 
> Seems like just every every "decent" cold fusion powered message board
> out there is a commercial product, which is a shame.
> 
>   - Rick
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: Regular expressions in JS (or in general) for dates

2004-06-11 Thread Mark A. Kruger - CFG
Regex gurus,

I have a string and I want to ensure that the date format is:

xx/xx/ or x/x/ or x/x/xx (you get the idea)

Does anyone have a stock regex for this?  Am I going to need more than 1 or can I look at everything (length, format and
range of numbers) in 1 regex?

-mark

Mark A. Kruger, MCSE, CFG
www.cfwebtools.com
www.necfug.com
http://blog.mxconsulting.com
...what the web can be!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Message Board

2004-06-11 Thread Rick Root
Tangorre, Michael wrote:

>  > Could someone suggest a good forum/message board in CF for a
>  > good price?
> 
> http://www.fusetalk.com/

I love CF as much as the next guy, but I've never found a message board 
software written in CF that is as good as some of the open source ones 
out there written in PHP, like phpbb and phorum.  Most of them have more 
features than fuseTalk basic does for $449 (assuming you want the source)

I'm perfectly happy integrating a php-based message board into a 
cold-fusion based web site rather than forking out a ton of money.

Seems like just every every "decent" cold fusion powered message board 
out there is a commercial product, which is a shame.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: someone has to know this... MACROMEDIANS, anyone...cfdump 3rd post

2004-06-11 Thread Mark A. Kruger - CFG
Is there anything IN your servers/lib directory - and how did you figure out that this was the problem??

-Mark

  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 11:18 AM
  To: CF-Talk
  Subject: someone has to know this... MACROMEDIANS, anyone...cfdump 3rd post

  if I run this code, with a "c:\cfusion\runtime\servers\lib" path present on
  my server

  

  
  select * from companyTables
  

  
  
  

  

  I get this response...

  [unknown type]

  however, if I remove the c:\cfusion\runtime\servers\lib directory, I get the
  cfcatch struct, as expected.  any ideas?

  thanks

  ...tony

  tony weeg
  senior web applications architect
  navtrak, inc.
  www.navtrak.net
  [EMAIL PROTECTED]
  410.548.2337

  visit www.antiwrap.com to send long url emails to your friends!

  -- dont mistake my perfection as arrogance
  anonymous
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Trusted Cache

2004-06-11 Thread Tony Weeg
sure am.

great.  pages load, REALLY fast, I think, at least they seem to, maybe its
placebonic, but it seems as though its making speed faster.

tw 

-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 12:11 PM
To: CF-Talk
Subject: Trusted Cache

Anyone currently using Trusted Cache?  Good/Bad?





This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: UTF-8 Encoding on CF5

2004-06-11 Thread Paul Hastings
> Paul, thanks a ton.  This actually does work, and seems to convert the
string to UTF8 byte representation.  Is there a way I can assign the
resulting bytecode to a variable as an actual string (raw code)?

not following you. if you assign a result from that method:

strData=jObj.getBytes("UTF-8");

strData will be a binary (i want to say array of bytes but not without
checking first). is that what you meant?

> The goal is that I must be able to hash the bytes as a string, then get
the resulting UTF8 bytes of the hash in hex for encryption purposes.  The
job is made a lot touger when CF5 is involved.

probably not following but you might want to look at using a transliterator,
there's one based on icu4j in the exchange (and on
http://www.cfczone.org/cfcs/index.cfm). that might give you some ideas.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




someone has to know this... MACROMEDIANS, anyone...cfdump 3rd post

2004-06-11 Thread Tony Weeg
if I run this code, with a "c:\cfusion\runtime\servers\lib" path present on
my server




	select * from companyTables


	
		
	



I get this response...

[unknown type]

however, if I remove the c:\cfusion\runtime\servers\lib directory, I get the
cfcatch struct, as expected.  any ideas?

thanks

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

visit www.antiwrap.com to send long url emails to your friends!

-- dont mistake my perfection as arrogance
anonymous
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFC init() question

2004-06-11 Thread Burns, John D
I've seen a few people talk about some best practices of using an init()
function within a CFC to set global variables and such since the
application variables aren't available and you don't want to have to
pass stuff to every function you call (such as datasource names).  My
question is, is there a better practice for doing this than an init()
function?  Also, if you do use the init() function, how exactly does it
get written so it gets called whenever any function in the component
gets called?  This is how I have it written and it's not working.

 

    
    init();
    

 
    
    code needing variables set within the init()
    

 
    

    


 
Am I doing something wrong?  Any help would be greatly appreciated.

 
John Burns
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Trusted Cache

2004-06-11 Thread Robertson-Ravo, Neil (RX)
Anyone currently using Trusted Cache?  Good/Bad?





This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Re[4]: OT: how to view client abortions ?

2004-06-11 Thread Mark Drew
an alternative idea would be to have an image at the bottom of the
first page, that tracks users... I have used this for some sites using
PHP (can be done with CF) just by linking to a CF script that logs the
requests... not sure how many people "stop" loading a page and how
fast this is because of the nature of the web

Not sure if very clear but the basic of this is
1) have an image at the bottom of your homepage
2) that image is linked to a scrip that logs requests
3) if they stop loading the page halfway through, the image wont be
loaded (right?)

Hope this helps

MD

On Fri, 11 Jun 2004 16:49:36 +0200, Uwe Degenhardt
<[EMAIL PROTECTED]> wrote:
> 
> Hi Mark, yes we have IIS, but I don't see, which one I could
> take. Status-Code 200 doesn't give me the right information.
> How would you do this on your Apache ?
> Infact we have more than one virtual log as well,
> so that shouldn't be the problem.
> Uwe
> MD> Back to the topic ...
> MD> Depending on the machine setup (with multiple virtual hosts) you can
> MD> have different log  files. *I have using apache*
> 
> MD> does this help? or is it all going into one file?
> 
> MD> MD
> 
> MD> On Thu, 10 Jun 2004 22:27:43 +0200, [EMAIL PROTECTED]
> MD> <[EMAIL PROTECTED]> wrote:
> >>
> >> oops.
> >> sorry. I hope I didn't
> >> hurt somebody.
> >>
> >> Maybe I should have asked my former
> >> english teacher BEFOREHAND of
> >> writing my subjectline of the thread. ;-)
> >>
> >> Uwe
> >>
> >>
> >>
> 
> MD>
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread Claude Schneegans
If it is alway "item_id", then what you want is always after the 7th character, then how about


--
___
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]




Re: Message Board

2004-06-11 Thread Mark Drew
Beaten to the post!

On Fri, 11 Jun 2004 10:36:22 -0400, Tangorre, Michael
<[EMAIL PROTECTED]> wrote:
> 
> > Could someone suggest a good forum/message board in CF for a
> > good price?
> 
> http://www.fusetalk.com/
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread George Abraham
Ah, just curious. Thanks!

George

At 11:53 AM 6/11/2004, Dain Anderson wrote:
>This is a pretty simple _expression_, and I would doubt the additional
>processing needed is noticeable. The reason I suggested it is because
>it's the only sure-fire way of grabbing just the number, irregardless of
>the preceeding value, respectfully.
>
>George Abraham wrote:
>
> > Is that better performance/resource-wise? Using regular expressions,
> > that is?
> >
> > George
> >
> > At 11:39 AM 6/11/2004, Dain Anderson wrote:
> >  >You could use a little RegEx to do that:
> >  >
> >  >
> >  >#REReplace(i, "[^0-9]", "", "ALL")#
> >  >
> >  >
> >  >-Dain
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread Dain Anderson
This is a pretty simple _expression_, and I would doubt the additional 
processing needed is noticeable. The reason I suggested it is because 
it's the only sure-fire way of grabbing just the number, irregardless of 
the preceeding value, respectfully.

George Abraham wrote:

> Is that better performance/resource-wise? Using regular expressions, 
> that is?
> 
> George
> 
> At 11:39 AM 6/11/2004, Dain Anderson wrote:
>  >You could use a little RegEx to do that:
>  >
>  >
>  >#REReplace(i, "[^0-9]", "", "ALL")#
>  >
>  >
>  >-Dain
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Flushing CFCACHE

2004-06-11 Thread Dave Watts
> Subject: Flushing CFCACHE
> 
> Is there a method for flushing individual pages from trusted 
> cache within CFMX?

Yes, you can flush pages from trusted cache:

1. Disable Trusted Cache.
2. Run the page.
3. Enable Trusted Cache.

It's worth pointing out that Trusted Cache isn't the same as CFCACHE. You
can also flush pages from that, as well.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Flushing CFCACHE

2004-06-11 Thread Tony Weeg
restart server ;) 

-Original Message-
From: Robert Shaw [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 11:40 AM
To: CF-Talk
Subject: Flushing CFCACHE

Is there a method for flushing individual pages from trusted cache within 
CFMX?

TIA,
Robbie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread cf coder
Sorry Mark... my bad, your code was right. Thanks Dain
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Finding the current directory of a script

2004-06-11 Thread Mark Drew
I reutrn to my hole shaking my head in disgust at my useless self.

Call myself a CF developer?! TUT!

Thanks for your (elegant) help!


On Fri, 11 Jun 2004 16:36:11 +0100, Tim Blair <[EMAIL PROTECTED]> wrote:
> 
> > My actual question was is there a quick (like the previous
> > function) way to get the actual directory
> 
> How about:
> 
> getDirectoryFromPath(getCurrentTemplatePath())
> 
> Tim.
> 
> --
> ---
> RAWNET LTD - Internet, New Media and ebusiness Gurus.
> WE'VE MOVED - for our new address, please visit our
> website at http://www.rawnet.com/ or call us any time
> on 0800 294 24 24.
> ---
> This message may contain information which is legally
> privileged and/or confidential.  If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of rawnet limited,
> unless otherwise explicitly and independently indicated
> by an authorised representative of rawnet limited.
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread George Abraham
Is that better performance/resource-wise? Using regular expressions, that is?

George

At 11:39 AM 6/11/2004, Dain Anderson wrote:
>You could use a little RegEx to do that:
>
>
>#REReplace(i, "[^0-9]", "", "ALL")#
>
>
>-Dain
>
>cf coder wrote:
>
> > Hello everybody,
> >
> > Please can someone show me how to do this. I have a
> > comma separated list.
> >
> > 
> > item_id11, item_id12, item_id13.
> >
> > I want to loop through this list and get the
> > character(s) after the "item_id" (in this case:
> > 1,2,3,11,12,13)
> >
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Finding the current directory of a script

2004-06-11 Thread Tim Blair
> My actual question was is there a quick (like the previous 
> function) way to get the actual directory

How about:

getDirectoryFromPath(getCurrentTemplatePath())

Tim.

--
---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
WE'VE MOVED - for our new address, please visit our
website at http://www.rawnet.com/ or call us any time
on 0800 294 24 24.
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread cf coder
I don't want to replace it. I want everything after "item_id"

>
>
>#itemNo#
>
>
>On Fri, 11 Jun 2004 08:30:51 -0700 (PDT), cf coder
><[EMAIL PROTECTED]> wrote:
>>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Flushing CFCACHE

2004-06-11 Thread Robert Shaw
Is there a method for flushing individual pages from trusted cache within 
CFMX?

TIA,
Robbie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Finding the current directory of a script

2004-06-11 Thread Raymond Camden
getDirectoryFromPath()
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread Dain Anderson
You could use a little RegEx to do that:


#REReplace(i, "[^0-9]", "", "ALL")#


-Dain

cf coder wrote:

> Hello everybody,
> 
> Please can someone show me how to do this. I have a
> comma separated list.
> 
> 
> item_id11, item_id12, item_id13.
> 
> I want to loop through this list and get the
> character(s) after the "item_id" (in this case:
> 1,2,3,11,12,13)
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Right() and string manipulation help

2004-06-11 Thread Mark Drew


#itemNo#


On Fri, 11 Jun 2004 08:30:51 -0700 (PDT), cf coder
<[EMAIL PROTECTED]> wrote:
> 
> Hello everybody,
> 
> Please can someone show me how to do this. I have a
> comma separated list.
> 
> 
> item_id11, item_id12, item_id13.
> 
> I want to loop through this list and get the
> character(s) after the "item_id" (in this case:
> 1,2,3,11,12,13)
> 
> Here is the code I've written:
> 
> 
> 
> 
> Right(ListGetAt(itemList,thisItem),Find("item_id",itemList))>
> #itemNo#
> 
> 
> I would really appreciate your help.
> 
> Regards,
> 
> cfcoder
> 
> __
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Right() and string manipulation help

2004-06-11 Thread cf coder
Hello everybody,

Please can someone show me how to do this. I have a
comma separated list.


item_id11, item_id12, item_id13.

I want to loop through this list and get the
character(s) after the "item_id" (in this case:
1,2,3,11,12,13)

Here is the code I've written:




Right(ListGetAt(itemList,thisItem),Find("item_id",itemList))>
#itemNo#


I would really appreciate your help.

Regards,

cfcoder

	
		
__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: OT: Page design Contact work

2004-06-11 Thread Ian Skinner
To have a different display and print screens I would do something like this.

 


    
.screen {display: block;}
.print {display: none;}
       
.screen {display: none;}
.print {display: block;}
        This content will only appear on the screen.             This content will only appear when printed.     Now if you know a method that automatically prints this page you should have a possible solution.  I've never used an automatic print function. Completely untested code written in this e-mail so pardon any syntax errors. Ian Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: Finding the current directory of a script

2004-06-11 Thread Mark Drew
Tis true! I hang myself in shame for not knowing that funciton!.
My actual question was is there a quick (like the previous function)
way to get the actual directory, so that I can appent my own filename
etc.
how I solved it is something along the lines of:


		rev = Reverse(CGI.PATH_TRANSLATED);
		slash = "\";
		rpath = RemoveChars(rev, 1, Find(slash, rev)-1);
		path = Reverse(rpath);
	

But I wondered if there was a built in function	or standard method.

On Fri, 11 Jun 2004 16:15:02 +0200, Pascal Peters <[EMAIL PROTECTED]> wrote:
> 
> Why? This even works in CF4!
> 
> > -Original Message-
> > From: Mark Drew [mailto:[EMAIL PROTECTED]
> > Sent: vrijdag 11 juni 2004 15:10
> > To: CF-Talk
> > Subject: Re: Finding the current directory of a script
> >
> > Thanks for that, I am using CF5 tho hence the silly question :)
> >
> >
> >
> > On Fri, 11 Jun 2004 08:06:11 -0500, Raymond Camden
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > getCurrentTemplatePath() will do it.
> > >
> > >
> >
> >
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: On Error Resume Next

2004-06-11 Thread Dave Watts
> In ASP we use 
>  
> On Error Resume Next
>  
> What is the replacement statement in Coldfusion
>  
> 
> ---
> 
>  
> 
>  
> 
>  
> I mean i have to cut/paste codes in both blocks, cftry and cfcatch?
> So, if error comes it will still run the codes in cfcatch block. 
>  
> What is the right way to do that?

There is no exact equivalent to "On Error Resume Next" in CFML. I would
argue that this is a good thing - I think that "On Error Resume Next" is
terrible!

Instead, we have exception handling. For any block of code that you expect
might fail, you can use CFTRY/CFCATCH to build an exception handler. In
addition to being able to continue running code, you can actually respond to
the specific problem encountered.

In your case, if you simply want to continue running code, you could do
this:



	... problematic code goes here ...

	
	
	



Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




cfdump issue (could hotfixes do this?)

2004-06-11 Thread Tony Weeg
if I run this code, with a "c:\cfusion\runtime\servers\lib" path present on
my server




	select * from companyTables


	
		
	



I get this response...

[unknown type]

however, if I remove the c:\cfusion\runtime\servers\lib directory, I get the
cfcatch struct, as expected.  any ideas?

thanks

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

visit www.antiwrap.com to send long url emails to your friends!

-- dont mistake my perfection as arrogance
anonymous

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

visit www.antiwrap.com to send long url emails to your friends!

-- dont mistake my perfection as arrogance
anonymous
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cffunction help needed (re performance issue)

2004-06-11 Thread Dain Anderson
I would personally turn that UDF file into a CFC, then invoke it with 
CreateObject() instead of including it. Unfortunately, you'd have to 
prefix your function calls with the object name you give it, but I think 
this would be much less intensive on server load.

-Dain

[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

> I have inherited a CFMX application where there is a huge page of 
> queries that are each wrapped in a function.  That udf file is then 
> included in every page.  We've got resource and performance issues but 
> I've got the problem that management wants to forge ahead with things as 
> is (while dealing with the performance issues) and I'm not able to 
> explain things where it comes to performance.  Can someone help me 
> explain why one huge page with all your queries wrapped in a function is 
> bad for performance.  Or correct me if it's not bad.  Also, there are so 
> many little things that I wonder if it's hitting performance like the 
> cfargument tags required attributes are all using 'true' or 'false' 
> instead of 'yes' or 'no'.  Would things like that cause a delay?
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cffunction help needed (re performance issue)

2004-06-11 Thread Calvin Ward
I would think that true instead of yes would be fine. I actually prefer it.  If the functions are not actually being invoked it may not be an issue on the queries..

-Original Message-
From:  [EMAIL PROTECTED] [EMAIL PROTECTED]
Date:  6/11/04 10:32 am
To:  CF-Talk 
Subj:  cffunction help needed (re performance issue)

I have inherited a CFMX application where there is a huge page of queries that are each wrapped in a function.  That udf file is then included in every page.  We've got resource and performance issues but I've got the problem that management wants to forge ahead with things as is (while dealing with the performance issues) and I'm not able to explain things where it comes to performance.  Can someone help me explain why one huge page with all your queries wrapped in a function is bad for performance.  Or correct me if it's not bad.  Also, there are so many little things that I wonder if it's hitting performance like the cfargument tags required attributes are all using 'true' or 'false' instead of 'yes' or 'no'.  Would things like that cause a delay?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Character encoding - CFMX and SQL

2004-06-11 Thread Mark A. Kruger - CFG
Paul,

THAT is the answer I'm looking for -thanks!

-Mark

  -Original Message-
  From: Paul Hastings [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 11, 2004 9:28 AM
  To: CF-Talk
  Subject: Re: Character encoding - CFMX and SQL 

  > language specific characters (Italian) it changes the characters to a
  question mark in the DB.  Note, the "old" data in
  > the db is stored and displayed correctly (wiht the right characters)

  since you're using "N" datatypes, are you using unicode hinting (for
  instance VALUES (N'Nel cominciare l'analisi')) for updates & inserts or have
  you turned on the unicode enabled option for that dsn if you're using
  cfqueryparam?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re[2]: Ot: 200 meg log file

2004-06-11 Thread Uwe Degenhardt
Can you import them to MS-Access or another database ?
I did that once with a 30 Meg-raw log file.
The delimiter should then be the space (space-key) between the columns.
Uwe

-- 
Best regards,
 Uwe    mailto:[EMAIL PROTECTED]
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




On Error Resume Next

2004-06-11 Thread Asim Manzur
In ASP we use 

 
On Error Resume Next

 
What is the replacement statement in Coldfusion

 

---


 


 


 
I mean i have to cut/paste codes in both blocks, cftry and cfcatch?
So, if error comes it will still run the codes in cfcatch block. 

 
What is the right way to do that?

Kind Regards,
Asim Manzur
System Administrator/Developer
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re[4]: OT: how to view client abortions ?

2004-06-11 Thread Uwe Degenhardt
Hi Mark, yes we have IIS, but I don't see, which one I could
take. Status-Code 200 doesn't give me the right information.
How would you do this on your Apache ?
Infact we have more than one virtual log as well,
so that shouldn't be the problem.
Uwe
MD> Back to the topic ...
MD> Depending on the machine setup (with multiple virtual hosts) you can
MD> have different log  files. *I have using apache*

MD> does this help? or is it all going into one file?

MD> MD

MD> On Thu, 10 Jun 2004 22:27:43 +0200, [EMAIL PROTECTED]
MD> <[EMAIL PROTECTED]> wrote:
>> 
>> oops.
>> sorry. I hope I didn't
>> hurt somebody.
>> 
>> Maybe I should have asked my former
>> english teacher BEFOREHAND of
>> writing my subjectline of the thread. ;-)
>> 
>> Uwe
>> 
>> 
>> 

MD>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFMail Limit?

2004-06-11 Thread Thomas Chiverton
On Friday 11 Jun 2004 15:23 pm, Janine Jakim wrote:
> Any ideas??

Check the CF mail log.
Check the mailserver mail log.
Look in the CF mail spool.

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Dumb UDF quesiton with local variables

2004-06-11 Thread Calvin Ward
I'm pretty sure you can do cfset var myVariable = 1 in cfmx as well

- Calvin

-Original Message-
From:  Philip Arnold 
Date:  6/11/04 9:49 am
To:  CF-Talk 
Subj:  Re: Dumb UDF quesiton with local variables

On Fri, 11 Jun 2004 09:45:38 -0400, C. Hatton Humphrey wrote:
> 
> > Yep, to localize a variable, just use the var scope:
> 
> Okay, I'm confused even more now... I thought that UDF's in CF5 were done
> inside of CFScript and in MX are done using CFFunction - that's how I've
> been doing it.

MX can do both - the only reason to do one in CFFunction is if you're
using CF tags rather than just script

> Here's the UDF that was causing the problem -
> 
> 
> output="false">
>
>
>
>

Use a CFSCRIPT block at the top and Var the variables to make them
local, otherwise you're using the Variables. scope versions
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: chars not accepted in SQL?

2004-06-11 Thread Tangorre, Michael
> >  INSERT INTO 
> > itemsordered
> > (item)
> > VALUES
> > ('
> > cfsqltype="CF_SQL_CHAR">') 
> > 
> > It still gives a incorrect syntax error.
> > 
> > How do I correctly incorporate that into the above insert?
> 
> Get rid of the apostrophies, you don't need them - see our examples

Shouldn't you also be using " " around the value?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: chars not accepted in SQL?

2004-06-11 Thread Pascal Peters
No need for ' with cfqueryparam:

VALUES (
cfsqltype="CF_SQL_CHAR">) 

> -Original Message-
> From: Robert Orlini [mailto:[EMAIL PROTECTED] 
> Sent: vrijdag 11 juni 2004 16:23
> To: CF-Talk
> Subject: RE: chars not accepted in SQL?
> 
> Thanks.
>  
> I have it down as: 
>  
>  INSERT 
> INTO itemsordered
> (item)
> VALUES
> ('
> cfsqltype="CF_SQL_CHAR">') 
>  
> It still gives a incorrect syntax error.
>  
> How do I correctly incorporate that into the above insert?
>  
>  -Original Message-
> From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 11, 2004 10:17 AM
> To: CF-Talk
> Subject: Re: chars not accepted in SQL?
> 
> 
> 
> On Friday 11 Jun 2004 15:07 pm, Robert Orlini wrote:
> > CFQUERYPARAM go into the Insert? The sample code I got 
> below confused me.
> 
> In most cases instead of
> dbFieldName=#thing#
> you write
> dbFieldName=
> 
> (If the query is in a loop,) it'll execute much faster too.
> 
> --
> Tom Chiverton
> Advanced ColdFusion Programmer
> 
> Tel: +44(0)1749 834997
> email: [EMAIL PROTECTED]
> BlueFinger Limited
> Underwood Business Park
> Wookey Hole Road, WELLS. BA5 1AF
> Tel: +44 (0)1749 834900
> Fax: +44 (0)1749 834901
> web: www.bluefinger.com
> Company Reg No: 4209395 Registered Office: 2 Temple Back 
> East, Temple Quay, BRISTOL. BS1 6EG.
> *** This E-mail contains confidential information for the 
> addressee only. If you are not the intended recipient, please 
> notify us immediately. You should not use, disclose, 
> distribute or copy this communication if received in error. 
> No binding contract will result from this e-mail until such 
> time as a written document is signed on behalf of the 
> company. BlueFinger Limited cannot accept responsibility for 
> the completeness or accuracy of this message as it has been 
> transmitted over public networks.***
>   _  
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: chars not accepted in SQL?

2004-06-11 Thread Robert Orlini
Thanks all. I'm slowlly...getting the hang of everything. -Original Message-
From: Philip Arnold [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 10:21 AM
To: CF-Talk
Subject: Re: chars not accepted in SQL?

On Fri, 11 Jun 2004 10:07:15 -0400, Robert Orlini wrote:
> 
> I have an apostrophe in the input filed before I submit yes. How does this CFQUERYPARAM go into the Insert? The sample code I got below confused me. Sorry folks I'm a newbie at this, but I'm doing my best to try.

insert into table (field)
values ()

Simple, innit? 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




  1   2   >