Re: Using Ajax to populate checkmarks?
Hi Charlie, yes i remember you were :) i have been meaning to look into jquery but have not yet taken the time. i suppose i really need to as must be getting left behind thanks for the advice, again :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321787 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using Ajax to populate checkmarks?
On Fri, Apr 17, 2009 at 1:18 PM, Richard White wrote: > >>What did you use? Or what *would* you recommend we use. > > we have built various AJAX applications and have always used JSMX > (http://www.lalabird.com/) > > it is very simple to use and many people recommended it to us when we were > first looking I may have been one of those people and... I'd like to modify my answer a bit :) I used JSMX quite a bit because, as you say, it is very lightweight and does a wonderful job of encapsulating the ugly (?) magic of the XMLHTTPRequest. But that was pre-jQuery. jQuery is really an amazing framework that handles the AJAX stuff just as easily as JSMX (IMO), but also gives you the ability to manipulate DOM elements easily. Awesome community, lots of great support (*very* high traffic mailing list, books, etc). Presumably, JSMX is working fine for you, and I wouldn't suggest going out and switching just to switch. But if you find yourself in a position where you need to do some client side manipulation, it might be an opportunity to see how jQuery can kill both of those birds with one very elegant stone. -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321774 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Using Ajax to populate checkmarks?
>What did you use? Or what *would* you recommend we use. we have built various AJAX applications and have always used JSMX (http://www.lalabird.com/) it is very simple to use and many people recommended it to us when we were first looking ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321773 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Using Ajax to populate checkmarks?
Yeah, that's not too difficult with something like jQuery. Basically you'd do a $.getJSON call to your fuseaction, return your data, then run a function to check the checkboxes based on the data you returned. That function would be dependent on how you returned the data and what your markup is like for the checkboxes. The first thing to do is make sure you're getting the JSON data back that you expect, by using Firebug or some other debugging method. Once you have that working, you can write the function that updates the checkboxes. -- Josh -Original Message- From: Dan LeGate [mailto:d...@legeek.com] Sent: Friday, April 17, 2009 11:07 AM To: cf-talk Subject: Using Ajax to populate checkmarks? Hi all, We have an application we're building that will allow users to pick a "template" user to pre-populate some checkboxes based on that user's privileges, but not on initial load of the form. Initially ALL checkboxes will be unchecked when the page loads, however, based on this lookup, it will check certain boxes without having to reload the form. User's will be selecting a template from a select menu, and that would trigger the lookup. Has anyone done anything like that, where, based on a database lookup, you are able to "check" certain checkboxes on the page AFTER THE PAGE HAS LOADED? (i.e. this is an Ajax lookup) What did you use? Or what *would* you recommend we use. Would JQuery lend itself nicely to this? We're open to anything. Have any example code? We'd also be calling it from within a Fusebox 5.5 (xml approach) app, so any hints/suggestions there would be greatly appreciated. Also, we are on ColdFusion 7, so can't use the new CFAJAX stuff. Any help is appreciated. Thanks! Dan ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321771 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4