Re: ColdFusion and AJAX choices

2011-05-20 Thread Raymond Camden
I think I can probably end this conversation right now. The absolute BEST JavaScript Framework/Library/selfwritten code is... whatever allows you to get the job down in the most efficient, easy to maintain manner, and the one that addresses the needs of the users. It just so happens that for a

RE: ColdFusion and AJAX choices

2011-05-20 Thread Rick Faircloth
...@gmail.com] Sent: Friday, May 20, 2011 9:44 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices I think I can probably end this conversation right now. The absolute BEST JavaScript Framework/Library/selfwritten code is... whatever allows you to get the job down in the most efficient, easy

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
So you agree with an incorrect assesment of the size of jQuery? It's 31KB minimized, not 300k. 230k to be more accurate, and about 9000 lines of code in only one file. The minimized version is 90k and still equivalent to 9000 lines of code to be compiled. Again, if one just needs some Ajax

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
Perhaps, you could build something like this, but in reality it is much better to have 3 or 4 DIFFERENT cars for different purposes. Or even only ONE if you have only one purpose! ~| Order the Adobe Coldfusion Anthology now!

RE: ColdFusion and AJAX choices

2011-05-20 Thread Andrew Scott
Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Friday, 20 May 2011 11:44 PM To: cf-talk Subject: Re: ColdFusion and AJAX choices I think I can probably end this conversation right now. The absolute BEST JavaScript Framework/Library/selfwritten code is... whatever

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
Why reinvent the wheel over and over Please explain why writing code BEFORE the equivalent exists in some open source library is REinventing the wheel. Example: When I first looked for a good online editor I could find no one able to clean up MS Word crap. So I designed my own, about 10

Re: ColdFusion and AJAX choices

2011-05-20 Thread John M Bliss
Again, unless you're developing for the two oldest and slowest computers on the 'Net, 90k and 9000 lines of code is *nothing* and/or cached. And you get all of the stuff that's been pointed out in this thread: - a standard way of handling things so that, if you get hit by a bus and your

Re: ColdFusion and AJAX choices

2011-05-20 Thread Gerald Guido
Out of curiosity, how does all this help the OP solve his/her problem? Shouldn't this discussion be moved to a more appropriate venue? Curious-G! On Fri, May 20, 2011 at 11:31 AM, wrote: Why reinvent the wheel over and over Please explain why writing code BEFORE the equivalent exists in

Re: ColdFusion and AJAX choices

2011-05-20 Thread Michael Grant
That's an interesting anecdote, however I don't see how it relates to the topic at hand. When I build new apps I don't use my old pre jQuery codebase anymore. I've updated to use jQuery (or equiv). Why? Because it's more flexible, upgradeable, backward compatible and scalable. And for me that's

Re: ColdFusion and AJAX choices

2011-05-20 Thread Michael Grant
I think it's likely very helpful for the OP to decide which AJAX solution to employ. This discussion is showing him two sides to the js framework story which will help him make his own informed decision. On Fri, May 20, 2011 at 11:39 AM, Gerald Guido gerald.gu...@gmail.comwrote: Out of

RE: ColdFusion and AJAX choices

2011-05-20 Thread Rick Faircloth
schneeg...@internetique.com [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-1?Q?ue.com=3E?=] Sent: Friday, May 20, 2011 11:06 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices So you agree with an incorrect assesment of the size of jQuery? It's 31KB minimized

RE: ColdFusion and AJAX choices

2011-05-20 Thread Rick Faircloth
] Sent: Friday, May 20, 2011 12:02 PM To: cf-talk Subject: Re: ColdFusion and AJAX choices That's an interesting anecdote, however I don't see how it relates to the topic at hand. When I build new apps I don't use my old pre jQuery codebase anymore. I've updated to use jQuery (or equiv). Why

Re: ColdFusion and AJAX choices

2011-05-20 Thread Matt Quackenbush
On Fri, May 20, 2011 at 11:17 AM, Rick Faircloth wrote: Michael, I'm still using my Radio Shack Color Computer with 4K of RAM, an audio cassette tape for data storage and no monitor, which cost me $525 in 1982. Perhaps I would be more productive if I upgraded to 16K of RAM? :o) But he's

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
That's an interesting anecdote, however I don't see how it relates to the topic at hand. It does in the sense If you are capable of developing your own tools, it could be a better and more efficient solution. If you're not, then use some other's.

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
But he's no longer on CF5 He was on CF4.5! ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
The Production jQuery core is 31KB, minified and gzipped, This is for the packed version, but it must be unpacked before it is used on client side, which requires non-trivial client-side processing time according to the same official jQuery site. The minimized uncompressed version is exactly

Re: ColdFusion and AJAX choices

