NicEdit数据不在POST中 [英] NicEdit data not in POST

查看:75
本文介绍了NicEdit数据不在POST中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确定在这里丢失了一些非常简单的东西,而且我已经搜索过,并且似乎找不到答案。

Im sure im missing something really simple here and i have searched and cant seem to find an answer.

使用这种简单的形式。我如何从NicEdit框中获取内容到我的HTTP POST。我所得到的是原始textarea值而不是编辑后的版本。

With this simple form. how can i get the content from the NicEdit box to my HTTP POST. All i get is the origional textarea value not the edited verison.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<h2>Test Page</h2>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
<table class="form">
<form action="test.php" enctype="multipart/form-data" method="POST">
<tr> 
    <td><textarea rows="10" cols="100" name="3">A long time ago in a galaxy far, far away...</textarea></td>
</tr>
<tr>
    <td align="center" style="padding-bottom: 10px;"><input type="submit" onclick="window.scrollTo(0,0)" name="update" value="Save Changes"></td>
</tr>
</form>
</table>
<?
print_r($_REQUEST); 
?>
</body>
</html>


推荐答案

请看我如何解决它:

<textarea id="area1" name="content"></textarea>
<INPUT type=submit name="submit" value="Send" onclick="nicEditors.findEditor('area1').saveContent();">

这篇关于NicEdit数据不在POST中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