[Proto-Scripty] I've a problem with my code.

2012-01-06 Thread Matthew Goszcz
I'm a newcomer to prototype but every time I try to run the following... document.observe('dom:loaded', function() { $$('.single .addcomment .comment').each(function(element){ element.observe('click', function(event){ $$('.addcomment').each(function(elementz){

Re: [Proto-Scripty] I've a problem with my code.

2012-01-06 Thread Walter Lee Davis
On Jan 6, 2012, at 11:45 AM, Matthew Goszcz wrote: I'm a newcomer to prototype but every time I try to run the following... document.observe('dom:loaded', function() { $$('.single .addcomment .comment').each(function(element){ element.observe('click', function(event){

Re: [Proto-Scripty] I've a problem with my code.

2012-01-06 Thread Walter Lee Davis
Ugh, crunchy bug waiting to happen here: On Jan 6, 2012, at 2:08 PM, Walter Lee Davis wrote: document.observe('dom:loaded', function(evt){ var list = $$('addcomment'); $('thelist').observe('click', function(evt){ list.invoke('update','TEST2');