我使用的是Jsp版的eWebEditor編輯器,而在頁面中嵌入兩個編輯器,點擊提交時,卻發現增加時會提交兩次。暈。會不會是在同一頁面中不能同時使用兩個編輯!
於是,我去掉了其中一個,發現不會提交兩次了,正常了。額,可是這不符合需求。暈,不知道怎麼辦,又研究了幾天的FCK編輯器,可我的那個只支援圖片上傳。暈
不知道有沒有人忙下?
My Code如下:
<script type="text/javascript">
function checkForm ()
{
if(eWebEditor1.getHTML()==""){
alert("請輸入內容!");
return false;
}
return true;
}
</script>
<form id="form1" name="form1" method="post"
action="<%=request.getContextPath()%>/admin/aboutAssociation_addSave.do" >
<td class="list_right_td">
<textarea id="content" name="aboutAssociation.content" style="display:none;"></textarea>
<IFRAME ID="eWebEditor1" src="/eWebeditor/eWebEditor.jsp?id=content&style=standard"
frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
<td class="list_right_td">
<textarea id="notes" name="aboutAssociation.notes" style="display:none;" rows="10" cols="80"> </textarea>
<IFRAME ID="eWebEditor2" src="/eWebeditor/eWebEditor.jsp?id=notes&style=standard"
frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
</td>
<input name="Submit2" type="submit" class="btn" value="確 定"
onmouseover="this.className='btn_1'"
onmouseout="this.className='btn'"
onclick="return checkForm();"/>
</form>