I would say all you need to do is get the checked status from the
checkbox, and pass it to the server-side script. Then, to be sure, I
would query the database, or catch any errors, then return the checked
status back to the page.
If there was an error, or the DB was already set (perhaps by another
user) you can display a message.
M!ke
-----Original Message-----
From: Brian Gilbert [mailto:
cfaussienator@...]
Sent: Monday, November 07, 2005 4:38 PM
To: Ajax
Subject: Using AJAX to make tickbox status update a DB?
Is it possible using AJAX to update a database (insert or delete) based
on the status of a tickbox without having to submit the whole page/form?
I've tried to find an example using google but didn't have any luck so
far.
Thanks,
Brian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49Message:
http://www.houseoffusion.com/lists.cfm/link=i:47:1986Archives:
http://www.houseoffusion.com/cf_lists/threads.cfm/47Subscription:
http://www.houseoffusion.com/lists.cfm/link=s:47Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.47Donations & Support:
http://www.houseoffusion.com/tiny.cfm/54