2011-05-20 Thread Matt Quackenbush
Geez. Can this thread die already? Claude * On Fri, May 20, 2011 at 11:40 AM, wrote: The Production jQuery core is 31KB, minified and gzipped, This is for the packed version, but it must be unpacked before it is used on client side, which requires non-trivial client-side processing

Re: ColdFusion and AJAX choices

2011-05-20 Thread Claude Schnéegans
90k and 9000 lines of code is *nothing* It may be nothing, but if all you need is access to Ajax facilities, it is still 900 times bigger than necessary. And since I started developing applications, I obey this fundamental principle: NEVER USE CODE 900 TIMES BIGGER THAN NECESSARY.

RE: ColdFusion and AJAX choices

2011-05-20 Thread Rick Faircloth
Subject: Re: ColdFusion and AJAX choices On Fri, May 20, 2011 at 11:17 AM, Rick Faircloth wrote: Michael, I'm still using my Radio Shack Color Computer with 4K of RAM, an audio cassette tape for data storage and no monitor, which cost me $525 in 1982. Perhaps I would be more productive if I

RE: ColdFusion and AJAX choices

2011-05-20 Thread Rick Faircloth
Good memory, Claude! -Original Message- From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-1?Q?ue.com=3E?=] Sent: Friday, May 20, 2011 12:36 PM To: cf-talk Subject: Re: ColdFusion and AJAX choices

Re: ColdFusion and AJAX choices

2011-05-20 Thread Michael Grant
I'm capable. You're capable. Most of us are capable. I just don't see a point to it. I'm also capable of grinding my own flour, but why bother when I can just buy a bag? On Fri, May 20, 2011 at 12:34 PM, wrote: That's an interesting anecdote, however I don't see how it relates to the

Re: ColdFusion and AJAX choices

2011-05-20 Thread Mark Drew
I guess all you want is to make on croissant and you have to buy a whole bag of flour. Then again, you might want to make pizza later on or maybe some tasty bread! Oh dear, this analogy has made me hungry. It reminds me EXACTLY of the Frameworks arguments that always crop up. MD On 20

Re: ColdFusion and AJAX choices

2011-05-19 Thread Andrei Kondrashev
Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. Not even speaking about its terrible performance. jQuery + infinity ~| Order the Adobe Coldfusion Anthology now!

Re: ColdFusion and AJAX choices

2011-05-19 Thread James Holmes
1) It's 90k minified 2) Those 10 lines will inevitably be 1 line of jQuery 3) Those 10 lines will work in your favourite browser; then you find that IE x has some quirk you didn't count on, etc 4) You and Claude S will best friends, I can tell -- WSS4CF - WS-Security framework for CF

Re: ColdFusion and AJAX choices

2011-05-19 Thread Michael Grant
I used to feel the exact same way! Then I realized I was wrong. On Thu, May 19, 2011 at 2:42 AM, Andrei Kondrashev adiab...@cs.com wrote: Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. Not even speaking about its terrible

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
And add to that that if you use the CDN version, most people already have it cached. I've yet to see any performance issues with it. Would things be faster w/o using a framework? Maybe - but as in all things - you make trades between performance and the ability to maintain the code. I'm SO

RE: ColdFusion and AJAX choices

2011-05-19 Thread Rick Faircloth
Where do you get 300K? jQuery core is only 229K uncompressed... 31K, minified and gzipped. www.jquery.com -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Thursday, May 19, 2011 6:45 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices I used to feel

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
2) Those 10 lines will inevitably be 1 line of jQuery What's the difference between 1 line to call a jQuery function inside a 90k JS code and 1 line to call a 10 lines function in your own JS code ? Those 10 lines will work in your favourite browser; then you find that IE x has some quirk

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
: Michael Grant [mailto:mgr...@modus.bz] Sent: Thursday, May 19, 2011 6:45 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices I used to feel the exact same way! Then I realized I was wrong. On Thu, May 19, 2011 at 2:42 AM, Andrei Kondrashev adiab...@cs.com wrote: Carrying 300K

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dominic Watson
Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Do they translate common response formats into plain js objects for you? On 19 May 2011 14:25, wrote:  2) Those 10 lines will inevitably be 1 line of

Re: ColdFusion and AJAX choices

2011-05-19 Thread Gerald Guido
Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. Not even speaking about its terrible performance. The exact same argument could be made swapping out jQuery with CF and JS with PHP. On Thu, May 19, 2011 at 2:42 AM, Andrei Kondrashev

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. I agree 100%. I do all my Ajax stuff with only two functions: ajaxGET (url) and ajaxPOST (url, sendText), exactly 10 lines each.

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Better than that : they open a new window to display the CF error dump in case the called template caused an error. Do they translate common response

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
So you agree with an incorrect assesment of the size of jQuery? It's 31KB minimized, not 300k. On Thu, May 19, 2011 at 8:17 AM, wrote:  Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. I agree 100%. I do all my Ajax stuff with only

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
On Thu, May 19, 2011 at 9:24 AM, wrote:  Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Better than that : they open a new window to display the CF error dump in case the called template caused

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Eh? How does jQuery make it easier for folks to get a CF error dump? Can you explain that? I was talking about my own code, not jQuery. ~| Order the Adobe Coldfusion Anthology now!

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dominic Watson
I'd argue with that being better. Custom handlers for different responses allows you to tailor the reaction to failures either globally or case by case - you could open a new window with an error report, show a nice message for the user, do nothing, etc. I'm sure that your ajaxGet and ajaxPost

