一个关于html文本编辑器的问题 <textarea id="ta" name="content" style="width:100%" rows="20" cols="80"><%</textarea>多了<% ????? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form name=form1 action="<%=strThisASP%>" method="POST" onsubmit="checkForm(this)">这样试试! 我多铐了一个<%,不是这个的问题也不是form名称的问题。这个好像没影响吧我其他的文本框都是这么检查的,都没有问题,就是这个不行 ........<script type="text/javascript" src="htmlarea.js"></script><style type="text/css">@import url(htmlarea.css);html, body {font-family: Verdana,sans-serif;color: #000;}a:hover { color: #048; }a:active { color: #f00; }</style><script type="text/javascript">var editor = null;function initEditor() { editor = new HTMLArea("ta"); editor.generate(); return false;}function checkForm(form){ alert(form.content.value.length);}</script></head><body onload="initEditor()" ><form name=form1 action="<%=strThisASP%>" method="POST" onsubmit="return checkForm(this)"><textarea id="ta" name="content" style="width:100%" rows="20" cols="80"></textarea><input type="submit"></FORM> 这个方法我试过了,只有用asp赋给它的值它才能计算出字数,直接用手输入进去然后在页面内检查的就是没有任何反应。 javascript不能及时刷新是为什么? 这段js代码在FF下怎么不行啊? 求助,同名控件的访问 如何实现对表格的动态增加一列 一个简单的正则表达式,我都要疯了 请教javascript中有没有类似vbs中的doEvents的语句 可不可以把浏览者的浏览器的编码自动换成简体中文的? 如何在javascript函数中动态指定iframe中的src ? 请问:可否有方法读取IE下载网页时的状态 help??????????????/急 submit()出现问题,莫名其妙 有没有好的HTML编辑器,用JAVASCRIPT写的
这样试试!
也不是form名称的问题。这个好像没影响吧
我其他的文本框都是这么检查的,都没有问题,就是这个不行
<style type="text/css">
@import url(htmlarea.css);
html, body {font-family: Verdana,sans-serif;color: #000;}
a:hover { color: #048; }
a:active { color: #f00; }
</style>
<script type="text/javascript">
var editor = null;
function initEditor() {
editor = new HTMLArea("ta");
editor.generate();
return false;
}
function checkForm(form){
alert(form.content.value.length);
}
</script>
</head>
<body onload="initEditor()" >
<form name=form1 action="<%=strThisASP%>" method="POST" onsubmit="return checkForm(this)">
<textarea id="ta" name="content" style="width:100%" rows="20" cols="80"></textarea>
<input type="submit">
</FORM>