View Single Post
Old 11-09-2007, 01:29 PM   #3 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

It really is very easy and when you get comfortable with the structure of JavaScript and frameworks like Prototype you can produce code like the following (which is functionally the same as Karl's above).

javascript Code:
Event.observe(window, 'load', function() {
    $$("#myContainer > div").invoke("update", "I've changed!");
});

Last edited by Salathe : 11-09-2007 at 02:58 PM. Reason: spelling :(
Salathe is offline  
Reply With Quote