Okay, now that my credibility is shot, I have another question about
the in-place editor code.  There is this function in the
InPlaceEditor:

triggerCallback: function(cbName, arg) {
    if ('function' == typeof this.options[cbName]) {
      this.options[cbName](this, arg);
    }
  }

then the default onFailure method, which gets called from
triggerCallback, is:
onFailure: function(transport, ipe) {
      alert('Error communication with the server: ' +
transport.responseText.stripTags());
    }

Aren't the arguments backwards?  When I submit a request that fails, I
never see an alert because the "transport" variable in the onFailure
method is really the InPlaceEditor.

I tried to submit it as a bug from the scriptaculous website but do
not have the proper privileges.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to