Events like keydown/mouseclick/submit/change are only fired when the USER makes
a change. Not when a script does. It isn''t a prototype bug.
-Andrew Martinez
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]On
Behalf Of Francisco Calderon
Sent: Thursday, May 18, 2006 3:10 PM
To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails-spinoffs] Event.observe problem
Hello there, i have a textbox, i fill the textbox with a date from a javascript
popup calendar, im using the like this
Event.observe(''myTextBoxId'', ''change'',
function(){ alert(''epale!'');});
and is not working, if i put the alert inside the input element in the onchange
attribute it works, is that a prototype bug?
--
//
// Ing. Francisco J. Calderón S.
// fjcalderon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
// Usuario de GNU/Linux nº 349529
// Maracay, Venezuela
//
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs