Title: Event.observe

Should be ‘change’, not ‘onchange’.  Also, are you doing that after the elements in question have been added to the DOM (as in, farther down the page or in an onload event or something)?

 

Greg

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith Davis
Sent: Tuesday, June 27, 2006 1:08 PM
To: [email protected]
Subject: [Rails-spinoffs] Event.observe

 

I'm not sure if I'm understanding this correctly.

                <SCRIPT LANGUAGE="_javascript_" TYPE="TEXT/_javascript_">
                                Event.observe('mes_appearance_s0', 'onchange', function(e){ alert('changed me!') });
                                Event.observe('headinjury', 'click', function(e){ alert('clicked me!') });
                        </SCRIPT>

Neither of these produce any errors, nor do they work.
_____________________
Thanks,  

Keith Davis - MCSA, A+, N+
P.R.I.D.E. - Director of Computer Services
www.pridedallas.com
Work (214) 351-6600 ext. 119
Mobile (214) 906-5183

 

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

Reply via email to