Re: Dates and QueryNew
On 4/3/2011 11:54 AM, Kevin Parker wrote: Parameter validation error for function QUERYNEW. The function takes 1 parameter. what version of cf? columnList was added at cf7. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343509 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Dates and QueryNew
That just occurred to me while just having tea - all my stuff is on 8 but for this site 7. Oops no its not its 6. Thank you! ++ Kevin Parker Advanced Imaging e: webmas...@advancedimaging.com.au w: www.advancedimaging.com.au m: 0418 815 527 ++ http://au.linkedin.com/in/krparker -Original Message- From: Paul Hastings [mailto:p...@sustainablegis.com] Sent: Sunday, 3 April 2011 18:24 To: cf-talk Subject: Re: Dates and QueryNew On 4/3/2011 11:54 AM, Kevin Parker wrote: Parameter validation error for function QUERYNEW. The function takes 1 parameter. what version of cf? columnList was added at cf7. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343510 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: mappings and cfincludes
Having the path the same on both dev and live would avoid all these problems yaknow. On Sat, Apr 2, 2011 at 11:59 PM, Victor Moore victor.mo...@gmail.comwrote: Hi Matt, Yes that did it, By adding a mapping to utils now I can use absolute path for cfinclude. All I have to do now is figure out what to do about javascript code and links. I think I may have to go back and use relative paths a with a variable set in the calling template so I know how many level deep like: lDeep =../ ; or lDeep = ../../ and then use that in the included page Thank you so much Cheers Victor On Sat, Apr 2, 2011 at 5:22 PM, Matt Quackenbush quackfu...@gmail.com wrote: On Sat, Apr 2, 2011 at 3:44 PM, Victor Moore wrote: The prod server is CF 8 enterprise (dev is 9 developer edition, my bad I said in my first email that both of them are 9) on the prod server (tested now) #expandPath(/myApp)# = D:\domain\myApp the module in question is D:\domain\myApp\module1\submodule\user.cfm user.cfm has the following cfinclude template=/utils/lib.cfm included template path is : D:\domain\myApp\utils\lib.cfm and I get the error Do you have a mapping for /utils? I don't remember you saying there was. And if there isn't, you're not using a mapping, you're asking for a root-absolute path (/), which will map to D:\domain. Since /utils/lib.cfm resides at D:\domain\myApp and not D:\domain, you are encountering the expected results: a file not found exception. cfoutput#expandPath(/)#/cfoutput Run that and you'll see what I mean. Thank you both for your patience on a Saturday NP :-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343511 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: mappings and cfincludes
I know, unfortunately I have no control over the client structure and different clients can have different layouts so I guess the best option is to go with relative paths. Thank you Victor On Sun, Apr 3, 2011 at 6:05 AM, Russ Michaels r...@michaels.me.uk wrote: Having the path the same on both dev and live would avoid all these problems yaknow. On Sat, Apr 2, 2011 at 11:59 PM, Victor Moore victor.mo...@gmail.comwrote: Hi Matt, Yes that did it, By adding a mapping to utils now I can use absolute path for cfinclude. All I have to do now is figure out what to do about javascript code and links. I think I may have to go back and use relative paths a with a variable set in the calling template so I know how many level deep like: lDeep =../ ; or lDeep = ../../ and then use that in the included page Thank you so much Cheers Victor On Sat, Apr 2, 2011 at 5:22 PM, Matt Quackenbush quackfu...@gmail.com wrote: On Sat, Apr 2, 2011 at 3:44 PM, Victor Moore wrote: The prod server is CF 8 enterprise (dev is 9 developer edition, my bad I said in my first email that both of them are 9) on the prod server (tested now) #expandPath(/myApp)# = D:\domain\myApp the module in question is D:\domain\myApp\module1\submodule\user.cfm user.cfm has the following cfinclude template=/utils/lib.cfm included template path is : D:\domain\myApp\utils\lib.cfm and I get the error Do you have a mapping for /utils? I don't remember you saying there was. And if there isn't, you're not using a mapping, you're asking for a root-absolute path (/), which will map to D:\domain. Since /utils/lib.cfm resides at D:\domain\myApp and not D:\domain, you are encountering the expected results: a file not found exception. cfoutput#expandPath(/)#/cfoutput Run that and you'll see what I mean. Thank you both for your patience on a Saturday NP :-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343512 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Button
Hi, Rick... What do exactly do you mean by it sends information to another site that records the data ? Is the information going to a database, or what? I can help you with coding this, but I'll need to know exactly what's happening with the data. I do all my ajax stuff sending data to a database, so I'm not sure about this part. -Original Message- From: Rick T [mailto:rtuinenb...@gmail.com] Sent: Friday, April 01, 2011 5:49 PM To: cf-talk Subject: Re: Button I am not a JQuery pro to make something from scratch, any JQuery script code out there that I can modify to meet my needs? I would use jQuery (or javascript framework of your choice like dojo, mootools, etc). Have an image on your page. Attach an OnClick event to it. Inside the OnClick, do an ajax post to the remote server. On success, swap out the image with another image indicating success. On failure, probably swap out the image with another image indicating failure. Cheers, Judah On Fri, Apr 1, 2011 at 1:53 PM, Rick T rtuinenb...@gmail.com wrote: I am looking to put a image on a page, when you click it, it sends information to another site that records the data, then the image on the original page changes to a different image (to show it was recorded) Any direction will be helpful. Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343513 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Button
Actually I figured out how to do this very simply by using an Iframe. The jQuery route carried lots of overhead. Rick Hi, Rick... What do exactly do you mean by it sends information to another site that records the data ? Is the information going to a database, or what? I can help you with coding this, but I'll need to know exactly what's happening with the data. I do all my ajax stuff sending data to a database, so I'm not sure about this part. I am not a JQuery pro to make something from scratch, any JQuery script code out there that I can modify to meet my needs? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343514 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Button
Ok... glad you got it figured out! -Original Message- From: Rick T [mailto:rtuinenb...@gmail.com] Sent: Sunday, April 03, 2011 8:47 PM To: cf-talk Subject: Re: Button Actually I figured out how to do this very simply by using an Iframe. The jQuery route carried lots of overhead. Rick Hi, Rick... What do exactly do you mean by it sends information to another site that records the data ? Is the information going to a database, or what? I can help you with coding this, but I'll need to know exactly what's happening with the data. I do all my ajax stuff sending data to a database, so I'm not sure about this part. I am not a JQuery pro to make something from scratch, any JQuery script code out there that I can modify to meet my needs? Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343515 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF9 cfexecute issues.
Let me just say I hate CF9 so far. I just upgraded from CF7 and it's been an absolute nightmare. The current nightmare I'm dealing with is a template that will not return or timeout. I've got a global timeout set in the admin. I've tried setting a page timeout with cfsetting requesttimeout. On the template itself, I've got a bunch of cfexecutes doing command line batch processing. Roughly 30 doing imageMagick image manipulations (which I could probably combine into one batch file, now that I think about it.) And two problem children. One that runs a batch file that converts the images into an .avi file. This one takes awhile, about 9 minutes. And a second batch file that runs ffmpeg to add an mp3 file and convert that avi into an mpg. I've tried putting timeouts on the cfexecutes for the last two and nothing. The page never returns. The thread shows up in Server Monitor, and goes away 10 minutes or so later, but the page just hangs. I've even tried putting a cfabort after the last cfexecute, but nothing. The log file just shows the steps in the batch file, which is simply migrating to the directory and calling the .vbs file, or ffmpeg on the appropriate files. When I run the bat files on the server logging in with the same account as CF runs under, the command prompt pops up for the appropriate amount of time, then goes away. cfexecute name=c:\windows\system32\cmd timeout=600 arguments=/c #pathToBatFile#createAVI.bat outputFile=c:\logs\createAVI#IDField#.txt / Once I get it running correctly, I'll probably move it to another server and schedule it, but I need it working correctly first. Any ideas? I'm going nuts here. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343516 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm