Hi! I''m try to set an observer like this: agregarPropiedad: function() { var nombre = $$(''#Nombre.Campo''); var tipo = $$(''#Tipo.Campo''); alert(nombre + '': '' + tipo); Modalbox.hide(); }, nuevaPropiedad: function() { Modalbox.show(''NuevaPropiedad'', {title: ''Nueva propiedad: indique nombre y tipo'', afterLoad: function() { $$(''#NuevaPropiedad .Botonera .Ok'').first().observe(''click'', this.agregarPropiedad.bindAsEventListener(this)); }, onHide: function() { $$(''#NuevaPropiedad .Botonera .Ok'').first().stopObserving(''click'', this.agregarPropiedad.bindAsEventListener(this)); } }); }, This functions are both in the same object and I''m sure $$ (''#NuevaPropiedad .Botonera .Ok'').first() is the object I need because I try to put a function() { alert(''hi''); } instead of this.agregarPropiedad and works ok Aptana don''t raise any syntax error but firebug said this.agregarPropiedad has no properties as if agregarPropiedad don''t exists or not was a function but it is Could you point me where the problem is? 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---