Select Box Width Not Properly Rendered After Clicking Back Button in Internet Explorer (251295)
The information in this article applies to:
- Microsoft Internet Explorer 5.01 for Windows NT 4.0
- Microsoft Internet Explorer 5.0 for Windows NT 4.0
- Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 1
- Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 2
- Microsoft Internet Explorer 5.01 for Windows 98
- Microsoft Internet Explorer 5.0 for Windows 98
- Microsoft Internet Explorer 4.01 for Windows 98 SP 2
This article was previously published under Q251295 SYMPTOMS
After you click the Back button in Internet Explorer, select boxes on a Web page may not be displayed or refreshed correctly.
WORKAROUND
To work around this problem, you can use this method on the Web server.
To handle the onload event of the page, call a different function named adjust_stage1. This function uses setTimeout to delay the call to the adjust_stage function just long enough for the rendering of the page to occur.
The code modifications include the following sample code.
Body tag:
<BODY bgColor=#ffffff onload="if (isIE()) adjust_stage1();">
Added to the Script tag:
function adjust_stage1()
{
window.setTimeout("adjust_stage()", 500);
}
You also need to set the width by using a Style tag:
<select name="Field_115" multiple size=3 style="width:200px;">
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/5/2003 |
---|
Keywords: | kbdisplay kbprb kbProgramming KB251295 |
---|
|