You're a genius ;)
Thanks again for all the help!
Blair Mitchelmore-2 wrote:
>
> 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/
>
>
--
View this message in context:
http://www.nabble.com/Gmail-style-updates-tf3269331.html#a9126037
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/