Re: cfdirectory delete - continued

2007-02-05 Thread Patrick Farabee
If this is direct cut and paste, then your problem could be after the first webdir_root variable.. In your file deletion, you have a slash after it, and in your directory deletion, you have no slash. If I were a betting man, I'd say that nothing is getting deleted.. the index.cfm can't be dele

Re: Event Gateway - Stall Processing

2007-02-05 Thread Patrick Farabee
This is surely not the most efficient way to do this, but it will get the job done. If you plan on using something like this in several different applications, it would probably be good to continue looking for better ways to accomplish it, as I imagine this loop could be fairly harsh on the pro

Re: Variables Magically Vanish?

2007-02-02 Thread Patrick Farabee
> Hello, > Are you using IE7? I had some code that was acting funny when run > locally but then was fine on the production server. Looking at the > code you posted, Why are you using cookies to track the user when your > code is using sessions? > Chris In the latest error event, the agent was

Re: Variables Magically Vanish?

2007-02-02 Thread Patrick Farabee
There is not CFC though... here is all relevant code I could find that interacts with the variable or scoping. There are no CFCs or user defined functions Anywhere in the script: 1: 6: 7: 8: 9: (User is a cfquery result variable) 10: 11: 12: 13: 14: 15: 16: 17

Re: Validating dates based on select field?

2007-02-02 Thread Patrick Farabee
>I'd suggest using AJAX to allow ColdFusion to do the form validation >without the page needing to refresh. This solution would really be a >combination of JavaScript and CF. > Ajax is for interaction with the server to perform tasks only the server can do, such as submit information to databas

Re: Validating dates based on select field?

2007-02-01 Thread Patrick Farabee
Are you looking for a CF solution or are you looking to validate using javascript before the form is submitted? If you are looking for CF solution, then DateDiff() is your friend. It's basically just DateDiff("D",startdate,enddate) to get the difference in days between two dates... so DateDiff("

Re: OT-Image Maps

2007-02-01 Thread Patrick Farabee
Not that I would ever suggest using something this resource intensive on a website, but you might want to check out the javascript vector graphics project at: http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm With some hacking and slashing you might be able to make his stuff workable as you

Variables Magically Vanish?

2007-02-01 Thread Patrick Farabee
I have addressed this particular annoyance by putting an isdefined() check on my value before attempting to use it, but does anyone know what could cause this? In the beginning of a CFM page, I have: This is not in any block other than the main body of the script... that is, it is outside any

Variables Magically Vanish?

2007-02-01 Thread Patrick Farabee
I have addressed this particular annoyance by putting an isdefined() check on my value before attempting to use it, but does anyone know what could cause this? In the beginning of a CFM page, I have: This is not in any block other than the main body of the script... that is, it is outside any

Re: Showing actual used value from cfqueryparam tag

2007-02-01 Thread Patrick Farabee
>Example code. > > select > I was under the impression that CFQUERYPARAM just validates and typecasts the value as you specify... so you would get something like (not sure of exact syntax being sent) SELECT CAST(1.5 as integer) Which would return 1 row with an unnamed column value of eit

Re: Dynamic variable syntax question

2007-01-31 Thread Patrick Farabee
>I think I made that rather confusing. > >Output needs to be > >Value 1 = Green >Value 2 - Something else > > >So for database fields "MyField1_a", "MyField2_a", "MyField3_a" ... > I think what is confusing people is that you aren't quite clear exactly what you are trying to do. I have a

Re: URLDecode quirk in MX

2007-01-31 Thread Patrick Farabee
>Shouldn't the % sign have been encoded before you try decoding it? > >Russ No, When dealing with data from external sources, you don't always have the luxury of knowing for sure whether some string of info has already been URLEncoded or not. Call it bad coding on the part of the source or wh

URLDecode quirk in MX

2007-01-31 Thread Patrick Farabee
This may be working to spec, but I've noticed that the URLDecode function in MX does not perform any checking after a percent sign to ensure that there is actually something to be decoded. For example, most URLDecode functions I've seen or written in perl/javascript/php/etc do a check to ensure

Plotting CFChart from Right to Left.

2007-01-31 Thread Patrick Farabee
No big rush, since I've already changed some logic to get what I needed, but anyone know if there is a way to chart data points in a cfchart from right to left? That is, the ability to either loop through a query or assign the query directly to the series, but have the data points appear with t

Re: CFset problem

2007-01-31 Thread Patrick Farabee
Your select statement will always return 1 row, and it will either contain the max number, or "" So, use: Select Max(ReqNum) as HighestNumber from PrintingReq No need for a cfif, since val("") returns 0 -- Pat ~| Upgra