Don't call a method on an element unless it exists. This is a basic
defensive coding technique.

var thing = $('toto');
if (thing) thing.update('some text');

// or in one line
$$('#toto').invoke('update', 'some text');

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to