Simple subclassing should do the job (haven't tested but it should

Ajax.Replacer = Class.create(Ajax.Updater, {
  initialize: function($super, container, url, options) {
    options = options || { };
    options.onComplete = (options.onComplete ||
      .wrap(function(proceed, transport, json) {
        proceed(transport, json);
    $super(container, url, options);

new Ajax.Replacer("someElement", "someUrl");
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to