Re: evaluate

2003-10-10 Thread James Thomas
Depends.Looks like it may be a more dynamic thing than you're pasting, but... if you know the name of the query, cfset myEval=QUERYNAME.recordcount

Replace QUERYNAME with the appropriate query name.

xENo
- Original Message - 
From: DURETTE, STEVEN J (AIT) 
To: CF-Talk 
Sent: Friday, October 10, 2003 4:37 PM
Subject: evaluate

Hi all,

I have a lot of files written by another programmer that I now have to
update.

Most of these files have things like:CFSET myEval =
evaluate(#Attributes.Query#.RecordCount)

I know that evaluate should be avoided, but how would I convert that to not
use the evaluate() function?

Thanks,
Steve


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




Re: HELP!!! How do I debug server hogging code.

2003-10-08 Thread James Thomas
Sounds like a seamless loop.Try outputting things as you go down the page.Wherever the last number ends on the output is where your problem is at.

xENo
- Original Message - 
From: Ian Skinner 
To: CF-Talk 
Sent: Wednesday, October 08, 2003 11:50 AM
Subject: HELP!!! How do I debug server hogging code.

I've got some code that recently started hanging and tying up the server
when it is run.It does not throw any errors, but it also never returns any
results.It is effecting the entire server box when it does this.

Can anybody provide some easy to follow steps on how I could get a better
picture on what is happening on the server when this code runs.

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

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




Re: CFHTTP to an ASP app, cookies, Object Moved

2003-10-07 Thread James Thomas
That's usually the sign of an automatic redirect (similiar to our cflocation tag).Have you tried the URL manually?

xENo
- Original Message - 
From: [EMAIL PROTECTED] [EMAIL PROTECTED] 
To: CF-Talk 
Sent: Tuesday, October 07, 2003 4:22 PM
Subject: CFHTTP to an ASP app, cookies, Object Moved

Hi All.I thought that CFHTTP worked ok with sites that set cookies - am I wrong?I'm trying to get data from a client's vendor's site, which is an ASP app with a login page.Simple username/password form.The CFHTTP.filecontents that comes back from the login is Object Moved which in the past has always meant that the server was trying to set a cookie and the browser didn't process it correctly.In this case the browser is CFHTTP, which I thougth knew about these things.Am I missing something here?I've lived with CFHTTP quite a bit in the past, but have never seen this before.

PS, thanks to corporate downsizing I'm now looking for CF jobs in the Western PA area!

thanks much,
-reed

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