For removing or changing a given element, these two functions (from the element object) seem the business

remove: function(element) {
    Element = $(element);
    Element.parentNode.removeChild(element);
  },

  update: function(element, html) {
    $(Element).innerHTML = html.stripScripts();
    setTimeout(function() {html.evalScripts()}, 10);
  },

Thanks to everybody for responding, and especially to Tom Fakes for pointing this out!

-Jon

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to