i'm trying to use the options updateElement passing an object.

teste = new myobj('mystring');

so teste.mystring now is = 'mystring'

I have a method called,

alertsomething() {
 alert(this.mystring)
}

new Ajax.Autocompleter('contact_name', 'contact_name_auto_complete', '', {paramName: 'value', updateElement: teste.alertsomething})

but I got... undefined!!!

why?

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to