On Jan 13, 10:11 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Have you looked into extending the existing behavior of the
> InPlaceEditor?

I think the **** line below from controls.js is the one I want:

  handleFormSubmission: function(e) {
    ....
    new Ajax.Updater({ success: this.element }, this.url, options); //
****
    ....
   }

If I understand right, this means: upon success (from server), update
the node "this.element".  Which means the node containing the just-
edited text. I don't think I can wrap anything around it. It is almost
like I need to InPlaceEditor to
- accept some new options  e.g. the id of the node for Ajax.Updater.
- then use those in the handleFormSubmission (and perhaps elsewhere
that I have not yet realized)

I'm somewhat new to Prototype/Scriptaculous (have been mostly using
them from the server side through Seaside/Smalltalk).

Thanks.

--~--~---------~--~----~------------~-------~--~----~
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