Re: ColdFusion and AJAX choices

2011-05-19 Thread John M Bliss
To be clear, even on Edge or 56K dial-up, non-cached Jquery, with all its built-in goodness, arrives in less than a second...so...I really can't imagine why rolling your own just-enough JS would be better. At least when it comes to speed/performance. Now, certainly, if you need to do X and

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Have you used jQuery Claude? I use a couple of libraries in my system, but most of the time, there is something I need they won't do, or 90% they do I don't need. I've been developing my own functions far before jQuery existed and even the term AJAX was invented. They do exactly what I want

Re: ColdFusion and AJAX choices

2011-05-19 Thread John M Bliss
Clearly, use whatever you like...but...wrt your harvester analogy: when the harvester is free, doesn't impact speed/performance, and will handle the 10 square feet of grass and the 10 hectares of grass...I'm not seeing the drawback of using it for both. On Thu, May 19, 2011 at 9:57 AM, wrote:

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dominic Watson
jQuery (and other libraries) is well tested, well maintained, hugely popular and well thought out. All these things will have an impact on the speed of development and quality of code, especially for someone who wasn't coding before these things were commonplace. Andrei's assertion that using

RE: ColdFusion and AJAX choices

2011-05-19 Thread Rick Faircloth
@interneti=71?= =?ISO-8859-1?Q?ue.com=3E?=] Sent: Thursday, May 19, 2011 10:24 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Better than

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dave Watts
And btw - why do you show up nameles He shows up nameless for Gmail users because of a character encoding mismatch between Google's mail servers and his mail server. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
He shows up nameless for Gmail users because of a character encoding mismatch between Google's mail servers and his mail server. Actually no, My name is correctly set up in Thunderbird and all messages replied to me show my name correctly. Only those forwarded by CF_talk are messed up. The

Re: ColdFusion and AJAX choices

2011-05-19 Thread Andrei Kondrashev
Didn't really wanted to start a discussion. Just expressed my private opinion applied to this particular situation, not really trying to make any general claims. 1) It's 90k minified Only 90? Great! 2) Those 10 lines will inevitably be 1 line of jQuery No, my custom line will be 11th one.

Re: ColdFusion and AJAX choices

2011-05-19 Thread Mark Drew
The other side of the coin is that since a lot of people use JQuery, and a lot of people get it from the shared JQuery CDN, users are bound to already have it cached and therefore there will be little or no load time. What terrible performance of JQuery? I guess it depends, but if you have

Re: ColdFusion and AJAX choices

2011-05-19 Thread Steve Milburn
So you typically generate the HTML for an ajax call on the server side and send that back to the browser? From a person who is concerned about that extra second and the size of the jQuery library, this approach seems a little contradictory as those ajax responses have to be bloated due to all

Re: ColdFusion and AJAX choices

2011-05-19 Thread Michael Grant
I've been developing my own functions far before jQuery existed and even the term AJAX was invented. Most of us have. Big deal. I used to write all my own stuff too. Then I wised up. Why reinvent the wheel over and over with code that is almost certain to be of lower quality than the jQuery

Re: ColdFusion and AJAX choices

2011-05-19 Thread Michael Grant
My definition of library is something that contains millions of books, but I can come there and borrow a SINGLE book I need, rather than carry back home all millions books. Well, at less than 100k your library/millions of books analogy is fundamentally flawed. It's probably more accurate to

RE: ColdFusion and AJAX choices

2011-05-19 Thread Andrew Scott
: Friday, 20 May 2011 6:16 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices Didn't really wanted to start a discussion. Just expressed my private opinion applied to this particular situation, not really trying to make any general claims. 1) It's 90k minified Only 90? Great! 2

Re: ColdFusion and AJAX choices

2011-05-18 Thread John Allen
jQuery forever On Tue, May 17, 2011 at 6:09 PM, Michael Grant mgr...@modus.bz wrote: jQuery + infinity On Tue, May 17, 2011 at 2:04 PM, Raymond Camden rcam...@gmail.com wrote: jQuery + 10. ;) On Tue, May 17, 2011 at 12:56 PM, Carl Von Stetten vonner.li...@vonner.net wrote:

Re: ColdFusion and AJAX choices

