cftoken lost between servers

2009-01-08 Thread Paolo Piponi
It's been about 4 years since I've been on one of these lists, so here goes: We've been using client variables quite successfully for some years now in a load-balanced environment with a database client variable storage. This has continued to CF8. Although tests made a few months back proved

Hex Number Formatting

2009-01-08 Thread Kamru Miah
Hello, I have requirement to use only 3-char to represent value above 999, so I decided to use FormatBaseN() function convert the number to hex (i.e. FFF will give upto 4096), but I can no longer use NumberFormat() to add leading zeros. Please let me know of any simple method/function to do

Re: Hex Number Formatting

2009-01-08 Thread John M Bliss
Replace(RJustify(yourHex, 3), , 0, all) On Thu, Jan 8, 2009 at 6:11 AM, Kamru Miah k.m...@csl.gov.uk wrote: Hello, I have requirement to use only 3-char to represent value above 999, so I decided to use FormatBaseN() function convert the number to hex (i.e. FFF will give upto 4096), but I

RE: Desparate!!!! Need someone to look at my code and figure out the problem!

2009-01-08 Thread Dawson, Michael
Take a look at the headers with Firefox's LiveHTTPHeaders extension. You can see the cookies come and go. Mike -Original Message- From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Wednesday, January 07, 2009 7:23 PM To: cf-talk Subject: Re: Desparate Need someone to

RE: Desparate!!!! Need someone to look at my code and figure out the problem!

2009-01-08 Thread Rick Faircloth
Thanks for the tip, Mike! Rick -Original Message- From: Dawson, Michael [mailto:m...@evansville.edu] Sent: Thursday, January 08, 2009 9:32 AM To: cf-talk Subject: RE: Desparate Need someone to look at my code and figure out the problem! Take a look at the headers with

RE: Coldfusion Audio conversion

2009-01-08 Thread Adrian Lynch
Are you calling it with cfexecute or the commandline? I've had ffmpeg do that to me with a precompiled version. Where did you get your's from? Or did you build the latest? Adrian -Original Message- From: Timothy Farrar [mailto:timothyfar...@sosensible.com] Sent: 07 January 2009 20:10

Re: CFGRID - using object in memory with bind attribute?

2009-01-08 Thread Raymond Camden
On Wed, Jan 7, 2009 at 6:07 PM, Doug Smidt doug_smi...@yahoo.com wrote: I do want to use a persisted CFCbut I want to use it on the spot, in the CFGRID tag. I don't want to: 1) Do exactly what you stated is generally recommended against. I don't want to be accessing a shared scope

Re: cftoken lost between servers

2009-01-08 Thread Ryan Stille
You might need to turn off setClientCookies and set them manually with cfcookie tags. I've had a similar issue before where when you jump to another server while passing in your own cfid and cftoken, it works for the first request but then the new server hands back NEW cfid/cftoken values and

Re: Hex Number Formatting

2009-01-08 Thread Kamru Miah
John, that's simpler than I thought! Many thanks. :-) Replace(RJustify(yourHex, 3), , 0, all) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Hex Number Formatting

2009-01-08 Thread John M Bliss
I specialize in simple. ;-) On Thu, Jan 8, 2009 at 9:06 AM, Kamru Miah k.m...@csl.gov.uk wrote: John, that's simpler than I thought! Many thanks. :-) Replace(RJustify(yourHex, 3), , 0, all) ~| Adobe® ColdFusion® 8

Re: CFQUERY Question

2009-01-08 Thread Tom Chiverton
On Wednesday 07 Jan 2009, Andrew Tegenkamp wrote: can I fix it? You can, but shouldn't. Constructing raw SQL strings is dangerous, security wise. I expect your real use case is more complex, but rewriting it to : cfquery name=insert datasource=#DSN# INSERT INTO users(userName)

Re: Can't get 301 permanent redirect to work properly

2009-01-08 Thread Paul Cormier
I just confirmed that the following code did correctly return HTTP/1.x 301 Moved permanently under CF8. Sorry no CF5 available to test: cfheader statuscode=301 statustext=Moved permanently cfheader name=Location value=http://www.besthomepro.com/; Try removing the cfabort. Paul Cormier

