On Apr 8, 2008, at 6:05 PM, [EMAIL PROTECTED] wrote:
Hi Mika,
Here's a sample:
http://www.rymix.co.uk/jquery/d15/inline.html
It doesn't actually _do_ anything, but if you look at server activity
you'll see that ok.php never gets called. It returns 'OK!'
Regards,
Firefox 2.0.0.13 on OSX.
I doubleclick "Editable item". Write something and then hit enter.
Firebug show request to ok.php which responds "OK!". Browsers alerts a
"sucess!".
Is the problem that you want Jeditable to submit data to server when
you click somewhere on the page (ie on blur event of the input, not
when user presses enter?). If this is the case do something like:
-cut-
$(".tabEdit").editable("ok.php", {
onblur : "submit",
event: "dblclick",
indicator: "Saving...",
tooltip: "Double-click to edit",
callback : function(value, settings) {
alert('success!');
}
});
-cut-
--
Mika Tuupola
http://www.appelsiini.net/