On Nov 25, 2007, at 9:54 PM, spherop wrote:
basically, i need to dynamically update the submitdata attribute of
various
editable text inputs according to events happening on the client.
specifically, the user clicks on different thumbnails, and then can
edit in
place different properties of the image (such as description, url
etc). when
Submitdata parameter can be a function. This function can dynamically
calculate values you want to pass to submit. For example:
$(".editable").editable("http://www.example.com/save.php", {
submitdata : function() {
return {foo: "bar"}
}
});
Example below will add parameter foo with value bar to request when
submitting changes.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/