- 论坛徽章:
- 0
|
项目遇到一个浏览器兼容问题,点击页面保存按钮后,或者选择下拉列表后,页面就显示“Internet Explorer无法显示
该页面”,使用IE7会出现此问题,forefox,opera,IE6,IE8页面正常。
asp语言,下面是一下拉列表,在页面上选择项后,页面就出现上面问题:
<%if tcWebApi_get( "Wan_Common ", "TransMode ", "h ") = "PTM " then%>
<tr>
<td class= "light-orange "> </td>
<td class= "light-orange "> </td>
<td class= "tabdata "> <div align=right> <font color= "#000000 "> <%tcWebApi_get( "String_Entry ", "WANTranModeBarrText ", "s ")%> </font> </div> </td>
<td class= "tabdata "> <div align=center> : </div> </td>
<td class= "tabdata ">
<SELECT NAME= "ptm_Barrier " SIZE= "1 " onChange= "doBarrierChange() ">
<option <% if tcWebApi_get( "WebCurSet_Entry ", "wan_pvc ", "h ") = "8 " then asp_Write( "selected ") end if %> > 0
<option <% if tcWebApi_get( "WebCurSet_Entry ", "wan_pvc ", "h ") = "9 " then asp_Write( "selected ") end if %> > 1
</SELECT> </td>
</tr>
<%end if%>
各位给些提示,很简单的一个问题,以前没做过WEB,现在项目中有一部分是WEB页面。
好像应该是doBarrierChange()里的问题,贴出来如下:
function doBarrierChange(){
var pvc;
pvc = document.Alpha_WAN.ptm_Barrier.selectedIndex;
pvc += 8;
document.Alpha_WAN.ptm_VC.value = pvc;
document.Alpha_WAN.wanVCFlag.value = 1;
document.Alpha_WAN.wanBarrierFlag.value = 1;
document.Alpha_WAN.submit();
return;
}
当我把document.Alpha_WAN.submit();屏蔽掉,选择页面对应的下拉列表后,页面不会自动刷新,当然也不会出现“Internet Explorer无法显示该页面”这样错误的提示。
另外我用wireshark抓包,选择下拉项,使用IE7向webserver发出的包和使用IE6,FF,IE8,OPERA包不同,后面4者包是相同的,IE7的请求包缺少800行左右的代码。
WEB高手帮助分析!
|
|