Hi Gurus,
Custom events on *disabled* inputs don't seem to work on IE 8, IE 9
preview, and FF 3.6.9. I've tested both Prototype 1.6 and 1.7 rc2.
They work fine on Chrome and Safari so I don't think the behavior is
by design.
Is this a prototype bug to be fixed?
The following is a simple test page. Type something like "test-of-
chained-events" in the first input box. On Chrome and Safari you'll
see Camelized and Capitalized versions in the 2 boxes below,
respectively. On IE and FF the 3rd box is always blank.
Best Regards,
Brian Hu
----------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
document.observe("dom:loaded", function() {
$('input').observe("change", function() {
var o1 = $('output1');
o1.setValue($('input').getValue().camelize());
o1.fire('test:change');
});
$('output1').observe('test:change', function() {
$('output2').setValue($
('output1').getValue().capitalize());
});
});
</script>
</head>
<body>
<input id="input" type="text" name="input"><br/>
<input id="output1" type="text" disabled name="output1"><br/>
<input id="output2" type="text" disabled name="output2"><br/>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.