BUG: OnChange Event of <SELECT> Fires Incorrectly in a FRAME When Refreshed Programmatically (319741)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5.5 SP2
- Microsoft Internet Explorer (Programming) version 6.0
This article was previously published under Q319741 SYMPTOMS
If you have a FRAMESET object with a FRAME that contains a SELECT control and an INPUT TYPE=TEXT or TEXTAREA control, and the OnChange event of the TEXTAREA control reloads the page, the OnChange event of the SELECT may fire after the page reloads. This behavior may occur even if you do not select a new item from the SELECT control.
CAUSE
This is a regression from Internet Explorer 5.5.
RESOLUTION
To work around this problem, you can use one of the following methods. The method you use depends on the usage of the elements in your application.
- Disable the Select box before the page unloads.
- If you must submit a form, check the document.readyState property in the OnChange event before you submit the form. You must check this value in the OnChange event before you submit the form because this bug may cause two submits to occur at the same time, one submit from the Select box and one submit from the text box.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For more information, visit the following MSDN Web sites:
Modification Type: | Major | Last Reviewed: | 1/6/2004 |
---|
Keywords: | kbbug kbpending KB319741 |
---|
|