jQuery is 15k, does animation, dom traversing and animation all in one.

Plus it's only one file. I didn't move away from CFAJAX because it uses
multiple files. I moved away from it because it's cumbersome to use. To use
jQuery I simply use one script tag to call it:
<script language="javascript" src="includes/jquery.js"
type="text/javascript"></script>

If I want to load something via AJAX I do this:
function searchByKeyword() {
        var term = $('#searchfield').val();
        $.get("includes/q.cfc?method=searchByKeyword&term=" +
term,function(result){
                eval( 'var ' + result );
                $('#title').html(r.title);
                $('#content').html(r.content);
        });
};

How much easier can it be?

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Ken Ferguson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 9:07 AM
To: CF-Talk
Subject: RE: Ajax - Whats everybody using?


Too many files? There're like 3. You seriously moved away from something
because of one or two (depending on what you moved to) extra script
tags? That sounds very odd to me. The three files are only like 65K
combined.

Thanks,
 
Ken Ferguson
214.636.6126



-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 8:36 AM
To: CF-Talk
Subject: RE: Ajax - Whats everybody using?

I moved away from CFAJAX because there were so many files to include.
For
me, it's key that the developer use as few files as possible.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Ken Ferguson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 8:19 AM
To: CF-Talk
Subject: RE: Ajax - Whats everybody using?


I'm using CFAjax and I really like it. I'm going to have to check out
some of the others, as I know each has its own benefits, but for now
CFAjax is really working quite nicely for me and I've customized some of
the internals especially for my apps...

Thanks,
 
Ken Ferguson
214.636.6126






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251617
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to