RE: Licensing on CKEditor - included?
I believe it is true. Regards, Andrew Scott http://www.andyscott.id.au/ > -Original Message- > From: Mike Kear [mailto:afpwebwo...@gmail.com] > Sent: Thursday, 19 August 2010 1:52 PM > To: cf-talk > Subject: Licensing on CKEditor - included? > > > Is this true? - we can replace the existing FCKEditor in our ColdFusion with > the updates to CKEditor because it's already licensed to Adobe as part of > ColdFusion? (And therefore since we've paid for a licence for ColdFusion > that in turn has paid Fred for a licence for CKEditor). > > True or not? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Licensing on CKEditor - included?
Is this true? - we can replace the existing FCKEditor in our ColdFusion with the updates to CKEditor because it's already licensed to Adobe as part of ColdFusion? (And therefore since we've paid for a licence for ColdFusion that in turn has paid Fred for a licence for CKEditor). True or not? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
High ASCII characters and jQuery
Hi, I've got a page where data is loaded into a table. This is done via two methods, one method uses standard cf/html and the second uses jquery to populate the table based on specified criteria. One of our users has some odd characters in their data... trailing ASCII 160s. In the standard CF output, these show up as spaces, which is apparently fine.. but in the jquery method, they show up as funky question mark/block characters - in all browsers. The jquery calls are going directly to a cfc method with returntype="JSON" .. when viewed in firebug, I see the space, but in the HTML output I see the funky block questionmark. I think this is an issue of character set but I'm really not sure what to do here. Screenshot: http://www.classcreator.com/rick_work/funkychar.jpg Thanks. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Thanks Kym.Your experience is worrying for me - I LIKE the new version with its neat ajax image calls to give a little thumbnail of each image etc. But if you guys gave up on it, I had better learn from your experience. That's been a policy that's never failed me before. If'n you guys cant get it going within a reasonable time, then I need to seriously think about whether I should put more time in on it too. I guess that's why Rick doesn't answer emails about it. Sigh. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Aug 19, 2010 at 12:47 PM, Kym Kovan wrote: > > On 19/08/2010 08:46, Mike Kear wrote: >> >> Are there any good alternatives to CFFM? ... >> That means i have to find some alternative to it. The problem we've >> got is we get an error message that can't be read whenever we try to >> upload. I asked Rick to help me figure out what might be causing >> the problem, but he doesnt answer my emails. > > We had exactly the same issue when we upgraded CFFM in our CMS to the > latest version of CFFM with the flash tools. After much messing around > and wasted time we decided it was a path issue in the code that we could > not find so we back-pedalled to the last, non-flash version which works > fine with both CKeditor or TinyMCE. > > > -- > > Yours, > > Kym Kovan > mbcomms.net.au > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336383 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
> Nice to know or TMI? That's entirely up to you, I guess. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336382 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
On 19/08/2010 08:46, Mike Kear wrote: > > Are there any good alternatives to CFFM? ... > That means i have to find some alternative to it.The problem we've > got is we get an error message that can't be read whenever we try to > upload. I asked Rick to help me figure out what might be causing > the problem, but he doesnt answer my emails. We had exactly the same issue when we upgraded CFFM in our CMS to the latest version of CFFM with the flash tools. After much messing around and wasted time we decided it was a path issue in the code that we could not find so we back-pedalled to the last, non-flash version which works fine with both CKeditor or TinyMCE. -- Yours, Kym Kovan mbcomms.net.au ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Just a suggestion to find out content in error page. You can try using fiddler is a web debugger can help to display the html text or any other data you are looking for. On Wed, Aug 18, 2010 at 9:03 PM, Gerald Guido wrote: > > > > > Sent from my Pants > > > > Nice to know or TMI? > > G! > > On Wed, Aug 18, 2010 at 9:00 PM, Dave Watts wrote: > > > > > Firefox, or any sort of HTTP recorder is your friend here. > > > > Dave Watts, CTO, Fig Leaf Software > > > > Sent from my Pants > > > > On Aug 18, 2010 8:39 PM, "Mike Kear" wrote: > > > > > > Here are two screen shots that illustrate what I'm facing every time i > > try to upload using CFFM: > > > > http://picpaste.com/alacastina01.jpg is a general image of the screen > > when the error occurs, and > > http://picpaste.com/alacastina02.jpg shows a closer image of the error > > popup. Since this doesnt allow cut and paste, i can never see the > > rest of the message, so i can never know what this error is caused by. > > > > > > > > Cheers > > Mike Kear > > Windsor, NSW, Australia > > Adobe Certified Advanced ColdFusion Developer > > AFP Webwork... > > > > On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear > wrote: > > > Yes it's not browser sp... > > Archive: > > http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336368 > > > > Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm > > Unsubscribe: http://www.hous... > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
> > Sent from my Pants > Nice to know or TMI? G! On Wed, Aug 18, 2010 at 9:00 PM, Dave Watts wrote: > > Firefox, or any sort of HTTP recorder is your friend here. > > Dave Watts, CTO, Fig Leaf Software > > Sent from my Pants > > On Aug 18, 2010 8:39 PM, "Mike Kear" wrote: > > > Here are two screen shots that illustrate what I'm facing every time i > try to upload using CFFM: > > http://picpaste.com/alacastina01.jpg is a general image of the screen > when the error occurs, and > http://picpaste.com/alacastina02.jpg shows a closer image of the error > popup. Since this doesnt allow cut and paste, i can never see the > rest of the message, so i can never know what this error is caused by. > > > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webwork... > > On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear wrote: > > Yes it's not browser sp... > Archive: > http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336368 > > Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm > Unsubscribe: http://www.hous... > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336379 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Just a hunch, but have you done any Find & Replace tasks lately? On Wed, Aug 18, 2010 at 8:59 PM, Michael Grant wrote: > That's a javascript alert. Looks to me like the JS code that's creating > that alert box is corrupt. It's including HTML for some reason. Any chance > you can verify that the JS code isn't corrupted? > > > On Wed, Aug 18, 2010 at 8:39 PM, Mike Kear wrote: > >> >> Here are two screen shots that illustrate what I'm facing every time i >> try to upload using CFFM: >> >> http://picpaste.com/alacastina01.jpg is a general image of the screen >> when the error occurs, and >> http://picpaste.com/alacastina02.jpg shows a closer image of the error >> popup. Since this doesnt allow cut and paste, i can never see the >> rest of the message, so i can never know what this error is caused by. >> >> >> Cheers >> Mike Kear >> Windsor, NSW, Australia >> Adobe Certified Advanced ColdFusion Developer >> AFP Webworks >> http://afpwebworks.com >> ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month >> >> >> >> >> >> On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear >> wrote: >> > Yes it's not browser specific. i could post a screen shot of the >> > error message somewhere but i dont think I can put it on this list can >> > i? >> > >> > Cheers >> > Mike Kear >> > Windsor, NSW, Australia >> > Adobe Certified Advanced ColdFusion Developer >> > AFP Webworks >> > http://afpwebworks.com >> > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month >> > >> > >> > On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: >> >> >> >> *Is this behaviour the same across all browsers?* >> >> * >> >> * >> > >> >> >> >> -- >> >> >> ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336378 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
I have used CKfinder and I like it. It is reasonably priced and they support CF. http://ckfinder.com/ HTH G! On Wed, Aug 18, 2010 at 8:32 PM, Mike Kear wrote: > > Yes it's not browser specific. i could post a screen shot of the > error message somewhere but i dont think I can put it on this list can > i? > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: > > > > *Is this behaviour the same across all browsers?* > > * > > * > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Firefox, or any sort of HTTP recorder is your friend here. Dave Watts, CTO, Fig Leaf Software Sent from my Pants On Aug 18, 2010 8:39 PM, "Mike Kear" wrote: Here are two screen shots that illustrate what I'm facing every time i try to upload using CFFM: http://picpaste.com/alacastina01.jpg is a general image of the screen when the error occurs, and http://picpaste.com/alacastina02.jpg shows a closer image of the error popup. Since this doesnt allow cut and paste, i can never see the rest of the message, so i can never know what this error is caused by. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webwork... On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear wrote: > Yes it's not browser sp... Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.hous... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336376 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
That's a javascript alert. Looks to me like the JS code that's creating that alert box is corrupt. It's including HTML for some reason. Any chance you can verify that the JS code isn't corrupted? On Wed, Aug 18, 2010 at 8:39 PM, Mike Kear wrote: > > Here are two screen shots that illustrate what I'm facing every time i > try to upload using CFFM: > > http://picpaste.com/alacastina01.jpg is a general image of the screen > when the error occurs, and > http://picpaste.com/alacastina02.jpg shows a closer image of the error > popup. Since this doesnt allow cut and paste, i can never see the > rest of the message, so i can never know what this error is caused by. > > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > > > > On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear wrote: > > Yes it's not browser specific. i could post a screen shot of the > > error message somewhere but i dont think I can put it on this list can > > i? > > > > Cheers > > Mike Kear > > Windsor, NSW, Australia > > Adobe Certified Advanced ColdFusion Developer > > AFP Webworks > > http://afpwebworks.com > > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > > > > On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: > >> > >> *Is this behaviour the same across all browsers?* > >> * > >> * > > > > > > -- > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Not sure what the exact error is here, but file upload errors are almost always an error of security or directory permissions. What web server are you running? Have to looked at those logs? On Wed, Aug 18, 2010 at 5:45 PM, Mike Kear wrote: > > No, thats the problem. There is no right click menu at all. As you > see on the screen shot at http://picpaste.com/alacastina02.jpg there's > no way to see what the error is, because the code that's displayed on > the popup is only the header part of the error page. The actual error > is in the <[ CDATA part that's off the side of the screen. > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336374 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Yes it's in the same directory. The site is a content management system, and requires a login. Perhaps i need to add a login to the CFFM or change my logged in test to exclude CFFM somehow. Good idea James, thanks for the suggestion. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Aug 19, 2010 at 10:44 AM, James Holmes wrote: > > The "Please Log In" in the title of the HTML that's coming back in > that popup suggests your upload script isn't authenticating properly. > Is it under the same Application.cfc/cfm as the rest of your app? > -- > WSS4CF - WS-Security framework for CF > http://wss4cf.riaforge.org/ > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
No, thats the problem. There is no right click menu at all. As you see on the screen shot at http://picpaste.com/alacastina02.jpg there's no way to see what the error is, because the code that's displayed on the popup is only the header part of the error page. The actual error is in the <[ CDATA part that's off the side of the screen. The only option offered is to click OK. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Aug 19, 2010 at 10:42 AM, Maureen wrote: > > Can you right click on the popup and do a view source, or show it in > firebug? > > On Wed, Aug 18, 2010 at 5:39 PM, Mike Kear wrote: > >> >> Here are two screen shots that illustrate what I'm facing every time i >> try to upload using CFFM: >> >> http://picpaste.com/alacastina01.jpg is a general image of the screen >> when the error occurs, and >> http://picpaste.com/alacastina02.jpg shows a closer image of the error >> popup. Since this doesnt allow cut and paste, i can never see the >> rest of the message, so i can never know what this error is caused by. >> > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336372 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
The "Please Log In" in the title of the HTML that's coming back in that popup suggests your upload script isn't authenticating properly. Is it under the same Application.cfc/cfm as the rest of your app? -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 19 August 2010 08:39, Mike Kear wrote: > > Here are two screen shots that illustrate what I'm facing every time i > try to upload using CFFM: > > http://picpaste.com/alacastina01.jpg is a general image of the screen > when the error occurs, and > http://picpaste.com/alacastina02.jpg shows a closer image of the error > popup. Since this doesnt allow cut and paste, i can never see the > rest of the message, so i can never know what this error is caused by. > > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > > > > On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear wrote: >> Yes it's not browser specific. i could post a screen shot of the >> error message somewhere but i dont think I can put it on this list can >> i? >> >> Cheers >> Mike Kear >> Windsor, NSW, Australia >> Adobe Certified Advanced ColdFusion Developer >> AFP Webworks >> http://afpwebworks.com >> ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month >> >> >> On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: >>> >>> *Is this behaviour the same across all browsers?* >>> * >>> * >> > > > > -- > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Can you right click on the popup and do a view source, or show it in firebug? On Wed, Aug 18, 2010 at 5:39 PM, Mike Kear wrote: > > Here are two screen shots that illustrate what I'm facing every time i > try to upload using CFFM: > > http://picpaste.com/alacastina01.jpg is a general image of the screen > when the error occurs, and > http://picpaste.com/alacastina02.jpg shows a closer image of the error > popup. Since this doesnt allow cut and paste, i can never see the > rest of the message, so i can never know what this error is caused by. > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336370 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Can you right-click the popup and view source? That should at least give you the full error. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 19 August 2010 08:32, Mike Kear wrote: > > Yes it's not browser specific. i could post a screen shot of the > error message somewhere but i dont think I can put it on this list can > i? > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: >> >> *Is this behaviour the same across all browsers?* >> * >> * > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336369 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Here are two screen shots that illustrate what I'm facing every time i try to upload using CFFM: http://picpaste.com/alacastina01.jpg is a general image of the screen when the error occurs, and http://picpaste.com/alacastina02.jpg shows a closer image of the error popup. Since this doesnt allow cut and paste, i can never see the rest of the message, so i can never know what this error is caused by. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Aug 19, 2010 at 10:32 AM, Mike Kear wrote: > Yes it's not browser specific. i could post a screen shot of the > error message somewhere but i dont think I can put it on this list can > i? > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: >> >> *Is this behaviour the same across all browsers?* >> * >> * > -- ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
You'd have to post a link to the screener hosted somewhere. On Wed, Aug 18, 2010 at 8:32 PM, Mike Kear wrote: > > Yes it's not browser specific. i could post a screen shot of the > error message somewhere but i dont think I can put it on this list can > i? > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: > > > > *Is this behaviour the same across all browsers?* > > * > > * > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336367 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Yes it's not browser specific. i could post a screen shot of the error message somewhere but i dont think I can put it on this list can i? Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Aug 19, 2010 at 9:27 AM, Michael Grant wrote: > > *Is this behaviour the same across all browsers?* > * > * ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
*Is this behaviour the same across all browsers?* * * On Wed, Aug 18, 2010 at 7:16 PM, Mike Kear wrote: > > Thanks John, I dont think its a CF error, thats the problem.A > narrow very tall popup appears (taller than the window) with a whole > lot of code in it, generated by javascript I assume, but since it's > in a popup, you cant cut and paste any of the content into a code > editor, and its so large you cant see all of it, so it never renders > properly. SO I don't know what the error is, or what's causing it, > only what point in the process it appears. > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > On Thu, Aug 19, 2010 at 9:04 AM, John M Bliss > wrote: > > > >> The problem we've got is we get an error message that can't be read > > whenever we try to upload. > > > > Have you checked the CF logs for the error? > > > > > > On Wed, Aug 18, 2010 at 5:46 PM, Mike Kear > wrote: > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336365 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
Thanks John, I dont think its a CF error, thats the problem.A narrow very tall popup appears (taller than the window) with a whole lot of code in it, generated by javascript I assume, but since it's in a popup, you cant cut and paste any of the content into a code editor, and its so large you cant see all of it, so it never renders properly. SO I don't know what the error is, or what's causing it, only what point in the process it appears. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Thu, Aug 19, 2010 at 9:04 AM, John M Bliss wrote: > >> The problem we've got is we get an error message that can't be read > whenever we try to upload. > > Have you checked the CF logs for the error? > > > On Wed, Aug 18, 2010 at 5:46 PM, Mike Kear wrote: > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336364 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Alternatives to CFFM?
> The problem we've got is we get an error message that can't be read whenever we try to upload. Have you checked the CF logs for the error? On Wed, Aug 18, 2010 at 5:46 PM, Mike Kear wrote: > > Are there any good alternatives to CFFM? I have had a client's anger > at me for over a month now, because we can't get the upload to work. > I've written to Rick Root five times, and had no response, so i have > to assume he's walked away from CFFM now. > > That means i have to find some alternative to it.The problem we've > got is we get an error message that can't be read whenever we try to > upload. I asked Rick to help me figure out what might be causing > the problem, but he doesnt answer my emails. > > So what i'm looking for is a way to upload image files from FCKEditor, > and manage the image directories. If CFFM worked as advertised, it > would be perfect, but since RIck's walked away from it I'm stuck now. > > Any suggestions where I should go now? > > -- > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Alternatives to CFFM?
Are there any good alternatives to CFFM? I have had a client's anger at me for over a month now, because we can't get the upload to work. I've written to Rick Root five times, and had no response, so i have to assume he's walked away from CFFM now. That means i have to find some alternative to it.The problem we've got is we get an error message that can't be read whenever we try to upload. I asked Rick to help me figure out what might be causing the problem, but he doesnt answer my emails. So what i'm looking for is a way to upload image files from FCKEditor, and manage the image directories. If CFFM worked as advertised, it would be perfect, but since RIck's walked away from it I'm stuck now. Any suggestions where I should go now? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336362 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Image manipulation code: unit testing approach
You should have a set of baseline images that you know the source of. Things you made in Photoshop using your digital camera, that you can validate the color space and dimensions of. I would also collect random images from around the web from various sources such as a Google Image search, Flickr, Picasa and such. This will give you the random element that tends to come in from user generated content... The more random the better, in fact using a random URL generator and grabbing the first image would be a good idea. Here are some common things I've seen that CAN break image processing: - Wrong color space: ie CMYK - Bad formatting in the image exif data - embedded color profiles =] On Wed, Aug 18, 2010 at 12:46 PM, Pete Freitag wrote: > > Hi Dominic, > > I think when it comes to image files you will want to have some local > test files, because you can potentially run into issues with the way > different image editors save files. If you generate all your test > image files through your test code, then your test environment may not > represent real world scenario (unless you generate all the images used > in your system). > > -- > Pete Freitag > http://foundeo.com/ - ColdFusion Consulting & Products > http://petefreitag.com/ - My Blog > http://hackmycf.com - Is your ColdFusion Server Secure? > > > > On Wed, Aug 18, 2010 at 12:00 PM, Dominic Watson > wrote: > > > > I'm writing a small utility to perform some image resizing with > > options such as 'limitFileSize', 'maintainAspectRatio', etc. and I'd > > like to write unit tests for this (something I'm new to). How would > > any of you l33t unit testers go about this? i.e. How would you source > > the images for the unit test? Have demo files local to the test > > scripts? Create the test images using cfimage within the test script? > > Any other ideas? > > > > TIA > > > > Dominic > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336361 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Image manipulation code: unit testing approach
Hi Dominic, I think when it comes to image files you will want to have some local test files, because you can potentially run into issues with the way different image editors save files. If you generate all your test image files through your test code, then your test environment may not represent real world scenario (unless you generate all the images used in your system). -- Pete Freitag http://foundeo.com/ - ColdFusion Consulting & Products http://petefreitag.com/ - My Blog http://hackmycf.com - Is your ColdFusion Server Secure? On Wed, Aug 18, 2010 at 12:00 PM, Dominic Watson wrote: > > I'm writing a small utility to perform some image resizing with > options such as 'limitFileSize', 'maintainAspectRatio', etc. and I'd > like to write unit tests for this (something I'm new to). How would > any of you l33t unit testers go about this? i.e. How would you source > the images for the unit test? Have demo files local to the test > scripts? Create the test images using cfimage within the test script? > Any other ideas? > > TIA > > Dominic > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336360 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: How to specify different webroots for development and production in application.cfc
Thanks, Sean... I actually thought of that and then I thought, "No, it couldn't be that simple." So, instead of trying it, I just typed that long explanation and question. Now, I've just got to rewrite the paths for images and components. Components paths are a pain that way, with their dot notation. But, I just create two variables: #application.activeWebroot# #application.componentDirectory# Satisfies image and component paths, at least. Who know what else I'll run into... Now, to rewrite all the paths in the entire site. Sigh... Thanks! Rick -Original Message- From: Sean Corfield [mailto:seancorfi...@gmail.com] Sent: Wednesday, August 18, 2010 1:09 PM To: cf-talk Subject: Re: How to specify different webroots for development and production in application.cfc Why not activeWebroot = "/hillyPetersonHome" on dev and just "" on hph / production (and then use url = "#application.activeWebroot#/images/image.jpg" (without the leading /) On Wed, Aug 18, 2010 at 9:55 AM, Rick Faircloth wrote: > > Ok...I thought I had this worked out, but now I'm running into > path issues on my server. > > What I'm trying to accomplish is this: > > - I'm using an SVN service to post changes to my web server > - I commit a change to SVN, then SVN sends update to server > - On the SVN server, I have two FTP sites set up to handle commits > - One FTP site gets commits immediately...that's the development site, > or folder on my server > - The second FTP site gets commits only manually...those go to the > production site (or folder) when testing and client approval is finished > > - To use this setup, I created three variables for application.activeWebroot > based > on the cgi.server_name in use and used this like this: > > > > > > > > > > > > > > > > > This works fine for local development when using paths such as: > > url = /#application.activeWebroot#/images/image.jpg > > That translates to http://localhost/hillyPetersonHomes/images/image.jpg. > > However, on the server, when domain names become involved, it doesn't work. > When, viewing a site in the development folder, using the domain > "hph.whitestonemedia.com", this path: > > url = /#application.activeWebroot#/images/image.jpg > > becomes: > > url = > http://hph.whitestonemedia.com/hillyPetersonHomes-dev/images/image.jpg > > which doesn't work. > > It needs to be http://hph.whitestonemedia.com/images/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336359 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How to specify different webroots for development and production in application.cfc
Why not activeWebroot = "/hillyPetersonHome" on dev and just "" on hph / production (and then use url = "#application.activeWebroot#/images/image.jpg" (without the leading /) On Wed, Aug 18, 2010 at 9:55 AM, Rick Faircloth wrote: > > Ok...I thought I had this worked out, but now I'm running into > path issues on my server. > > What I'm trying to accomplish is this: > > - I'm using an SVN service to post changes to my web server > - I commit a change to SVN, then SVN sends update to server > - On the SVN server, I have two FTP sites set up to handle commits > - One FTP site gets commits immediately...that's the development site, > or folder on my server > - The second FTP site gets commits only manually...those go to the > production site (or folder) when testing and client approval is finished > > - To use this setup, I created three variables for application.activeWebroot > based > on the cgi.server_name in use and used this like this: > > > > > > > > > > > > > > > > > This works fine for local development when using paths such as: > > url = /#application.activeWebroot#/images/image.jpg > > That translates to http://localhost/hillyPetersonHomes/images/image.jpg. > > However, on the server, when domain names become involved, it doesn't work. > When, viewing a site in the development folder, using the domain > "hph.whitestonemedia.com", this path: > > url = /#application.activeWebroot#/images/image.jpg > > becomes: > > url = > http://hph.whitestonemedia.com/hillyPetersonHomes-dev/images/image.jpg > > which doesn't work. > > It needs to be http://hph.whitestonemedia.com/images/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336358 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
How to specify different webroots for development and production in application.cfc
Ok...I thought I had this worked out, but now I'm running into path issues on my server. What I'm trying to accomplish is this: - I'm using an SVN service to post changes to my web server - I commit a change to SVN, then SVN sends update to server - On the SVN server, I have two FTP sites set up to handle commits - One FTP site gets commits immediately...that's the development site, or folder on my server - The second FTP site gets commits only manually...those go to the production site (or folder) when testing and client approval is finished - To use this setup, I created three variables for application.activeWebroot based on the cgi.server_name in use and used this like this: This works fine for local development when using paths such as: url = /#application.activeWebroot#/images/image.jpg That translates to http://localhost/hillyPetersonHomes/images/image.jpg. However, on the server, when domain names become involved, it doesn't work. When, viewing a site in the development folder, using the domain "hph.whitestonemedia.com", this path: url = /#application.activeWebroot#/images/image.jpg becomes: url = http://hph.whitestonemedia.com/hillyPetersonHomes-dev/images/image.jpg which doesn't work. It needs to be http://hph.whitestonemedia.com/images/image.jpg Same problem with the production paths. I'm probably way over-complicating this solution. What's a good way to approach this problem? Using one port on the IIS server for development and 80 for production? And send hph.whitestonemedia.com to port "79" or whatever for development sub-domains and www.hillypetersonhomes.com to port "80" for production? And specify the ports in the FTP settings on the SVN server and on IIS on the preview/production server? Thanks for taking the time to read this and for any feedback! Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336357 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Image manipulation code: unit testing approach
I'm writing a small utility to perform some image resizing with options such as 'limitFileSize', 'maintainAspectRatio', etc. and I'd like to write unit tests for this (something I'm new to). How would any of you l33t unit testers go about this? i.e. How would you source the images for the unit test? Have demo files local to the test scripts? Create the test images using cfimage within the test script? Any other ideas? TIA Dominic ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336356 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Navigation Issue.
Do your links from the root and you'll be fine. Say your roots are: siteRoot/content/folder2/index2.cfm and siteRoot/content/folder1/includes/index.cfm You can use your JS like this: document.forms[0].action = "/content/folder2/index2.cfm". and document.forms[0].action = "/content/folder1/includes/index.cfm". On Wed, Aug 18, 2010 at 10:53 AM, fun and learning wrote: > > Hi All - > > I have a directory structure as follows: > > folder1 > - Includes > - index.cfm > > folder2 > - index2.cfm > > I have some links on index.cfm which on clicking goes to index2.cfm in > folder2. I am using javascript, and the action attribute is: > document.forms[0].action = "../folder2/index2.cfm". > > The index2.cfm has a button which on clicking goes back to index.cfm. The > javascript action is: > document.forms[0].action = "../folder1/includes/index.cfm". > > Until this it is working fine. > > Once the user is back on index.cfm and clicks the link to go again to > index2.cfm, i get the error that folder1/folder2/index2.cfm does not exist. > What could be the cause of this? > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336355 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Navigation Issue.
Hi All - I have a directory structure as follows: folder1 - Includes - index.cfm folder2 - index2.cfm I have some links on index.cfm which on clicking goes to index2.cfm in folder2. I am using javascript, and the action attribute is: document.forms[0].action = "../folder2/index2.cfm". The index2.cfm has a button which on clicking goes back to index.cfm. The javascript action is: document.forms[0].action = "../folder1/includes/index.cfm". Until this it is working fine. Once the user is back on index.cfm and clicks the link to go again to index2.cfm, i get the error that folder1/folder2/index2.cfm does not exist. What could be the cause of this? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336354 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFID integer?
Oh, oops. I just figured it out. In the ColdFusion administrator, if the setting "Use UUID for cftoken" is unchecked than the cftoken will be an integer. Thanks, Paul -Original Message- From: Paul Alkema [mailto:paulalkemadesi...@gmail.com] Sent: Wednesday, August 18, 2010 10:19 AM To: 'cf-talk@houseoffusion.com' Subject: CFID integer? Hi All, Does anyone have any idea why one server would give me a session.cftoken that's an integer and the other would give me a session.cftoken that's a alpha-numeric? It's seems to be very consistently this way. EXAMPLE SERVER A Session.cftoken = 316809 Server B Session.cftoken = 8a30c3300f9be8f6-858271FD-1D10-FABB-008190F5BC0804CA I'm assuming that there is a setting in the ColdFusion administrator I'm missing somewhere or something. Any ideas? Thanks, Paul ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336353 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFID integer?
Hi All, Does anyone have any idea why one server would give me a session.cftoken that's an integer and the other would give me a session.cftoken that's a alpha-numeric? It's seems to be very consistently this way. EXAMPLE SERVER A Session.cftoken = 316809 Server B Session.cftoken = 8a30c3300f9be8f6-858271FD-1D10-FABB-008190F5BC0804CA I'm assuming that there is a setting in the ColdFusion administrator I'm missing somewhere or something. Any ideas? Thanks, Paul ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336352 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Passing a Date Time Value to a function
Brilliant- that's got it, thanks. Can't really believe I've never hit that error in the past 6 years... :) Cheers! T On 18 August 2010 13:48, Jason Fisher wrote: > > It's because you re-used the variable names startDate and endDate, so you > re-wrote the value of each variable to strip out the time and then asked > for the time. Always be sure to 'var' all variables in a function, and > you'll avoid the snafu. If you do the following, you'll even get a runtime > error letting you know the problem (cannot var a variable with the same > name as an argument): > > > > output="No"> > > > > >var result = ""; >var startDate = ""; >var startTime = ""; >var endDate = ""; >var endTime = ""; > >startDate = dateFormat(arguments.startDate, "dd "); >startTime = timeFormat(arguments.startDate, "HH:mm"); >endDate = dateFormat(arguments.endDate, "dd "); >endTime = timeFormat(arguments.endDate, "HH:mm"); > > > > >Start: #startDate#, #startTime# >End: #endDate#, #endTime# > > > > > > > > > #dateFormatter2(now(), now())# > > > > Use different var names, and it works fine: > > > > output="No"> > > > > >var result = ""; >var start = ""; >var startTime = ""; >var end = ""; >var endTime = ""; > >start = dateFormat(arguments.startDate, "dd "); >startTime = timeFormat(arguments.startDate, "HH:mm"); >end = dateFormat(arguments.endDate, "dd "); >endTime = timeFormat(arguments.endDate, "HH:mm"); > > > > > Start: #start#, #startTime# >End: #end#, #endTime# > > > > > > > > > #dateFormatter2(now(), now())# > > > > > > > From: "Tom King" > Sent: Wednesday, August 18, 2010 8:26 AM > To: "cf-talk" > Subject: Passing a Date Time Value to a function > > It's been one of those days already - can anyone tell me why the time gets > stripped out? I'm aware that I'm using 'date' as an argument type, but > datetime throws an error and there's nothing in CF8 docs on it... How do I > preserve the time data? > > > > > > var result =""; > startDate=dateFormat(arguments.startdate, 'dd '); > startTime=timeFormat(arguments.startdate, "HH:MM"); > endDate=dateFormat(arguments.enddate, 'dd '); > endTime=timeFormat(arguments.enddate, "HH:MM"); > > > > Start: #startDate#, #startTime# End: #endDate#, > #endTime# > > > > > > #dateFormatter2(now(),now())# > > > Cheers! > T > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336351 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
re: Passing a Date Time Value to a function
It's because you re-used the variable names startDate and endDate, so you re-wrote the value of each variable to strip out the time and then asked for the time. Always be sure to 'var' all variables in a function, and you'll avoid the snafu. If you do the following, you'll even get a runtime error letting you know the problem (cannot var a variable with the same name as an argument): var result = ""; var startDate = ""; var startTime = ""; var endDate = ""; var endTime = ""; startDate = dateFormat(arguments.startDate, "dd "); startTime = timeFormat(arguments.startDate, "HH:mm"); endDate = dateFormat(arguments.endDate, "dd "); endTime = timeFormat(arguments.endDate, "HH:mm"); Start: #startDate#, #startTime# End: #endDate#, #endTime# #dateFormatter2(now(), now())# Use different var names, and it works fine: var result = ""; var start = ""; var startTime = ""; var end = ""; var endTime = ""; start = dateFormat(arguments.startDate, "dd "); startTime = timeFormat(arguments.startDate, "HH:mm"); end = dateFormat(arguments.endDate, "dd "); endTime = timeFormat(arguments.endDate, "HH:mm"); Start: #start#, #startTime# End: #end#, #endTime# #dateFormatter2(now(), now())# From: "Tom King" Sent: Wednesday, August 18, 2010 8:26 AM To: "cf-talk" Subject: Passing a Date Time Value to a function It's been one of those days already - can anyone tell me why the time gets stripped out? I'm aware that I'm using 'date' as an argument type, but datetime throws an error and there's nothing in CF8 docs on it... How do I preserve the time data? var result =""; startDate=dateFormat(arguments.startdate, 'dd '); startTime=timeFormat(arguments.startdate, "HH:MM"); endDate=dateFormat(arguments.enddate, 'dd '); endTime=timeFormat(arguments.enddate, "HH:MM"); Start: #startDate#, #startTime# End: #endDate#, #endTime# #dateFormatter2(now(),now())# Cheers! T ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336350 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Passing a Date Time Value to a function
It's been one of those days already - can anyone tell me why the time gets stripped out? I'm aware that I'm using 'date' as an argument type, but datetime throws an error and there's nothing in CF8 docs on it... How do I preserve the time data? var result =""; startDate=dateFormat(arguments.startdate, 'dd '); startTime=timeFormat(arguments.startdate, "HH:MM"); endDate=dateFormat(arguments.enddate, 'dd '); endTime=timeFormat(arguments.enddate, "HH:MM"); Start: #startDate#, #startTime# End: #endDate#, #endTime# #dateFormatter2(now(),now())# Cheers! T ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336349 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm