eWebEditor為什麼會提交兩次?

來源:互聯網
上載者:User

我使用的是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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.