Eric Anderson escribió:
Garito wrote:
I would like to have a Ajax class that replace instead of update a
container
Your class has way too much copy and paste from prototype. The
Ajax.Updater takes an Insertion object as an option. There is not a
replacement insertion object but you could easily wrap Element.replace.
Or you should be able to use it directly. Element.replace is not a
constructor function but you can just pretend it is one. It shouldn't
hurt that "this" will be defined as an empty object while calling
Element.replace since it is a class method anyway and does not use
"this".
new Ajax.Updater('my_element', 'my_url', {
insertion: Element.replace
});
Eric
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Copy paste is your friend
I don't know if I understand you so much (my english is so poor)
Some code, perhaps?
have these code any utility for you?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs