text input onChange not firing

M

ms

I have come across a problem where if a user enters the same text into
a text input after the value has been programmatically changed, the
onChange event does not fire for the second change.

The following code demonstrates this:

<html>
<body>
<input type=text value='yyy' onchange="this.value='xxx'"></input>
<input type=text value='2'></input>
</body>
</html>


- Change the value of the first text box to (eg) 'aaa', and tab away.
'aaa' will change to 'xxx'.
- Tab back to the first text box, and again enter 'aaa'. Tab away and
the text stays as 'aaa'. The onChange event does not fire. This has
also been confirmed using .net studio to break into similar code.

Is this a known bug, and is there a work-around for it?

Thanks

MS
 
F

Fred Oz

ms said:
I have come across a problem where if a user enters the same text into
a text input after the value has been programmatically changed, the
onChange event does not fire for the second change.

Which browser? Worked every time for me in Safari 1.0.3, Firefox 1.0
and IE 5.2 on Mac.

Perhaps you mean some version of IE on some version of Windows?

[...]
Is this a known bug, and is there a work-around for it?

Use a real browser? ;-)
 
M

msmsmsms782

Fred said:
ms said:
I have come across a problem where if a user enters the same text into
a text input after the value has been programmatically changed, the
onChange event does not fire for the second change.

Which browser? Worked every time for me in Safari 1.0.3, Firefox 1.0
and IE 5.2 on Mac.

Perhaps you mean some version of IE on some version of Windows?

[...]
Is this a known bug, and is there a work-around for it?

Use a real browser? ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top