On Mar 29, 2007, at 4:08 PM, Mika Tuupola wrote:

>
> On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote:
>
>> Update: I've found that, when you apply $().editable on an object,  
>> it gets a new property-function called editable (that points at  
>> reset() in the plugin, but that doesn't matter now). I've tried  
>> removing this attribute like this $(myEditable).editable = null,  
>> and although I don't get any error, it doesn't work either and the  
>> property stays just there (silently laughing at me). Any ideas how  
>> to remove this property? I don't see what I might be doing wrong.
>
> Sorry for late answer. Use callback function to unbind the event  
> form element. For example:
>
> -cut-
> $(document).ready(function() {
>     $(".editable").editable("http://www.example.com/save.php";, {
>         indicator : '<img src="img/indicator.gif">',
>         type : "textarea",
>         submit : "OK",
>     }, function(value, settings) {
>         $(this).unbind(settings.event);
>     });
> });
> -cut-

Ooops. One extra comma causes Safari to bail. This should have been:

$(document).ready(function() {
     $(".editable").editable("http://www.example.com/save.php";, {
         indicator : '<img src="img/indicator.gif">',
         type : "textarea",
         submit : "OK"
     }, function(value, settings) {
         $(this).unbind(settings.event);
     });
});


--
Mika Tuupola                      http://www.appelsiini.net/~tuupola/




_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to