Text Boxes on Forms Are Not Reset When You Attach a Behavior to a TextBox Control (814763)
The information in this article applies to:
- Microsoft Internet Explorer version 6 for Windows XP
- Microsoft Internet Explorer version 6 for Windows XP SP1
- Microsoft Internet Explorer version 6 for Windows 2000
- Microsoft Internet Explorer version 6 for Windows 2000 SP1
- Microsoft Internet Explorer version 6 for Windows NT 4.0
- Microsoft Internet Explorer version 6 for Windows NT 4.0 SP1
- Microsoft Internet Explorer version 6 for Windows Millennium Edition
- Microsoft Internet Explorer version 6 for Windows Millennium Edition SP1
- Microsoft Internet Explorer version 6 for Windows 98 Second Edition
- Microsoft Internet Explorer version 6 for Windows 98 Second Edition SP1
- Microsoft Internet Explorer version 6 for Windows 98
- Microsoft Internet Explorer version 6 for Windows 98 SP1
- Microsoft Internet Explorer 5.5 for Windows 2000
- Microsoft Internet Explorer 5.5 for Windows 2000 SP 1
- Microsoft Internet Explorer 5.5 for Windows 2000 SP 2
- Microsoft Internet Explorer 5.5 for Windows NT 4.0
- Microsoft Internet Explorer 5.5 for Windows NT 4.0 SP 1
- Microsoft Internet Explorer 5.5 for Windows NT 4.0 SP 2
- Microsoft Internet Explorer 5.5 for Windows Millennium Edition
- Microsoft Internet Explorer 5.5 for Windows Millennium Edition SP 1
- Microsoft Internet Explorer 5.5 for Windows Millennium Edition SP 2
- Microsoft Internet Explorer 5.5 for Windows 98 Second Edition
- Microsoft Internet Explorer 5.5 for Windows 98 Second Edition SP 1
- Microsoft Internet Explorer 5.5 for Windows 98 Second Edition SP 2
- Microsoft Internet Explorer 5.5 for Windows 98
- Microsoft Internet Explorer 5.5 for Windows 98 SP 1
- Microsoft Internet Explorer 5.5 for Windows 98 SP 2
SYMPTOMS If you attach a behavior to a TextBox control on a Web page form, the TextBox control is not restored to its original value when you reset the
form. This symptom also occurs when an empty behavior is attached to the TextBox control. For example, if a Web page contains the following code,
and the contents of the Test.htc file is empty, the text box on the form is not
cleared when you click Reset: <html>
<head>
<style>
.FormElement
{
BEHAVIOR: url("test.htc");
}
</style>
</head>
<body>
<form>
<INPUT type="text" id=text1 name=text1 CLASS="FormElement"><BR><BR>
<INPUT type="reset" value="Reset" id=reset1 name=reset1>
</form>
</body>
</html>
CAUSEThis problem occurs because a call to pElem->DoReset() is not performed when a behavior is attached to a form element.
RESOLUTIONA supported fix is now
available from Microsoft, but it is only intended to correct the problem that
is described in this article. Apply it only to computers that are experiencing
this specific problem. This fix may receive additional testing. Therefore, if
you are not severely affected by this problem, Microsoft recommends that you
wait for the next Internet Explorer 6 service pack that contains this
fix. To resolve this problem immediately, contact Microsoft Product
Support Services to obtain the fix. For a complete list of Microsoft Product
Support Services phone numbers and information about support costs, visit the
following Microsoft Web site: NOTE: In special cases, charges that are ordinarily incurred for
support calls may be canceled if a Microsoft Support Professional determines
that a specific update will resolve your problem. The typical support costs
will apply to additional support questions and issues that do not qualify for
the specific update in question. The Global version of
this fix has the file attributes (or later) that are listed in the following
table. The dates and times for these files are listed in coordinated universal
time (UTC). When you view the file information, it is converted to local time.
To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. Date Time Version Size File name
--------------------------------------------------------
24-Mar-2003 07:47 6.0.2800.1177 2,787,840 Mshtml.dll Note Because of file dependencies, this update requires Internet
Explorer 6 Service Pack 1. WORKAROUND
Microsoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied
warranties of merchantability and/or fitness for a particular purpose. This
article assumes that you are familiar with the programming language being
demonstrated and the tools used to create and debug procedures. Microsoft
support professionals can help explain the functionality of a particular
procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have
limited programming experience, you may want to contact a Microsoft Certified
Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more
information about Microsoft Certified Partners, see the following Microsoft Web
site: For additional information about the support options available
from Microsoft, visit the following Microsoft Web site: To work around this problem, use a generic function
such as the following function to clear text boxes on a form when you click
Reset: function doReset(form)
{
for (i = 0; i < form.length; i++) {
if (form(i).type=="text") form(i).value="";
}
} STATUS Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/10/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbprb kbenv kbQFE kbIE600sp2fix kbIE600preSP2fix kbfix kbbug KB814763 |
---|
|