I saw in the archives that someone was looking for an Ajax.Replacer


I found that the implementation suggested didn't work correctly with, so I just wanted to share my new implementation:

Ajax.Replacer = Class.create(Ajax.Updater, {
  updateContent: function(responseText) {
    var receiver = this.container[this.success() ? 'success' :
        options = this.options;

    if (!options.evalScripts) responseText =
    if (receiver = $(receiver)) receiver.replace(responseText);
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to