I'm using the fantastic Jeditable plugin, everything is great, but
there is one problem that I can't solve.

I submit the edited value to a function called setTitle
(successHandler, errorHandler, value)
which sends the data to the server
and if everything goes well (the server responses) it calls the
successHandler

If the server responses I wanna set the title to the new value
else
I'd like to use the old value

$(".title").editable(function(value, settings)
{
        setTitle(function()
        {
            // return value
        }, function()
        {
          // return old_value
        },
        value);

 }, {
        submit  : 'OK'
});


how can I solve it?

regards,
 Viktor

Reply via email to