I've just read some messages relate this topic in this group and noe I
can control editMode enabling.
My ajax server side code returns the following javascript code:
myEditor.validate_error = true;
myEditor.element.innerHTML = <field value>;
Later onComplete hook is executed, so the code is:
onComplete: function(transport, element) {
if (this.validate_error)
{
this.myenterEditMode('click');
this.validate_error = false;
}
validate_error is a variable added in class definition, so I need to
clone and rewrite controls.js prototype file, Any alternative to avoid
that?
On Jul 12, 5:32 pm, symfo <[EMAIL PROTECTED]> wrote:
> Hi all,
> for 4 last days I was trying to get a staff that I'm sure is useful
> for several of us.
> I can't solve it, so I'll tell you it in this message, and I hope we
> can get a solution.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---