paulW
Posts: 24
|
| Posted: 04/23/2009, 11:08 AM |
|
I am new to CCS, finishing a halfway done project. I have a form with a listbox element for each record shown, and i need it to update the database when the listbox value is changed. I tried a regular XHR with a javascript onchange function but CCS must mess with the filepaths because just typing :
var req = new XmlHttpRequest();
req.open("POST", path/to/filename.php, true);
doesn't work, the file isn't working out of the directory i think it is.
Is there an easier way to do this AJAX request in CCS?
|
 |
 |
materix
Posts: 161
|
| Posted: 04/25/2009, 3:58 PM |
|
One easy method is to add the database field into a hidden field, and then update the value of the hidden field with the listbox OnChange value.
|
 |
 |
|