Hi all!
I try to create a subclass from inPlaceEditor

The only one diference is my class has a hidden field. For that I try
these:

Ajax.InPlaceEditorYanged = Class.create(Ajax.InPlaceEditor, {
        createEditField: function($super) {
                $super;
                if(this.options.hiddenName != null) {
                        var hiddenField = document.createElement("input");
                        hiddenField.type = "hidden";
                        hiddenField.name = this.options.hiddenName;
                        if(this.options.hiddenValue == null) { 
hiddenField.value =
this.element.innerHTML;         }
                        else { hiddenField.value = this.options.hiddenValue; }
                        this._controls.hiddenField = hiddenField;
                        this._form.appendChild(this._controls.hiddenField);
                }
        }
});

Can someone see/explain why these code raises:

this._controls.editor has no properties
http://portatil:9680/sistes.net2/Javascripts/controls.js
Line 646

?

Thanks a lot!!!!


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