Re: Cf9 tabbed layouts cflayout
The temporary workaround that I found for this was to set a height value in the cflayout tag. You can see more details about how I fixed it in the comments on Sam's blog linked below. On Wed, Oct 14, 2009 at 3:01 PM, David Mineer wrote: > Has anyone been able to workaround the bug in cflayout for tabbed > interfaces. Sam's blog has been very helpful, but so far I haven't been > able to get that to work: > > > http://samfarmer.instantspot.com/blog/2009/08/14/Use-cfajaximport-to-help-with-CF8-to-CF9-migration > > Seems like a pretty big bug to let slip past the final release. But cf9 is > still awesome, just need this fixed. > > Thanks, > > -- > David Mineer Jr > - > The critical ingredient is getting off your > butt and doing something. It's as simple > as that. A lot of people have ideas, but > there are few who decide to do > something about them now. Not > tomorrow. Not next week. But today. > The true entrepreneur is a doer. > -- David Mineer Jr - The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327421 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: javascript and coldfusion
jQuery explicitly offers compatibility mode for use alongside other frameworks. -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Wednesday, October 21, 2009 12:02 AM To: cf-talk Subject: Re: javascript and coldfusion > H reading this chain of emails... a question raised in my mind > can we use multiple frameworks on the same page... I mean can use > jQuery to create a window and use ExtJS for displaying a grid Generally, yes, although some frameworks may have compatibility issues with others (Prototype comes to mind). Keep in mind that more frameworks means more JS files for your user to download, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327420 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: javascript and coldfusion
> H reading this chain of emails... a question raised in my mind > can we use multiple frameworks on the same page... I mean can use > jQuery to create a window and use ExtJS for displaying a grid Generally, yes, although some frameworks may have compatibility issues with others (Prototype comes to mind). Keep in mind that more frameworks means more JS files for your user to download, though. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327419 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
H reading this chain of emails... a question raised in my mind can we use multiple frameworks on the same page... I mean can use jQuery to create a window and use ExtJS for displaying a grid :)) Regards, Arsalan -- From: "Tony Bentley" Sent: Wednesday, October 21, 2009 1:17 AM To: "cf-talk" Subject: Re: javascript and coldfusion > > Not only that, but Adobe has packaged it for ColdFusion's AUTOSUGGEST> > > /CFIDE/scripts/ajax/yui/autocomplete/autocomplete-min.js > > /CFIDE/scripts/ajax/yui/animation/animation-min.js > > /CFIDE/scripts/ajax/yui/yahoo-dom-event/yahoo-dom-event.js > > >>YUI is still in development, without a doubt. Ext is a project that >>originally used YUI and then forked. It is now totally separate but >>can use YUI (as well as others) backing it. It can also be used with >>no external JS framework dependencies. >> >> >>> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327418 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Extra leading content in cfhttp.filecontent
Ahhh, it was some javascript includes in the header of the index page. I switched the process to it's own dedicated page instead of through the main index and the phantom data is gone. And, of course, since the javascript is commented to hide from unsupported browsers, it was taking up space, but not displaying in cfhttp.filecontent (which I suppose is an unsupported browser). Thanks Brad, that was very helpful. -Mike >Are you using CFHTMLHead, CFAjaxProxy, or any other tag that sneaks >content into the header? Also, does your Application.[cfc|cfm] file >produce any output. > >I'm failing to understand why you can't just dump out the >cfhttp.filecontent and look at it. Hit it in a browser and view source. > If the first value is "<" there are probably some script tags or >something getting in the output. > >~Brad > >I have a page that posts form data via cfhttp post and then receives a >comma separated list of response values. I control both the remote >posting code and the code that generates the response. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Extra leading content in cfhttp.filecontent
Are you using CFHTMLHead, CFAjaxProxy, or any other tag that sneaks content into the header? Also, does your Application.[cfc|cfm] file produce any output. I'm failing to understand why you can't just dump out the cfhttp.filecontent and look at it. Hit it in a browser and view source. If the first value is "<" there are probably some script tags or something getting in the output. ~Brad Original Message Subject: Extra leading content in cfhttp.filecontent From: M P Date: Tue, October 20, 2009 7:16 pm To: cf-talk I have a page that posts form data via cfhttp post and then receives a comma separated list of response values. I control both the remote posting code and the code that generates the response. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327416 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Ok...I give...what's wrong with this code?
Love this helpful, bunch! :o) Just think of this list as "Virtual Office Space"... Rick -Original Message- From: Billy Cox [mailto:bi...@oldworldspices.com] Sent: Tuesday, October 20, 2009 4:39 PM To: cf-talk Subject: Re: Ok...I give...what's wrong with this code? Wow, I was wondering how many more people could tell you why the code didn't work. It's like that scene in 'Office Space' where 8 different people tell Peter that the TPS report had the wrong cover page. Rick Faircloth wrote: > Thanks for the reply, Francois... > > I finally figured that out, too. > > Here's what worked: > > source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200.nam > e#" > destination = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200.name, 'w500', '', 'all')#" > nameConflict = "overwrite" > > > Rick > > -Original Message- > From: Francois Levesque [mailto:cfab...@gmail.com] > Sent: Tuesday, October 20, 2009 2:06 PM > To: cf-talk > Subject: Re: Ok...I give...what's wrong with this code? > > > You're using imagesW200 in your cffile replace. This is a query object > (which you're looping against). You would need to use it's columns to get > the correct value. > Francois Levesque > http://blog.critical-web.com/ > > > On Tue, Oct 20, 2009 at 2:02 PM, Rick Faircloth > wrote: > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327415 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Extra leading content in cfhttp.filecontent
I have a page that posts form data via cfhttp post and then receives a comma separated list of response values. I control both the remote posting code and the code that generates the response. Everything is working perfectly except the first entry of the comma separated value list is reporting a length of 508 characters, even though it's only displaying a single character, which is a result code (only possible values are 1, 2 or 3). So it displays properly as a 1, 2 or 3, but when I try to insert it into a database, it says the value is too long. I tried TRIM and it has no effect. Through experimentation I've figured out I can use the RIGHT(x,1) function (where x is my variable) as a workaround, but every single transaction has over 500 characters of extra data that I can't seem to remove, or even see. Oddly, if I use LEFT(x,1) I get a "<" which leads me to believe there is some sort of hidden code, but if I use LEFT(x,2) or greater, all the way to 507, I don't see anything (not even the leading "<"). Very strange. I've verified that the responding page is not generating the extra data, I even added the the original LEN value as an additional field in the comma separated list and it is showing properly as 1. So I have to believe that somehow the local cfhttp post is appending the mystery content to cfhttp.filecontent. Anyone ever seen this before? And more importantly, of course, know how to fix it? Thanks, Mike ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327414 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: uncaught exception from firebug
this is a long shot but I have experienced something similar: in administrator check weather you have the same "script protect" on both servers, script protect set to "all" can sometimes break ajax. Andrew. > I have some previously running code which still runs properly on my > desktop but when I try to run it on the production server it fails > with "uncaught exception". I have isolated it to the point that it > issues a function call via dataproxy. FYI, the code (unchanged is: > > dataproxy.UpdateNA( >f.UserOneID.value > ,w.W1FirstName.value > ,w.W1LastName.value > ,w.W1Address1.value > ,w.W1Address2.value > ,w.W1City.value > ,w.W1StateProv.value > ,w.W1PCZIP.value > ,w.W1Country.value > ); > > It never gets to the function because the first line is now a cfabort > and no matter what I do (including changing the function name to one > that should fail because of conflicting parameters) it fails with the > uncaught exception (shown to me by Firebug). It also fails in all > other browsers, but the identical code does not fail on my desktop and > has been running for quite a while! > > Any advise in how I can further isolate this would be greatly accepted. > Curiously I have 3 other similar function calls on the same page and > they all work. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327413 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: how to detect user login attempts
>Of course, this approach will require some method for them to unlock >their account. A couple options for thisone is to add a timestamp to the users table as well for last login attempt, and reset the counter if the account is locked once a certain time is up (I usually use an hour). If your application has a backend, you can also create a function for the administrator to reset the counter manually. --- Mary Jo ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327412 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: how to detect user login attempts
>Of course, this approach will require some method for them to unlock >their account. A couple options for thisone is to add a timestamp to the users table as well for last login attempt, and reset the counter if the account is locked once a certain time is up (I usually use an hour). If your application has a backend, you can also create a function for the administrator to reset the counter manually. --- Mary Jo ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327411 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: how to detect user login attempts
>Of course, this approach will require some method for them to unlock >their account. A couple options for thisone is to add a timestamp to the users table as well for last login attempt, and reset the counter if the account is locked once a certain time is up (I usually use an hour). If your application has a backend, you can also create a function for the administrator to reset the counter manually. --- Mary Jo ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327410 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
uncaught exception from firebug
I have some previously running code which still runs properly on my desktop but when I try to run it on the production server it fails with "uncaught exception". I have isolated it to the point that it issues a function call via dataproxy. FYI, the code (unchanged is: dataproxy.UpdateNA( f.UserOneID.value ,w.W1FirstName.value ,w.W1LastName.value ,w.W1Address1.value ,w.W1Address2.value ,w.W1City.value ,w.W1StateProv.value ,w.W1PCZIP.value ,w.W1Country.value ); It never gets to the function because the first line is now a cfabort and no matter what I do (including changing the function name to one that should fail because of conflicting parameters) it fails with the uncaught exception (shown to me by Firebug). It also fails in all other browsers, but the identical code does not fail on my desktop and has been running for quite a while! Any advise in how I can further isolate this would be greatly accepted. Curiously I have 3 other similar function calls on the same page and they all work. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327409 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Ok...I give...what's wrong with this code?
imagesW200 is a query result. I believe you have to use imagesW200.name to reference the actual name. -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Tuesday, October 20, 2009 2:03 PM To: cf-talk Subject: Ok...I give...what's wrong with this code? I'm getting this error message. "Complex object types cannot be converted to simple values." etc. The error occurred in D:\Inetpub\webroot\holtzmanRentals\misc\updatePhotoFilenames.cfm: line 14 12 : 13 : Isn't the above cffile statement essentially the same as the following statement, which works? Thanks for any feedback. Rick --- "Those who hammer their guns into plows will plow for those who do not." - Thomas Jefferson ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327408 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: how to detect user login attempts
you dont need any of those things you seek. Follow these steps: 1. draw up a logon table with the following columns: * username * password * accountstatus * attemptcount 2. each time the client tries to logon, validate if account (username and password) exists. 3. if exists, grant access; else 4. if username exists, but password is wrong, flag the attemptcount as "1". 5. for the next two tries, add the value 1 to attemptcount 6. now develop a script that checks if attemptcount eq "3" 7. if yes, flag accountstatus as suspended Sincerely, Chuka I.W. Anene Chief Software Eng./CEO Quorium Solutions www.quorium.org 07029609185,07032696113 From: Nathan Chen To: cf-talk Sent: Tue, October 20, 2009 9:34:58 PM Subject: how to detect user login attempts Hi, All: This might have been asked but I am not experienced CF programmer so I need help. I am building a login module that requires detecting user login attempts. After the user fails after three tries, the acct will be suspended. Has anything been done, e.g, tags, components, custom tag? Can anyone point me to the right direction? Thanks. Nathan ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327407 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: how to detect user login attempts
Add a column in your user table for the number of bad login attempts. Every time there is a failed login for that user, increment the value. Do not allow that user to login if their failed count has exceeded your threshold. REMEMBER to zero it back out when they log in successfully. Of course, this approach will require some method for them to unlock their account. ~Brad Original Message Subject: how to detect user login attempts From: "Nathan Chen" Date: Tue, October 20, 2009 3:34 pm To: cf-talk Hi, All: This might have been asked but I am not experienced CF programmer so I need help. I am building a login module that requires detecting user login attempts. After the user fails after three tries, the acct will be suspended. Has anything been done, e.g, tags, components, custom tag? Can anyone point me to the right direction? Thanks. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327406 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Ok...I give...what's wrong with this code?
Wow, I was wondering how many more people could tell you why the code didn't work. It's like that scene in 'Office Space' where 8 different people tell Peter that the TPS report had the wrong cover page. Rick Faircloth wrote: > Thanks for the reply, Francois... > > I finally figured that out, too. > > Here's what worked: > > source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200.nam > e#" > destination = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200.name, 'w500', '', 'all')#" > nameConflict = "overwrite" > > > Rick > > -Original Message- > From: Francois Levesque [mailto:cfab...@gmail.com] > Sent: Tuesday, October 20, 2009 2:06 PM > To: cf-talk > Subject: Re: Ok...I give...what's wrong with this code? > > > You're using imagesW200 in your cffile replace. This is a query object > (which you're looping against). You would need to use it's columns to get > the correct value. > Francois Levesque > http://blog.critical-web.com/ > > > On Tue, Oct 20, 2009 at 2:02 PM, Rick Faircloth > wrote: > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
how to detect user login attempts
Hi, All: This might have been asked but I am not experienced CF programmer so I need help. I am building a login module that requires detecting user login attempts. After the user fails after three tries, the acct will be suspended. Has anything been done, e.g, tags, components, custom tag? Can anyone point me to the right direction? Thanks. Nathan ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: javascript and coldfusion
Not only that, but Adobe has packaged it for ColdFusion's /CFIDE/scripts/ajax/yui/autocomplete/autocomplete-min.js /CFIDE/scripts/ajax/yui/animation/animation-min.js /CFIDE/scripts/ajax/yui/yahoo-dom-event/yahoo-dom-event.js >YUI is still in development, without a doubt. Ext is a project that >originally used YUI and then forked. It is now totally separate but >can use YUI (as well as others) backing it. It can also be used with >no external JS framework dependencies. > > >> ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327403 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: javascript and coldfusion
YUI is still in development, without a doubt. Ext is a project that originally used YUI and then forked. It is now totally separate but can use YUI (as well as others) backing it. It can also be used with no external JS framework dependencies. On Tue, Oct 20, 2009 at 11:39 AM, Andy Matthews wrote: > > I don't think that YUI is still in development is it? ExtJS is what used to > be YUI. > > It's almost always a good choice to select a library that has a robust > developer community. jQuery has that in spades, and ExtJS is not far behind > (if it is behind at all). > > > andy > > -Original Message- > From: Tony Bentley [mailto:t...@tonybentley.com] > Sent: Tuesday, October 20, 2009 11:00 AM > To: cf-talk > Subject: Re: javascript and coldfusion > > > Why wouldn't you choose YUI as an option to implement? I'm not sure I > understand, unless it is purely preference. I don't use it but I know there > are enough apps out there that use it to make it worth considering. JQuery > on the other hand is something I have come to depend on, similarly to > ColdFusion. Both are layers on top (Javascript and Java) and both make it > much easier to use. > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327402 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: javascript and coldfusion
thanks for all your replies... seems then that extjs is good for ui and jquery for adding functionaility and therefore we should know both :) > Hi, > > we are doing a review of the best javascript components libraries to > use with coldfusion, e.g. jquery, extjs, dhtmlx, etc... > > what are your experiences of the above and others? > > thanks > > richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327401 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: javascript and coldfusion
I don't think that YUI is still in development is it? ExtJS is what used to be YUI. It's almost always a good choice to select a library that has a robust developer community. jQuery has that in spades, and ExtJS is not far behind (if it is behind at all). andy -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: Tuesday, October 20, 2009 11:00 AM To: cf-talk Subject: Re: javascript and coldfusion Why wouldn't you choose YUI as an option to implement? I'm not sure I understand, unless it is purely preference. I don't use it but I know there are enough apps out there that use it to make it worth considering. JQuery on the other hand is something I have come to depend on, similarly to ColdFusion. Both are layers on top (Javascript and Java) and both make it much easier to use. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327400 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Ok...I give...what's wrong with this code?
Thanks for the reply, Francois... I finally figured that out, too. Here's what worked: Rick -Original Message- From: Francois Levesque [mailto:cfab...@gmail.com] Sent: Tuesday, October 20, 2009 2:06 PM To: cf-talk Subject: Re: Ok...I give...what's wrong with this code? You're using imagesW200 in your cffile replace. This is a query object (which you're looping against). You would need to use it's columns to get the correct value. Francois Levesque http://blog.critical-web.com/ On Tue, Oct 20, 2009 at 2:02 PM, Rick Faircloth wrote: > > I'm getting this error message. > > > > "Complex object types cannot be converted to simple values." etc. > > > > > The error occurred in > D:\Inetpub\webroot\holtzmanRentals\misc\updatePhotoFilenames.cfm: line 14 > > > 12 : > > 13 : > 14 : source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > 15 : destination = > > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > 16 : > > > > from this code.why? > > > > > directory = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200" > > type = "file" > > name = "imagesW200"> > > > > > > > > > > > > > source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > destination = > > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > nameConflict = "overwrite" > > > > > > > > > > > > > > > Isn't the above cffile statement essentially the same as the following > statement, which works? > > > > >source = > "#expandPath('/imprint-warehouse/images/#cffile.serverfile#')#" > >destination = > "#expandPath('/imprint-warehouse/images/#Replace(cffile.serverfile, ' ', > '_', 'All')#')#"> > > > > > > Thanks for any feedback. > > > > Rick > > > > > > --- > > "Those who hammer their guns into plows will plow for those who do not." - > Thomas Jefferson > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327399 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ok...I give...what's wrong with this code?
Hey Rick, ...a little tough to read, but you can't use a query as you have in line 14simple values onlynot complex ones like queriesjust like the error says ;-) the code after that loops over "imagesW200"thus my assumption that it is a query. HTH Cheers - Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: br...@electricedgesystems.com web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. On Tue, 2009-10-20 at 14:02 -0400, Rick Faircloth wrote: > I'm getting this error message. > > > > "Complex object types cannot be converted to simple values." etc. > > > > > The error occurred in > D:\Inetpub\webroot\holtzmanRentals\misc\updatePhotoFilenames.cfm: line 14 > > > 12 : > > 13 : > 14 : source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200 > \#imagesW200#" > > 15 : destination = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > 16 : > > > > from this code.why? > > > > > directory = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200" > > type = "file" > > name = "imagesW200"> > > > > > > > > > > > > > source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > destination = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > nameConflict = "overwrite" > > > > > > > > > > > > > > > Isn't the above cffile statement essentially the same as the following > statement, which works? > > > > > source = > "#expandPath('/imprint-warehouse/images/#cffile.serverfile#')#" > > destination = > "#expandPath('/imprint-warehouse/images/#Replace(cffile.serverfile, ' ', > '_', 'All')#')#"> > > > > > > Thanks for any feedback. > > > > Rick > > > > > --- > > "Those who hammer their guns into plows will plow for those who do not." - > Thomas Jefferson > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327398 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ok...I give...what's wrong with this code?
#imagesW200# is the name you assigned to your cfdirectory. essentially, it's a CF query object. which is a complex object. complex objects cannot be used as strings (as you're trying to use it as part of a path). On Tue, Oct 20, 2009 at 11:02 AM, Rick Faircloth wrote: > > I'm getting this error message. > > > > "Complex object types cannot be converted to simple values." etc. > > > > > The error occurred in > D:\Inetpub\webroot\holtzmanRentals\misc\updatePhotoFilenames.cfm: line 14 > > > 12 : > > 13 : > 14 : source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > 15 : destination = > > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > 16 : > > > > from this code.why? > > > > > directory = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200" > > type = "file" > > name = "imagesW200"> > > > > > > > > > > > > > source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > destination = > > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > nameConflict = "overwrite" > > > > > > > > > > > > > > > Isn't the above cffile statement essentially the same as the following > statement, which works? > > > > >source = > "#expandPath('/imprint-warehouse/images/#cffile.serverfile#')#" > >destination = > "#expandPath('/imprint-warehouse/images/#Replace(cffile.serverfile, ' ', > '_', 'All')#')#"> > > > > > > Thanks for any feedback. > > > > Rick > > > > > > --- > > "Those who hammer their guns into plows will plow for those who do not." - > Thomas Jefferson > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327397 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Ok...I give...what's wrong with this code?
You're using imagesW200 in your cffile replace. This is a query object (which you're looping against). You would need to use it's columns to get the correct value. Francois Levesque http://blog.critical-web.com/ On Tue, Oct 20, 2009 at 2:02 PM, Rick Faircloth wrote: > > I'm getting this error message. > > > > "Complex object types cannot be converted to simple values." etc. > > > > > The error occurred in > D:\Inetpub\webroot\holtzmanRentals\misc\updatePhotoFilenames.cfm: line 14 > > > 12 : > > 13 : > 14 : source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > 15 : destination = > > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > 16 : > > > > from this code.why? > > > > > directory = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200" > > type = "file" > > name = "imagesW200"> > > > > > > > > > > > > > source = > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200\#imagesW200#" > > destination = > > "d:\inetpub\current_projects\holtzmanRentals\rentalPhotos200Renamed\#Replace > (imagesW200, 'w500', '', 'all')#" > > nameConflict = "overwrite" > > > > > > > > > > > > > > > Isn't the above cffile statement essentially the same as the following > statement, which works? > > > > >source = > "#expandPath('/imprint-warehouse/images/#cffile.serverfile#')#" > >destination = > "#expandPath('/imprint-warehouse/images/#Replace(cffile.serverfile, ' ', > '_', 'All')#')#"> > > > > > > Thanks for any feedback. > > > > Rick > > > > > > --- > > "Those who hammer their guns into plows will plow for those who do not." - > Thomas Jefferson > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Ok...I give...what's wrong with this code?
I'm getting this error message. "Complex object types cannot be converted to simple values." etc. The error occurred in D:\Inetpub\webroot\holtzmanRentals\misc\updatePhotoFilenames.cfm: line 14 12 : 13 : Isn't the above cffile statement essentially the same as the following statement, which works? Thanks for any feedback. Rick --- "Those who hammer their guns into plows will plow for those who do not." - Thomas Jefferson ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327395 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: View PDF in Coldfusion
Hey - I solved it on my own! Here's the symptoms and solution in case you need... Symptom - the database is not storing the full PDF. I could tell my dumping the file it did store and seeing that its file size was 64 K and not 250 K. Fix - check your CF8 Administration DSN setup. You need to have BLOB selected. Kim ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327394 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
Yeah, like, dojo's testing stuff is freaking awersome! And you don't have to run dojo to use it, either. Mix and match, match and mix... Cuz the dojo heads are freaking cool like that. Talk about a well thought out JS framework. Hat's off to 'em. -- Everything is pathology, except for indifference. Emile M. Cioran On Tue, Oct 20, 2009 at 10:51 AM, Judah McAuley wrote: > > I like Ext for building JS applications but prefer JQuery for adding > functionality on top of an HTML application. > > Ext is a full fledged frame work. If you want to have a single html > page with nothing more than a div and build all your UI in javascript > that does event-driven calls to a CF backend, then Ext is your best > friend. However, Ext is still quite difficult to theme. It is going to > look like Ext unless you go to a lot of trouble creating a bunch of > tiny images and hacking css classes. > > JQuery, on the other hand, is great for enhancing an HTML page. Want > to just drop in a date picker or do a look ahead search? JQuery is > easy to drop in and usually pretty easy to make look like the rest of > your design and even to change on the fly. > > So, yeah, it really depends on what you are going to use a JS library > for and chances are good that you'll end up using more than one. > > Judah ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327393 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Checking line 26 or 27
Just noticed you're using rematch there - which is good since ListToArray will remove blank lines (not what we want). However, you can simplify it - instead of the crlf variable you can do: And, once you're there, it's one extra character to do: Which will work with files that don't have carriage returns. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327392 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Checking line 26 or 27
Damo, Did you try the attempt I outlined above (reproduced here)? You've got to get the lines into an array first, then you should be able to refer to them by [26] or [27], as Peter and I pointed out. >How about something like this (untested): > > > > > > > > > > >The variable 'invoiceNumber' should now hold whichever line has content ... ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327391 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: javascript and coldfusion
I like Ext for building JS applications but prefer JQuery for adding functionality on top of an HTML application. Ext is a full fledged frame work. If you want to have a single html page with nothing more than a div and build all your UI in javascript that does event-driven calls to a CF backend, then Ext is your best friend. However, Ext is still quite difficult to theme. It is going to look like Ext unless you go to a lot of trouble creating a bunch of tiny images and hacking css classes. JQuery, on the other hand, is great for enhancing an HTML page. Want to just drop in a date picker or do a look ahead search? JQuery is easy to drop in and usually pretty easy to make look like the rest of your design and even to change on the fly. So, yeah, it really depends on what you are going to use a JS library for and chances are good that you'll end up using more than one. Judah On Tue, Oct 20, 2009 at 8:37 AM, Cutter (ColdFusion) wrote: > > Especially since ExtJs started out as an 'extension' of YUI ;) > > And (and I'm not knockin JQuery) people should really look at ExtCore > for basic DOM manipulation, ajax and effects... > > Steve "Cutter" Blades > Adobe Certified Professional > Advanced Macromedia ColdFusion MX 7 Developer > > Co-Author of "Learning Ext JS" > http://www.packtpub.com/learning-ext-js/book ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327390 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
View PDF in Coldfusion
OK - I conquered the Flash file view but now I have something peculiar with PDF files. I have narrowed in on the fact that the ones that work are simple PDF - no graphics and small in size. The ones that do not work ("The file is damaged and could not be repaired" message in PDF Reader) are larger with graphics within. ___ I store the PDF as binary by uploading the file, then using readbinary. The PROMOPDF in the table is a BLOB/Oracle. INSERT INTO MSR_PROMOTIONS ( PROMOPDF ) VALUES( #bPDF# ) So I think I saved it right. ___ Now to get it out and display... SELECT PROMOPDF FROM MSR_PROMOTIONS Adobe Acrobat error : File is damaged and cannot be repaired. ___ Help... Thanks! Kim ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327389 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Flash File in Oracle - Retrieving...
Thank you for your help! I finally found the problem was related to those darn statements!!! UGH!!! I had the path with a substitute variable with out the cfoutput. You would have thought my error would have been more clear. Kim ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327388 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Checking line 26 or 27
> The Invoice will not change, its only ever going to be on line 26 or line 27 I'd say the odds of that being the case are low... things like this frequently come back to bite you. > I tried your code but all i get is an error messag saying: > > You have attempted to dereference a scalar variable of type class java. > lang.String as a structure with members. Something like this *might* work: But don't just copy and paste that - make sure you know what it's actually doing, and that you know the difference between strings, arrays, structs, and so on. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327387 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
Why wouldn't you choose YUI as an option to implement? I'm not sure I understand, unless it is purely preference. I don't use it but I know there are enough apps out there that use it to make it worth considering. JQuery on the other hand is something I have come to depend on, similarly to ColdFusion. Both are layers on top (Javascript and Java) and both make it much easier to use. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: create datasource in cfm page
perfect, thanks! >hi > >is there a way to create a data source in a cfm page as opposed to the cf >administrator > >thanks > >richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: create datasource in cfm page
Yes. The Admin API. They are a collection of CFC's that give you access to everything the administrator does. http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basiconfig_37.html ~Brad Original Message Subject: create datasource in cfm page From: Richard White Date: Tue, October 20, 2009 10:10 am To: cf-talk hi is there a way to create a data source in a cfm page as opposed to the cf administrator thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
Especially since ExtJs started out as an 'extension' of YUI ;) And (and I'm not knockin JQuery) people should really look at ExtCore for basic DOM manipulation, ajax and effects... Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 10/20/2009 10:27 AM, James Holmes wrote: > I'd cut two from that list; just use jQuery and ExtJS (with the jQuery > connector). > > mxAjax / CFAjax docs and other useful articles: > http://www.bifrost.com.au/blog/ > > > 2009/10/20 Tony Bentley: > >> I would suggest using YUI, ExtJS, JQuery and Prototype. Each one has an >> independent value that the others do not carry. For instance, when using the >> CFAJAXPROXY, you are using the Prototype library. For UI windows, >> navigation, etc you are using ExtJS. When building custom controllers or >> doing your own DOM manipulation I would suggest JQuery for ease of typing >> syntax. YUI is an alternative to JQuery. I have never used it but there are >> enough apps built on the framework to make it a worthy option. >> > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327383 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
I'd cut two from that list; just use jQuery and ExtJS (with the jQuery connector). mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/10/20 Tony Bentley : > > I would suggest using YUI, ExtJS, JQuery and Prototype. Each one has an > independent value that the others do not carry. For instance, when using the > CFAJAXPROXY, you are using the Prototype library. For UI windows, navigation, > etc you are using ExtJS. When building custom controllers or doing your own > DOM manipulation I would suggest JQuery for ease of typing syntax. YUI is an > alternative to JQuery. I have never used it but there are enough apps built > on the framework to make it a worthy option. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327382 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
I would suggest using YUI, ExtJS, JQuery and Prototype. Each one has an independent value that the others do not carry. For instance, when using the CFAJAXPROXY, you are using the Prototype library. For UI windows, navigation, etc you are using ExtJS. When building custom controllers or doing your own DOM manipulation I would suggest JQuery for ease of typing syntax. YUI is an alternative to JQuery. I have never used it but there are enough apps built on the framework to make it a worthy option. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: create datasource in cfm page
http://www.talkingtree.com/blog/index.cfm/2006/6/22/Verify-DSN-AdminAPI -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Tuesday, October 20, 2009 10:11 AM To: cf-talk Subject: create datasource in cfm page hi is there a way to create a data source in a cfm page as opposed to the cf administrator thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: create datasource in cfm page
Yes; the Admin API. Alternatively, you can use the undocumented service-factory methods. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/10/20 Richard White : > > hi > > is there a way to create a data source in a cfm page as opposed to the cf > administrator > > thanks > > richard > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327379 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
create datasource in cfm page
hi is there a way to create a data source in a cfm page as opposed to the cf administrator thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327378 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Shift from a single developer team to a multiple developer team
Just to add: Documentation, documentation, documentation... -Original Message- From: Patrick Santora [mailto:patwe...@gmail.com] Sent: Tuesday, October 20, 2009 7:37 AM To: cf-talk Subject: Re: Shift from a single developer team to a multiple developer team I second what Cutter mentions here. They are common practices and really work well on getting the job done within development teams. In regards to the development/staging/production environments, you should make sure that only one maybe two people are responsible for pushing code to at least production. Too many people pushing code could really screw something up. I noticed that you said your application is somewhat modular. This can play to your benefit as you can separate a large task by assigning a person to take care of front end work, while another can take care of back end work. It keeps the team talking with one another as well as can keep toes from being stepped on during the development cycle. Basically "you work on this and you work on that and let it come together in the end". -Pat On Tue, Oct 20, 2009 at 7:26 AM, Cutter (ColdFusion) < cold.fus...@cutterscrossing.com> wrote: > > There are several things that I would suggest, in moving from a single > developer to team development dynamic: > > Source Control is critical (personal pref - VSS doesn't cut it, go to > SVN or Git) > Developers should/must setup/maintain their own development environments > Development and initial testing should be done locally (on user's > desktop), QA and final testing on a centralized staging server, then > finally deploy to production > Local, Staging, and Production environments should match each other as > closely as possible > Establish a good set of Coding Guidelines, that everyone on the team > must follow going forward > Write standardized naming conventions (in your Coding Guidelines) of > variables, directory and file structure, db architecture, HTML id's and > classes, etc. > > Steve "Cutter" Blades > Adobe Certified Professional > Advanced Macromedia ColdFusion MX 7 Developer > > Co-Author of "Learning Ext JS" > http://www.packtpub.com/learning-ext-js/book > _ > http://blog.cutterscrossing.com > > > On 10/20/2009 8:13 AM, Eric Cobb wrote: > > A friend of mine originally asked this question on LinkedIn's ColdFusion > > Programmers group but didn't get much response, so I told him I would > > post it here to see what you guys thought. His original post can be > > seen here: http://bit.ly/4aJjes > > > > Here's his post: > > > > "I have been the primary developer on an application for a number of > > years and we have recently gotten the additional resources to bring on 3 > > more programmers. > > > > I am excited and terrified. We have a Visual Source Safe environment set > > up for file sharing management, but I am curious if anyone has made this > > transition and has any tips for how to head off issues down the road. > > > > The application is somewhat modular, but certainly not to an object > > oriented extent. I am no project manager and am fearful that without > > proper planning we are going to be stepping on each other's toes an > > awful lot. " > > > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Unique User Login
Agreed that you have to track who is logged in somewhere persistent like the database or Application scope. You need to make a key decision here though. When someone tries to log into an account that you think is already logged in to, what do you want to happen? 1) Deny them access. Be VERY careful with this one because people don't like to log out and if someone just closes their window and your system still "thinks" they are logged in they will get locked out of your site and won't be able to log back in. You can mitigate this by storing a timestamp when they log in and automatically timing them out after so many minutes of inactivity (update the timestamp on every page hit) but the user who closes his window and immediately wants back in will still be locked out until he times out. 2) Kick out the previously logged in user in favor of the last one to log in. This will always allow access to the person logging in. Of course, you will need to have a way to log out whoever just got kicked off. I think if you did this you would need to keep not only the list of users logged in, but some client-specific session id to identify them. If User A hits a page with a different session id than the valid session id for that user, you say "sorry charlie, someone just booted you out" and you log them off. (This sounds kind of harsh, but it's exactly what a lot of instant messenger clients do--- "you have signed on at a different location") Your solution might depend on why you are doing this. Security, abuse prevention etc. ~Brad Original Message Subject: RE: Unique User Login From: "Dawson, Michael" Date: Tue, October 20, 2009 8:21 am To: cf-talk You should use the Application scope to determine who is logged-in. First, you need a login form. When the login form is submitted, first see if the username exists in an array that is stored in the Application scope. If the username exists in the array, deny further access. If the username does not exist in the array, then upon successful authentication, add the username to the Applciation-scoped array. Thanks, Mike -Original Message- From: Davide Campo [mailto:boy_on_ea...@yahoo.it] Sent: Tuesday, October 20, 2009 3:18 AM To: cf-talk Subject: Unique User Login Hi, i need to know how to create a Unique User Login in my app: when a user are logged in my app i want that nobody can log-in with the same username. I know that i must use the client variables but i don't understand which are the single steps to do it. thanks for help. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327376 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Shift from a single developer team to a multiple developer team
I second what Cutter mentions here. They are common practices and really work well on getting the job done within development teams. In regards to the development/staging/production environments, you should make sure that only one maybe two people are responsible for pushing code to at least production. Too many people pushing code could really screw something up. I noticed that you said your application is somewhat modular. This can play to your benefit as you can separate a large task by assigning a person to take care of front end work, while another can take care of back end work. It keeps the team talking with one another as well as can keep toes from being stepped on during the development cycle. Basically "you work on this and you work on that and let it come together in the end". -Pat On Tue, Oct 20, 2009 at 7:26 AM, Cutter (ColdFusion) < cold.fus...@cutterscrossing.com> wrote: > > There are several things that I would suggest, in moving from a single > developer to team development dynamic: > > Source Control is critical (personal pref - VSS doesn't cut it, go to > SVN or Git) > Developers should/must setup/maintain their own development environments > Development and initial testing should be done locally (on user's > desktop), QA and final testing on a centralized staging server, then > finally deploy to production > Local, Staging, and Production environments should match each other as > closely as possible > Establish a good set of Coding Guidelines, that everyone on the team > must follow going forward > Write standardized naming conventions (in your Coding Guidelines) of > variables, directory and file structure, db architecture, HTML id's and > classes, etc. > > Steve "Cutter" Blades > Adobe Certified Professional > Advanced Macromedia ColdFusion MX 7 Developer > > Co-Author of "Learning Ext JS" > http://www.packtpub.com/learning-ext-js/book > _ > http://blog.cutterscrossing.com > > > On 10/20/2009 8:13 AM, Eric Cobb wrote: > > A friend of mine originally asked this question on LinkedIn's ColdFusion > > Programmers group but didn't get much response, so I told him I would > > post it here to see what you guys thought. His original post can be > > seen here: http://bit.ly/4aJjes > > > > Here's his post: > > > > "I have been the primary developer on an application for a number of > > years and we have recently gotten the additional resources to bring on 3 > > more programmers. > > > > I am excited and terrified. We have a Visual Source Safe environment set > > up for file sharing management, but I am curious if anyone has made this > > transition and has any tips for how to head off issues down the road. > > > > The application is somewhat modular, but certainly not to an object > > oriented extent. I am no project manager and am fearful that without > > proper planning we are going to be stepping on each other's toes an > > awful lot. " > > > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Shift from a single developer team to a multiple developer team
Second that, plus, and this is really important - talk to each other. We have a daily 5 minute catchup and it nearly always brings up little things that need further discussion between two dev's (that probably wouldn't have taken place had a discussion of what everyone's doing today had not). HTH Dominic 2009/10/20 Cutter (ColdFusion) > > There are several things that I would suggest, in moving from a single > developer to team development dynamic: > > Source Control is critical (personal pref - VSS doesn't cut it, go to > SVN or Git) > Developers should/must setup/maintain their own development environments > Development and initial testing should be done locally (on user's > desktop), QA and final testing on a centralized staging server, then > finally deploy to production > Local, Staging, and Production environments should match each other as > closely as possible > Establish a good set of Coding Guidelines, that everyone on the team > must follow going forward > Write standardized naming conventions (in your Coding Guidelines) of > variables, directory and file structure, db architecture, HTML id's and > classes, etc. > > Steve "Cutter" Blades > Adobe Certified Professional > Advanced Macromedia ColdFusion MX 7 Developer > > Co-Author of "Learning Ext JS" > http://www.packtpub.com/learning-ext-js/book > _ > http://blog.cutterscrossing.com > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327374 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: javascript and coldfusion
It mostly depends on what you'll be doing with those libraries. If you're going to be doing application dev and want consistent UI, then the built in copies of ExtJS might work for you. If you just want to spice up existing pages with new functionality unobtrusively then jQuery is by far your best choice. andy -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Tuesday, October 20, 2009 8:55 AM To: cf-talk Subject: javascript and coldfusion Hi, we are doing a review of the best javascript components libraries to use with coldfusion, e.g. jquery, extjs, dhtmlx, etc... what are your experiences of the above and others? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Shift from a single developer team to a multiple developer team
There are several things that I would suggest, in moving from a single developer to team development dynamic: Source Control is critical (personal pref - VSS doesn't cut it, go to SVN or Git) Developers should/must setup/maintain their own development environments Development and initial testing should be done locally (on user's desktop), QA and final testing on a centralized staging server, then finally deploy to production Local, Staging, and Production environments should match each other as closely as possible Establish a good set of Coding Guidelines, that everyone on the team must follow going forward Write standardized naming conventions (in your Coding Guidelines) of variables, directory and file structure, db architecture, HTML id's and classes, etc. Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 10/20/2009 8:13 AM, Eric Cobb wrote: > A friend of mine originally asked this question on LinkedIn's ColdFusion > Programmers group but didn't get much response, so I told him I would > post it here to see what you guys thought. His original post can be > seen here: http://bit.ly/4aJjes > > Here's his post: > > "I have been the primary developer on an application for a number of > years and we have recently gotten the additional resources to bring on 3 > more programmers. > > I am excited and terrified. We have a Visual Source Safe environment set > up for file sharing management, but I am curious if anyone has made this > transition and has any tips for how to head off issues down the road. > > The application is somewhat modular, but certainly not to an object > oriented extent. I am no project manager and am fearful that without > proper planning we are going to be stepping on each other's toes an > awful lot. " > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327372 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
I think you'll find a lot of varying opinions on which library is best, but the only way you're going to be able to make the decision that works best for you is to get your hands dirty with several different libraries and decide for yourself. Personally, I started with Spry and have since moved to jQuery, which I highly recommend. ColdFusion 8+ ajax capabilities are built upon extjs, so there are some options already available to you with that library. By the way, I'm not even sure Spry is under development any more, so I wouldn't even consider that if I were you. Libraries have their own strengths and weaknesses, so perhaps once you know exactly what features you need that may also help you make a decision. For example, will you be using more of the typical "ajax" features (ie, dynamically load remote data) or will you be using it more for DOM manipulation? jQuery selectors for DOM manipulation are great, but some developers may prefer the way Spry (or other frameworks) handle remote data. I would also look at factors such as documentation, ability to create/add your own plugins, and the size of the development community/contributors - all of which are very solid with jQuery. Steve On Tue, Oct 20, 2009 at 9:54 AM, Richard White wrote: > > Hi, > > we are doing a review of the best javascript components libraries to use > with coldfusion, e.g. jquery, extjs, dhtmlx, etc... > > what are your experiences of the above and others? > > thanks > > richard > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: javascript and coldfusion
I find it best to use ExtJs, for a number of reasons. One, it's bundled in ColdFusion, and I can rapidly prototype applications (using the cfajax tags), then build out full featured apps that directly resemble the prototypes. Licensing is not an issue, as we are licensed the use of the library with the server. It is also the largest (that I know of) consistent library of components available. What that means is that, aside from being a very large library of client side components, the internal make up and methods of those components are consistent as well, making it easy to code and manage because the objects and method calls maintain familiarity between each other. (not sure if I explained that well, but hopefully you get what I mean). It is also very easy to write one's own user extensions to the library, creating your own reusable set of components for specific tasks. Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 10/20/2009 8:54 AM, Richard White wrote: > Hi, > > we are doing a review of the best javascript components libraries to use with > coldfusion, e.g. jquery, extjs, dhtmlx, etc... > > what are your experiences of the above and others? > > thanks > > richard > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327370 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: More pie chart issues with CFChart
> When using in the xml style > sheet, remember to remove the attribute paintstyle="Plain" Yes, you cannot have two of the same attribute. So just replacing the line with does the trick. -Leigh ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327369 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Checking line 26 or 27
The Invoice will not change, its only ever going to be on line 26 or line 27 I tried your code but all i get is an error messag saying: You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. When i copy the invoice in here it goes all over the place > As I said, relying on line numbers doesn't seem like a robust method - > what happens if the top of the invoice is changed, and it suddenly > becomes line 15/16 or 32/33 or something else? > > Ideally you refer specifically to the location of the invoice number, > hence asking for a sample of the invoice to see what structure it uses. > > > > If you r*eally* want to deal with line numbers, then you can split the > content into an array and do something like this: > > > > > > > > > > (Or, if this is the only time you're looking at lines, use ListGetAt > with newlines as delimiters) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Problem with JSON Grid | ColdExt
no ... its not online... actually I am developing this software for my client. Any other possible ways? -- From: "Raymond Camden" Sent: Tuesday, October 20, 2009 7:34 PM To: "cf-talk" Subject: Re: Problem with JSON Grid | ColdExt > > You've got me now - is this online where we can all look? > > On Mon, Oct 19, 2009 at 9:59 PM, Arsalan Tariq Keen > wrote: >> >> Well... I tried the same pages in IE7 and there it is showing two browser >> errors. >> >> 1. 'Ext.ux.grid.Search' is null or not an object >> 2. Could not complete the operation due to Error 80020101 >> >> please help me with this, I am running real short on deadlines! >> >> -- >> From: "Arsalan Tariq Keen" >> Sent: Tuesday, October 20, 2009 8:38 AM >> To: "cf-talk" >> Subject: Re: Problem with JSON Grid | ColdExt >> >>> >>> I guess I got too carried away with FireBug :) it helped me clear out >>> many >>> bugs in my application. Now my grid is showing the content I wanted with >>> the >>> WHERE clause in CFQUERY. However, one problem persists. When I use the >>> gridsearch plugin, the grid does not showup at all and firebug is also >>> giving no error. The page with grid is autoLoaded inside of a window, >>> however when I load the same page directly in the browser window, the >>> grid >>> is displayed fine. Any suggestions? >>> >>> >>> -- >>> From: "Raymond Camden" >>> Sent: Tuesday, October 20, 2009 3:36 AM >>> To: "cf-talk" >>> Subject: Re: Problem with JSON Grid | ColdExt >>> Sounds like the library didn't load. But it worked before so I'm not sure about that. What do you see in the XHR requests? You should see one to fetch your data. Try right click/open in new tab and see if you notice a CF error. On Mon, Oct 19, 2009 at 2:33 PM, Arsalan Tariq Keen wrote: > > Camden... > > firebug is saying... > "Ext.ux.grid is undefined > http://127.0.0.1:/ext/ext-all.js > Line 32" > > > any clues? > > > -- > From: "Raymond Camden" > Sent: Monday, October 19, 2009 5:30 PM > To: "cf-talk" > Subject: Re: Problem with JSON Grid | ColdExt > >> >> http://www.insideria.com/2009/06/quick-video-example-of-firebug.html >> >> Enjoy. >> >> On Mon, Oct 19, 2009 at 12:52 AM, Arsalan Tariq Keen >> wrote: >>> >>> Hmmm... Camden, can you guide me about using Firebug... actually I >>> am >>> a >>> newbie to Ajax and I am using IE7, I guess firebug would work with >>> FireFox. >>> >>> -- >>> From: "Raymond Camden" >>> Sent: Monday, October 19, 2009 9:57 AM >>> To: "cf-talk" >>> Subject: Re: Problem with JSON Grid | ColdExt >>> What did Firebug tell you? On Sun, Oct 18, 2009 at 9:59 PM, Arsalan Tariq Keen wrote: > > Dear CFers, > > I am having trouble with the JSON gridpanel using ColdExt. The > problem > is... when I feed the grid with JSON generated from CFQUERY with a > simple > SELECT statement without any conditions, it runs fine, however if > I > add > a > WERE clause then the grid fails to populate even though JSON is > generated. Below is given my CFML code. Can anyone help me with > this > I need urgent support... I m falling short of time for my > deadlines > > Also, this gridpanel is displayed within a ExtJS window, so if I > use > the > gridSearch plugin with it, than the grid doesn't display at all > instead > a > Javascript error is given by the browser. > >>> >>> >> >> > > >>> >>> >> >> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327367 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: More pie chart issues with CFChart
Found the answer. When using in the xml style sheet, remember to remove the attribute paintstyle="Plain" from . Apparently, it supersedes it. Thanks for the help. On Fri, Oct 16, 2009 at 9:05 PM, Leigh wrote: > > > pie chart in the example. Copied the xml into my > > pie.xml on my system, ran > > it and everything is still solid. > > I suspect it might be a problem with your xml. In a quick test it worked > fine for me. I made a copy of C:\ColdFusion8\charting\styles\default_pie.xml > and changed one line: > > - Changed to > - Used the custom style: > > > > -Leigh > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
javascript and coldfusion
Hi, we are doing a review of the best javascript components libraries to use with coldfusion, e.g. jquery, extjs, dhtmlx, etc... what are your experiences of the above and others? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327365 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Problem with JSON Grid | ColdExt
You've got me now - is this online where we can all look? On Mon, Oct 19, 2009 at 9:59 PM, Arsalan Tariq Keen wrote: > > Well... I tried the same pages in IE7 and there it is showing two browser > errors. > > 1. 'Ext.ux.grid.Search' is null or not an object > 2. Could not complete the operation due to Error 80020101 > > please help me with this, I am running real short on deadlines! > > -- > From: "Arsalan Tariq Keen" > Sent: Tuesday, October 20, 2009 8:38 AM > To: "cf-talk" > Subject: Re: Problem with JSON Grid | ColdExt > >> >> I guess I got too carried away with FireBug :) it helped me clear out many >> bugs in my application. Now my grid is showing the content I wanted with >> the >> WHERE clause in CFQUERY. However, one problem persists. When I use the >> gridsearch plugin, the grid does not showup at all and firebug is also >> giving no error. The page with grid is autoLoaded inside of a window, >> however when I load the same page directly in the browser window, the grid >> is displayed fine. Any suggestions? >> >> >> -- >> From: "Raymond Camden" >> Sent: Tuesday, October 20, 2009 3:36 AM >> To: "cf-talk" >> Subject: Re: Problem with JSON Grid | ColdExt >> >>> >>> Sounds like the library didn't load. But it worked before so I'm not >>> sure about that. What do you see in the XHR requests? You should see >>> one to fetch your data. Try right click/open in new tab and see if you >>> notice a CF error. >>> >>> >>> On Mon, Oct 19, 2009 at 2:33 PM, Arsalan Tariq Keen >>> wrote: Camden... firebug is saying... "Ext.ux.grid is undefined http://127.0.0.1:/ext/ext-all.js Line 32" any clues? -- From: "Raymond Camden" Sent: Monday, October 19, 2009 5:30 PM To: "cf-talk" Subject: Re: Problem with JSON Grid | ColdExt > > http://www.insideria.com/2009/06/quick-video-example-of-firebug.html > > Enjoy. > > On Mon, Oct 19, 2009 at 12:52 AM, Arsalan Tariq Keen > wrote: >> >> Hmmm... Camden, can you guide me about using Firebug... actually I am >> a >> newbie to Ajax and I am using IE7, I guess firebug would work with >> FireFox. >> >> -- >> From: "Raymond Camden" >> Sent: Monday, October 19, 2009 9:57 AM >> To: "cf-talk" >> Subject: Re: Problem with JSON Grid | ColdExt >> >>> >>> What did Firebug tell you? >>> >>> On Sun, Oct 18, 2009 at 9:59 PM, Arsalan Tariq Keen >>> wrote: Dear CFers, I am having trouble with the JSON gridpanel using ColdExt. The problem is... when I feed the grid with JSON generated from CFQUERY with a simple SELECT statement without any conditions, it runs fine, however if I add a WERE clause then the grid fails to populate even though JSON is generated. Below is given my CFML code. Can anyone help me with this I need urgent support... I m falling short of time for my deadlines Also, this gridpanel is displayed within a ExtJS window, so if I use the gridSearch plugin with it, than the grid doesn't display at all instead a Javascript error is given by the browser. >>> >>> >> >> > > >>> >>> >> >> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327364 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Unique User Login
You should use the Application scope to determine who is logged-in. First, you need a login form. When the login form is submitted, first see if the username exists in an array that is stored in the Application scope. If the username exists in the array, deny further access. If the username does not exist in the array, then upon successful authentication, add the username to the Applciation-scoped array. Thanks, Mike -Original Message- From: Davide Campo [mailto:boy_on_ea...@yahoo.it] Sent: Tuesday, October 20, 2009 3:18 AM To: cf-talk Subject: Unique User Login Hi, i need to know how to create a Unique User Login in my app: when a user are logged in my app i want that nobody can log-in with the same username. I know that i must use the client variables but i don't understand which are the single steps to do it. thanks for help. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Shift from a single developer team to a multiple developer team
A friend of mine originally asked this question on LinkedIn's ColdFusion Programmers group but didn't get much response, so I told him I would post it here to see what you guys thought. His original post can be seen here: http://bit.ly/4aJjes Here's his post: "I have been the primary developer on an application for a number of years and we have recently gotten the additional resources to bring on 3 more programmers. I am excited and terrified. We have a Visual Source Safe environment set up for file sharing management, but I am curious if anyone has made this transition and has any tips for how to head off issues down the road. The application is somewhat modular, but certainly not to an object oriented extent. I am no project manager and am fearful that without proper planning we are going to be stepping on each other's toes an awful lot. " -- Thanks, Eric Cobb http://www.cfgears.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327362 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Checking line 26 or 27
As I said, relying on line numbers doesn't seem like a robust method - what happens if the top of the invoice is changed, and it suddenly becomes line 15/16 or 32/33 or something else? Ideally you refer specifically to the location of the invoice number, hence asking for a sample of the invoice to see what structure it uses. If you r*eally* want to deal with line numbers, then you can split the content into an array and do something like this: (Or, if this is the only time you're looking at lines, use ListGetAt with newlines as delimiters) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327361 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Checking line 26 or 27
How about something like this (untested): The variable 'invoiceNumber' should now hold whichever line has content ... ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327360 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Checking line 26 or 27
Its simply looking at line 26 for the invoice number and inputting it in a table. but on some invoives line 26 is blank, so i need it to check line 27, but only if line 26 is blank. at the minute its checking both lines and inputting info from both lines ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327359 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Checking line 26 or 27
Its simply looking at line 26 for the invoice number and inputting it in a table. but on some invoives line 26 is blank, so i need it to check line 27, but only if line 26 is blank. at the minute its checking both lines and inputting info from both lines >This doesn't sound like a very robust method. > >Are you able to provide sample invoice(s)? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327358 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Variable scope
Oops, should be: 2009/10/20 Dominic Watson > I think that having multiple applications still may not be the most ideal > solution here, depending on whether all these directories do actually come > under the definition of standalone applications. If they don't, using a > single Application.cfc at the root, you could decide whether or not to check > the logged in session based on the requested template using the onRequest() > method. Something like: > > ... > access="public"> > > > > > > > > access="private"> > > > > > > ... > > Faced with a massive legacy application, I'd look to consolidating code, > however slowly, rather than creating new code that adds to the disarray. > > HTH > > Dom > > 2009/10/20 Brian Bradley > > >> We have been using windows iis, etc. since 1999 and are trying to take >> more control since we now have so many bs membership types. It is a crazy >> project that was just handed to me. I think that I am just going to have to >> bite the bullet and use cookies to house the information and pass it on >> since there are going to be so many active applications. Was hoping somehow >> there was something I was missing about the different variable scopes. >> >> >> ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327357 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Checking line 26 or 27
This doesn't sound like a very robust method. Are you able to provide sample invoice(s)? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327356 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Variable scope
I think that having multiple applications still may not be the most ideal solution here, depending on whether all these directories do actually come under the definition of standalone applications. If they don't, using a single Application.cfc at the root, you could decide whether or not to check the logged in session based on the requested template using the onRequest() method. Something like: ... ... Faced with a massive legacy application, I'd look to consolidating code, however slowly, rather than creating new code that adds to the disarray. HTH Dom 2009/10/20 Brian Bradley > > We have been using windows iis, etc. since 1999 and are trying to take more > control since we now have so many bs membership types. It is a crazy > project that was just handed to me. I think that I am just going to have to > bite the bullet and use cookies to house the information and pass it on > since there are going to be so many active applications. Was hoping somehow > there was something I was missing about the different variable scopes. > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327355 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Checking line 26 or 27
Hi Im uploading textfiles to a database, im using the below code, as the invoive number is either on line 26 or 27. can anyone help me out here as its using info from both lines. If the invoice is on line 26 I dont want it to check line 27, but if line 26 is blank, i want it to check line 27 if that makes sence Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327354 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Unique User Login
Hi, i need to know how to create a Unique User Login in my app: when a user are logged in my app i want that nobody can log-in with the same username. I know that i must use the client variables but i don't understand which are the single steps to do it. thanks for help. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327353 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4