首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

请问一下带有ewebeditor编辑器的表单如何验证

2012-03-13 
请教一下带有ewebeditor编辑器的表单怎么验证?有熟悉ewebeditor编辑器的吗?想请教一下。为什么客户端的表单

请教一下带有ewebeditor编辑器的表单怎么验证?
有熟悉ewebeditor编辑器的吗?想请教一下。为什么客户端的表单验证不能通过,却还能提交到服务器端?
怎样才能验证带有ewebeditor编辑器的表单呐?
比如:
表单form1
题目的文本框input name=title type=text  
文章内容文本框 <textarea name="content1" style="display:none"></textarea> <iframe id="eWebEditor1" src="../../ewebeditor/ewebeditor.asp?id=content1&style=s_blue1&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename" frameborder="0" scrolling="no" width="690" height="350"></iframe>

提交按钮 input name="fabu" type="submit" id="Add" value=" 发 布 "  
对于这样一个表单怎么验证为空》?
请教了。


[解决办法]
if (eWebEditor1.getHTML()=="") {
alert("内容不能为空!");
return false;
}

[解决办法]
验证"content1"就可以了
ewebeditor自动将值写入"content1"

热点排行