在.net中应用<IFRAME id="eWebEditor1" src="../eWebEditor28/ewebeditor.asp?id=Content&style=standard1" frameBorder="0" width="550" scrolling="no" height="350" runat="server"></IFRAME>后,原来的LinkButton等提交按钮不起作用了.页面中只有一个form,去掉IFRAME后就正常了,于是我测试ewebeditor.asp页面
<Script Language=Javascript src="include/editor.js"></Script>
<Script Language=Javascript src="include/table.js"></Script>
<Script Language=Javascript src="include/menu.js"></Script>
<script language="javascript" event="onerror(msg, url, line)" for="window">
return true ; // 隐藏错误
</script>
</HEAD>
<BODY SCROLLING=no onConTextMenu="event.returnValue=false;">
<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>
<tr><td>
<%=sToolBar%>
</td></tr>
<tr><td height='100%'>
<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'>
<tr><td height='100%'>
<input type="hidden" ID="ContentEdit" value="">
<input type="hidden" ID="ModeEdit" value="">
<input type="hidden" ID="ContentLoad" value="">
<input type="hidden" ID="ContentFlag" value="0">
<iframe class="Composition" ID="eWebEditor" MARGINHEIGHT="1" MARGINWIDTH="1" width="100%" height="100%" scrolling="yes">
</iframe>
</td></tr>
</table>
经过我测试发觉:
注释了这一行:
<!--<Script Language=Javascript src="include/editor.js"></Script>-->
或修改了iframe的ID:
<iframe class="Composition" ID="eWebEditor_aa" MARGINHEIGHT="1" MARGINWIDTH="1" width="100%" height="100%" scrolling="yes">
之后
原来提交的按钮才正常提交,不知道是不是editor.js的那些代码而引起提交失效,来到这一步我就不知怎样测试下去了,请大家帮个忙.