Re: Coldfusion Audio conversion

2009-01-08 Thread Timothy Farrar
Right now I am calling it via cfExecute. I also tried the following: runtime = createObject(java, java.lang.Runtime).getRuntime(); command = '#ffmpegPath# -i #inputFilePath# -g 300 -y -s 300x200 -f flv -ar 44100 #ouputFilePath#'; process = runtime.exec(#command#); which created

Loop and Variable Names

2009-01-08 Thread Les Mizzell
I always seem to get this wrong. For query results fields guestdetail.guest1 to guestdetail.guest10, why isn't the following working? cfloop from=1 to=10 index=idx Guest #idx#: #guestdetail.guest[idx]#br /cfloop ...at least I'm not using evaluate!

RE: Loop and Variable Names

2009-01-08 Thread brad
You are trying to treat guest as a struct with a key called 1 through 10. You want to concatenate the word guest with the number, and THAT composite string is the name of the key in the guestdetail struct: cfloop from=1 to=10 index=idx Guest #idx#: #guestdetail[guest idx]#br /cfloop ~Brad

Re: Loop and Variable Names

2009-01-08 Thread John M Bliss
That'll only work if guestdetail.guest is an array (i.e. guestdetail.guest[1], guestdetail.guest[2], etc). If it's not and you're really trying to get guestdetail.guest1, I think you need #Evaluate(guestdetail.guest idx)# On Thu, Jan 8, 2009 at 10:04 AM, Les Mizzell lesm...@bellsouth.net wrote:

Re: Loop and Variable Names

2009-01-08 Thread John M Bliss
Right. Brad's syntax is better. :-) On Thu, Jan 8, 2009 at 10:13 AM, b...@bradwood.com wrote: You are trying to treat guest as a struct with a key called 1 through 10. You want to concatenate the word guest with the number, and THAT composite string is the name of the key in the

Re: Loop and Variable Names

2009-01-08 Thread morgan l
#guestdetail[guest idx]# should work. On Thu, Jan 8, 2009 at 10:04 AM, Les Mizzell lesm...@bellsouth.net wrote: I always seem to get this wrong. For query results fields guestdetail.guest1 to guestdetail.guest10, why isn't the following working? cfloop from=1 to=10 index=idx Guest

Re: Loop and Variable Names

2009-01-08 Thread Jason Fisher
Actually, evaluate() would be perfect in this situation, because you're referring to an array that doesn't exist, you actually need to evaluate a dynamic string. However, you can also do this: cfloop from=1 to=10 index=idx Guest #idx#: #guestdetail[guest idx][1]#br /cfloop Note that the

Re: Loop and Variable Names

2009-01-08 Thread Ian Skinner
Les Mizzell wrote: I always seem to get this wrong. For query results fields guestdetail.guest1 to guestdetail.guest10 Brad has provided the answer to your original question. So now we can point out that anytime one sees something like query results fields guest1 to guest10, that is a huge

Re: Loop and Variable Names

2009-01-08 Thread Les Mizzell
So now we can point out that anytime one sees something like query results fields guest1 to guest10, that is a huge red flag of a database design that should be normalized. Well aware Not my database! It was already there and they just want some reports out of it. Somebody put

Re: Loop and Variable Names

2009-01-08 Thread Les Mizzell
cfloop from=1 to=10 index=idx Guest #idx#: #guestdetail[guest idx]#br /cfloop I had tried that, and got: Element GUEST is undefined in GUESTDETAIL But I can directly output #guestdetail.guest1# through 10 with no problems. H

Re: CFGRID - using object in memory with bind attribute?

2009-01-08 Thread Doug Smidt
This isn't my argument - it's yours. I'm not going to get into another endless debate on best practices. Simply dropping my data into the query attribute doesn't solve my problem, as I need the same thing to happen in the onChange attribute. I'm not aware of a replacement for that, and

Re: Loop and Variable Names

2009-01-08 Thread Jason Fisher
As I noted above, you have to have the rowCount element [1], too: cfloop from=1 to=10 index=idx Guest #idx#: #guestdetail[guest idx][1]#br /cfloop cfloop from=1 to=10 index=idx Guest #idx#: #guestdetail[guest idx]#br /cfloop I had tried that, and got: Element GUEST is undefined in

RE: Loop and Variable Names

2009-01-08 Thread brad
You might have gotten that message, but not when using the code below. I think I overlooked part of your OP though. guestdetail is a query object, and you are probably inside of a cfoutput query= OR your query object only has one record. Is that correct? If guestdetail is a query, the syntax I

RE: Coldfusion Audio conversion

2009-01-08 Thread Adrian Lynch
What CF are you using? -Original Message- From: Timothy Farrar [mailto:timothyfar...@sosensible.com] Sent: 08 January 2009 15:26 To: cf-talk Subject: Re: Coldfusion Audio conversion Right now I am calling it via cfExecute. I also tried the following: runtime =

Re: Loop and Variable Names

2009-01-08 Thread Les Mizzell
cfloop from=1 to=4 index=idx Guest #idx#: #guestdetail[guest idx][currentrow]#br /cfloop Yup - that did it. Don't know why I always have trouble with this... Thanks ~| Adobe® ColdFusion® 8 software 8 is the

Re: Coldfusion Audio conversion

2009-01-08 Thread C S
Are you calling it with cfexecute or the commandline? I've had ffmpeg do that to me with a precompiled version. Where did you get your's from? Or did you build the latest? Adrian Adrian, Did that happen with cfexecute, at the command line or both and what o/s? I am wondering if this is a

RE: (ot) Ionic's Isapi Rewrite Filter and Site Crash

2009-01-08 Thread Andy Matthews
Les... You have to turn on ISAPI-REWRITE like so: ##--copy here [ISAPI_Rewrite] RewriteRule ^/attorney/([^/]+)$ /lawyers/get-bio.cfm?attorney=$1 ##--copy here -Original Message- From: Les Mizzell [mailto:lesm...@bellsouth.net] Sent: Wednesday,

Re: Coldfusion Audio conversion

2009-01-08 Thread Timothy Farrar
Adrian, I used 8.0.1, with the cumulative hotfix installed. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive:

Re: (ot) Ionic's Isapi Rewrite Filter and Site Crash

2009-01-08 Thread Matthew Small
It sounds as though the IIS Worker Process does not have permissions to access the ISAPI filter. I believe you're actually running IIS 6 due to the descriptions you've given. Check the identity of the application pool executing the website, and then give that identity read and execute

Point me in the right direction - expand a category from a query...

2009-01-08 Thread Les Mizzell
I've *finally* gotten my main client to upgrade to CF8. So, up until this point, I've not really had time to dive into it too deep and am just learning my way around the new stuff. Ok, I've got an admin page with a number of records sorted by categories set up like this (cfouput with group)

RE: Point me in the right direction - expand a category from a query...

2009-01-08 Thread Adrian Lynch
I'd do it with jQuery. Here's a sample if you're using tables: style type=text/css table, tr, td { border-collapse: collapse; border: solid 1px #ccc; padding: 5px; } .group { cursor: pointer; }

RE: Point me in the right direction - expand a category from a query...

2009-01-08 Thread Adrian Lynch
Or a simpler example with no extra classes or IDs, just targeting of the elements: style type=text/css h3 { cursor: pointer; } div div { border: solid 1px #ccc; padding: 3px; display: none; } /style

Re: Point me in the right direction - expand a category from a query...

2009-01-08 Thread Dominic Watson
Yeh, I'm with Adrian, though whatever js library you're most familiar with will do. If there is a CF tag for doing this it would either be outputting some javascript or a generating flash which, while good for quick solutions, doesn't really fit into a long-term client-side way of coding in my

RE: (ot) Ionic's Isapi Rewrite Filter and Site Crash

2009-01-08 Thread Jason Durham
If you're using IIS7, there is a URL rewrite module for the IISMC. http://learn.iis.net/page.aspx/460/using-url-rewrite-module/ -Original Message- From: Les Mizzell [mailto:lesm...@bellsouth.net] Sent: Wednesday, January 07, 2009 8:06 PM To: cf-talk Subject: (ot) Ionic's Isapi Rewrite

cfimage in loop kills loop and throws error

2009-01-08 Thread Tony Bentley
I am having problems with cfimage when it comes to large images. Say 1mb each and over 50 images. I upload the images in a zipped folder, unzip them, run a loop to resize the original 4 times (original, medium, thumb and mini thumb). I know that it all works as long as the images are small

Re: Coldfusion Audio conversion

2009-01-08 Thread AJ Mercer
is your CF service running as a named user? If not, may try running with the same user account you have logged in with. 2009/1/9 Timothy Farrar timothyfar...@sosensible.com Adrian, I used 8.0.1, with the cumulative hotfix installed.

RE: cfimage in loop kills loop and throws error

2009-01-08 Thread Adrian Lynch
Show us your code. It could be that you're running out of memory. What error are you getting? Adrian Building a database of ColdFusion errors at http://cferror.org/ -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: 09 January 2009 00:33 To: cf-talk Subject:

Re: cfimage in loop kills loop and throws error

2009-01-08 Thread Tony Bentley
cfloop query=whatever cfimage source=#large#\#imgname# name=objImage action=read / cffile action=delete file=#large#\#imgname# !--- get the image filename ---

Re: cfimage in loop kills loop and throws error

2009-01-08 Thread Tony Bentley
ERROR: The request has exceeded the allowable time limit Tag: CFLOOP ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f

Re: cfimage in loop kills loop and throws error

2009-01-08 Thread Matt Quackenbush
That error means exactly what it says: your cfloop is running for longer than is allowable. Try adding a requesttimeout setting and playing with the length. cfsetting requesttimeout={number of seconds / On Thu, Jan 8, 2009 at 7:22 PM, Tony Bentley wrote: ERROR: The request has exceeded the

RE: cfimage in loop kills loop and throws error

2009-01-08 Thread Adrian Lynch
Add this to the top of the page to get CF to wait longer: cfsetting requesttimeout=99 Adrian -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: 09 January 2009 01:22 To: cf-talk Subject: Re: cfimage in loop kills loop and throws error ERROR: The

SOAP XML Respone Example from CFC

2009-01-08 Thread Andy Ousterhout
What does the SOAP XML Response document returned from a web services call to a CFC look like? Andy ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

How to fire off onBlur event for CFTEXTAREA

2009-01-08 Thread Alex Sorokorensky
CFTEXTAREA is great in CF8, but there seems to be a bug that the richtext editor will not react to onBlur events. For a regular textarea it works fine. Can anyone figure out a workaround for this? I just have a form with the 1 CFTEXTAREA field and want to submit it onBlur. -Alex

Re: SOAP XML Respone Example from CFC

2009-01-08 Thread Brad Wood
http://www.w3schools.com/soap/soap_example.asp Is there a particular bit of information you are looking for? Also, let it be known that you can create and consume SOAP web services in ColdFusion without every having to know anything about the actual XML being passed back and forth. ~Brad

Re: How to fire off onBlur event for CFTEXTAREA

2009-01-08 Thread Brad Wood
CF 8's rich text area uses the FCKEditor. A little digging in their docs shows you how to do this. You must attach the event after the editor loads like so: cfform format=HTML name=test cftextarea name=myfield richtext=Yes/cftextarea /cfform script LANGUAGE=JavaScript TYPE=text/javascript

Re: Can't get 301 permanent redirect to work properly

2009-01-08 Thread Scott Doc
I removed the cfabort but still the same status when checking with firefox return: HTTP/1.1 302 Object Moved My code is the same as yours below (except, obviously, the value of the second line) Here's my actual page: http://www.wildasia.net/rt/ I just confirmed that the following code did

Re: How to fire off onBlur event for CFTEXTAREA

2009-01-08 Thread Alex Sorokorensky
Brad, this code snippet works great by itself. However, as an additional level of complexity, I need to run that from a cfdiv which no longer fires off the OnBlur. There is a parent file called div.cfm which creates the cfdiv and binds to the file that contains your solution. cfdiv

Re: How to fire off onBlur event for CFTEXTAREA

2009-01-08 Thread Alex Sorokorensky
I got it to work by moving the javascript code to the parent file (div.cfm) right after the cfdiv. Thank you very much for finding this solution. -Alex Brad, this code snippet works great by itself. However, as an additional level of complexity, I need to run that from a cfdiv which no