scriptaculous Ajax.InPlaceEditor server side script assistance
Posted on 2007-11-26
I am having a little difficulty understanding how to pass and return information using scriptaculous' Ajax.InPlaceEditor. According to the website the format is as such:
new Ajax.InPlaceEditor( element, url, [options]);
The part that I am having a problem with is the url on the server-side. When I modify the text area, the modified info is somehow passed to this url, however it is not clear on how to process this or what variables it's using (ie, POST, GET, etc?) I am using PHP and it would be great to know if I can modify a cell from a table and pass it (using POST) to a php file which will in turn, update my mysql database (which contains that data) and return the updated value. So for instance, if I have a table as such:
| data1 | data2 | ID |
and the user updates the contents of data2, I would like to update the mysql table that contains that information, based on the ID of the row changed. I am confused as to how to pass that (as a POST) to the url given above and how it can return that info.