JQuery is your friend:) Something like this should work: <script> $(document).ready(function(){ // Here's a reference to our form var frm = $('form##testForm'); // Assign an onChange event handler $('input[type="checkbox"]',frm).change(function(){ // Create a JSON object to use in our Ajax call var postObj = new Object(); postObj = {"action" : this.checked ? 'add':'delete',"id" : $(this).val()}; // Ajax call to our CFC, taking 'action' and 'id' as args // 'success' is indicative of a successful Ajax call, // and will show whatever message is returned from your method $.ajax({ url: "processor.cfc", type: "POST", data: postObj, success: function(msg){ $('div##msgDisplay').html(msg); }, error: function(){ $('div##msgDisplay').html('There was an error processing your request.'); } }); }); }); </script>
Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _____________________________ http://blog.cutterscrossing.com Peter Tanswell wrote: > Yeah > > > I had just been browsing a book on AJAX, but havent used it before so a > liitle bit lost. > > Any suggestions or anywhere where I can get enough info to let me do this? > > Thanks in advance. > > > > > > On 10/30/07, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: >> Sounds like a good place for a little ajax magic. When you check a box, >> it'd >> be cool to update the status without leaving or refreshing the page. >> You could also use some ajax to have the remaining time update in real >> time >> as well. >> >> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. >> Bobby Hartsfield >> http://acoderslife.com >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292329 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4