[Rails-spinoffs] re: Good OOP and JS books / tutorials?

2006-01-12 Thread Jonathan Boutelle
>>Can anyone recommend good books, online tutorials, or any other learning >>materials for Javascript - specifically Object Oriented Programming using >>JS? I've found the following site is a nice introduction for javascript newbies who have an OO background: http://www.multitask.com.au/people/

[Rails-spinoffs] Re: Rails-spinoffs Digest, Vol 8, Issue 25

2006-01-09 Thread Jonathan Boutelle
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();

[Rails-spinoffs] Replacing an html chunk with a different html chunk

2006-01-07 Thread Jonathan Boutelle
All, I'm a big fan of the Insertion.* classes in prototype (Insertion.Before, Insertion.After, Insertion.Top, Insertion.Bottom). These classes solve the problem of adding new html to existing html in the desired place. Very useful. But what about replacing one chunk of HTML with another? Or