把把那個Iframe 的id
??和你一個輸入框的id 一樣就行了...
如果不清楚
請看以下代碼
-----------------------------------------------------------------------------------------------------------------
調用:
eWebEditor的調用是非常簡單,基本上只是在原來的使用中加入一行代碼。
標準調用:
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
參數說明:
/ewebeditor.asp應改為你實際安裝的路徑
參數id:相關聯的表單項名,也就是提交保存頁要引用的表單項名,多個調用時,請保證id不同,可參見后面例子
參數style:使用的樣式名,可以是標準的樣式名或自定義的樣式名,如果使用標準standard可留空
width,height:根據實際需要設置,eWebEditor將自動調整與其適應
在后臺管理中,可以得到每個樣式的最佳調用代碼
所有入口參數:(即:eWebEditor.asp?后面的參數)
id:相關聯的保存編輯內容的表單項名,也就是提交保存頁要引用的表單項名
style:使用的樣式名,可以是標準的樣式名或自定義的樣式名,如果使用標準standard可留空
originalfilename:相關聯的保存上傳原文件名列表的表單項名,必須是input類型,可以帶onchange事件[例子]
savefilename:相關聯的保存上傳保存文件名列表的表單項名,必須是input類型,可以帶onchange事件[例子]
savepathfilename:相關聯的保存上傳保存文件名(帶路徑)列表的表單項名,必須是input類型,可以帶onchange事件[例子]
例子:新增表單
你原來可能是:
<textarea name="content1" rows=10 cols=50></textarea>
現在是:
<input type="hidden" name="content1" value="">
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
或者
<textarea name="content1" style="display:none"></textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
例子:修改表單
你原來可能是:
<textarea name="content1" rows=10 cols=50><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
現在是:
<input type="hidden" name="content1" value="<%=Server.HTMLEncode(oRs("D_Content"))%>">
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
或者
<textarea name="content1" style="display:none"><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
注意事項:
eWebEditor允許在同一表單里有多個,但請保證id在整個網頁中是唯一的。即如果已經用了input name=content1第二個調用就要input name=content2之類的。
在使用textarea作為原表單項時,要加入style="display:none"。
在input修改時一定要用value="",而不是value=''。
一定要在動態加入value值時用Server.HTMLEncode()進行處理,否則有可能內容被截掉。
??和你一個輸入框的id 一樣就行了...
如果不清楚
請看以下代碼
-----------------------------------------------------------------------------------------------------------------
調用:
eWebEditor的調用是非常簡單,基本上只是在原來的使用中加入一行代碼。
標準調用:
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
參數說明:
/ewebeditor.asp應改為你實際安裝的路徑
參數id:相關聯的表單項名,也就是提交保存頁要引用的表單項名,多個調用時,請保證id不同,可參見后面例子
參數style:使用的樣式名,可以是標準的樣式名或自定義的樣式名,如果使用標準standard可留空
width,height:根據實際需要設置,eWebEditor將自動調整與其適應
在后臺管理中,可以得到每個樣式的最佳調用代碼
所有入口參數:(即:eWebEditor.asp?后面的參數)
id:相關聯的保存編輯內容的表單項名,也就是提交保存頁要引用的表單項名
style:使用的樣式名,可以是標準的樣式名或自定義的樣式名,如果使用標準standard可留空
originalfilename:相關聯的保存上傳原文件名列表的表單項名,必須是input類型,可以帶onchange事件[例子]
savefilename:相關聯的保存上傳保存文件名列表的表單項名,必須是input類型,可以帶onchange事件[例子]
savepathfilename:相關聯的保存上傳保存文件名(帶路徑)列表的表單項名,必須是input類型,可以帶onchange事件[例子]
例子:新增表單
你原來可能是:
<textarea name="content1" rows=10 cols=50></textarea>
現在是:
<input type="hidden" name="content1" value="">
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
或者
<textarea name="content1" style="display:none"></textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
例子:修改表單
你原來可能是:
<textarea name="content1" rows=10 cols=50><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
現在是:
請問各位有誰用過ewebeditor在線編輯器嗎,為什么在改代碼后總是不能提交呢。能編輯,就是不能提交,改了跟沒改一樣。
<input type="hidden" name="content1" value="<%=Server.HTMLEncode(oRs("D_Content"))%>">
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
或者
<textarea name="content1" style="display:none"><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
注意事項:
eWebEditor允許在同一表單里有多個,但請保證id在整個網頁中是唯一的。即如果已經用了input name=content1第二個調用就要input name=content2之類的。
在使用textarea作為原表單項時,要加入style="display:none"。
在input修改時一定要用value="",而不是value=''。
一定要在動態加入value值時用Server.HTMLEncode()進行處理,否則有可能內容被截掉。
<textarea name="content" style="display:none">
<%=Server.HTMLEncode(Rs("Content"))%>
</textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id= content &style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id= content &style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