2011-05-17 Thread Scott Stewart
JQuery... that's all you need On Tue, May 17, 2011 at 11:50 AM, Darius Florczyk dar...@cybermash.com wrote: Hi, I need to add AJAX functionality in a new project and wondering if anyone had any recommendations for the most robust, stable choice. I will be using it with CF7 but need for it

Re: ColdFusion and AJAX choices

2011-05-17 Thread James Holmes
Yes; ignore everything in that list and use jQuery. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 17 May 2011 23:50, Darius Florczyk dar...@cybermash.com wrote: Hi, I need to add AJAX functionality in a new project and wondering if anyone had any recommendations

Re: ColdFusion and AJAX choices

2011-05-17 Thread Greg Luce
jQuery. -- Greg Luce Luce Consulting Services, Inc. (863) 273-0289 On Tue, May 17, 2011 at 10:50 AM, Darius Florczyk dar...@cybermash.comwrote: Hi, I need to add AJAX functionality in a new project and wondering if anyone had any recommendations for the most robust, stable choice. I will

Re: ColdFusion and AJAX choices

2011-05-17 Thread Darius Florczyk
JQuery... that's all you need Thank you for the suggestion. Any good tutorials on using CF with jQuery that you are aware of? thanks ~| Order the Adobe Coldfusion Anthology now!

Re: ColdFusion and AJAX choices

2011-05-17 Thread Azadi Saryev
definitely jquery Azadi On 17/05/2011 23:50 , Darius Florczyk wrote: Hi, I need to add AJAX functionality in a new project and wondering if anyone had any recommendations for the most robust, stable choice. I will be using it with CF7 but need for it to be easily portable to Railo. The

Re: ColdFusion and AJAX choices

2011-05-17 Thread Russ Michaels
If you look into those solutions you mentioned, many of them do in fact use jQuery, they are basically wrappers for CF to simplify Ajax with CF. It has been years since I used any them, and I used to use AjaxCFC, and it certainly did make things a bit quicker and easier than using raw JQuery. On

Re: ColdFusion and AJAX choices

2011-05-17 Thread Gerald Guido
The jQuery docs are very good http://api.jquery.com/jQuery.get/ This is an example of how to grab content and put it into a div with the id of myDiv. $.get(getcontent.cfm, { id: 23, userId: 324 }, function(data){ $('#myDiv').html(data) }); On Tue, May 17, 2011 at 12:47 PM, Russ

Re: ColdFusion and AJAX choices

2011-05-17 Thread Larry Lyons
JQuery... that's all you need Thank you for the suggestion. Any good tutorials on using CF with jQuery that you are aware of? thanks Ray Camden's site has a bunch of excellent tutorials. You also may want to check jQuery.com - they list some there as well. But as a starter:

Re: ColdFusion and AJAX choices

2011-05-17 Thread Carl Von Stetten
jquery +1 On 5/17/2011 8:50 AM, Darius Florczyk wrote: Hi, I need to add AJAX functionality in a new project and wondering if anyone had any recommendations for the most robust, stable choice. I will be using it with CF7 but need for it to be easily portable to Railo. The need is to

Re: ColdFusion and AJAX choices

2011-05-17 Thread Raymond Camden
jQuery + 10. ;) On Tue, May 17, 2011 at 12:56 PM, Carl Von Stetten vonner.li...@vonner.net wrote: jquery +1 On 5/17/2011 8:50 AM, Darius Florczyk wrote: Hi, I need to add AJAX functionality in a new project and wondering if anyone had any recommendations for the most robust, stable

RE: ColdFusion and AJAX choices

2011-05-17 Thread Rick Faircloth
jQuery for the win... -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Tuesday, May 17, 2011 2:05 PM To: cf-talk Subject: Re: ColdFusion and AJAX choices jQuery + 10. ;) On Tue, May 17, 2011 at 12:56 PM, Carl Von Stetten vonner.li...@vonner.net wrote

Re: ColdFusion and AJAX choices

2011-05-17 Thread Darius Florczyk
Thank you for the example, I used jQuery a few times but for a larger project that was a financial application I used wddxAjax but that was 5-6 years ago :) ~| Order the Adobe Coldfusion Anthology now!

Re: ColdFusion and AJAX choices

2011-05-17 Thread Darius Florczyk
thanks much ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344597

Re: ColdFusion and AJAX choices

2011-05-17 Thread Michael Grant
jQuery + infinity On Tue, May 17, 2011 at 2:04 PM, Raymond Camden rcam...@gmail.com wrote: jQuery + 10. ;) On Tue, May 17, 2011 at 12:56 PM, Carl Von Stetten vonner.li...@vonner.net wrote: jquery +1 On 5/17/2011 8:50 AM, Darius Florczyk wrote: Hi, I need to add AJAX