I think your problem might be that in your autosave plug-in you call fcn
directly. Try running fcn.apply(this) instead to manually adjust the
scope so 'this' references the DOM element again.
-blair
Daemach wrote:
> Bleh.
>
> When I pass a function in via the plugin's method with the below code, it
> doesn't recognize the "this" scope anymore. Am I not passing the function
> in correctly?
>
> $('input:[EMAIL PROTECTED]').each( function() {
> $(this).autoSave(function(){
> $.AjaxCFC({
> url: "some.cfc",
> method: "updateAttendee",
> data: {
> fid:this.id,
> field:this.id.split("_")[0],
> id:this.id.split("_")[1],
> value:this.value},
> success: function(r){}
> });
> });
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/