I'm displaying a list of messages.
Each message can be checkmarked as done or not done.
When a user clicks on the checkmark I want the following to happen;
- checkbox status is toggled between checked & unchecked
- database record is updated
- HTML page is NOT reloaded
Can I do the following in javascript?
- have clicking the checkbox run a javascript function
- js function opens a new window, passes record ID as a hidden field
in a form
- new window has PHP code to do update record
- new window has js code that closes it again
- checkbox is toggled
If this is not possible, can someone suggest a different way to
accomplish the same task?