admin管理员组文章数量:1405381
if i use tinymce i get
Request-URI Too Large The requested URL's length exceeds the capacity limit for this server.
my code:-
<!-- TinyMCE -->
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
//mode : "textareas",
mode : "specific_textareas",
editor_selector : "myBasicEditor",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
if(tinyMCE.get('txtourcmnt').getContent() !="" )
{
//var test = tinyMCE.get('txtourcmnt').getContent();
//alert(test);
var ordid = '<?php echo $ordid; ?>';
var cmnt = tinyMCE.get('txtourcmnt').getContent();
cmnt = encodeURIComponent(cmnt);
var typ = 'o';
}
if(cmnt != "")
{
var url = "display_ments.php?ordid="+ordid+"&cmnt="+cmnt+"&typ="+typ;
xmlHttp = GetXmlHttpObject(funcsubcatval);
xmlHttp.open("POST", url , true);
alert(url);
xmlHttp.send(null);
}
if i use tinymce i get
Request-URI Too Large The requested URL's length exceeds the capacity limit for this server.
my code:-
<!-- TinyMCE -->
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
//mode : "textareas",
mode : "specific_textareas",
editor_selector : "myBasicEditor",
theme : "simple"
});
</script>
<!-- /TinyMCE -->
if(tinyMCE.get('txtourcmnt').getContent() !="" )
{
//var test = tinyMCE.get('txtourcmnt').getContent();
//alert(test);
var ordid = '<?php echo $ordid; ?>';
var cmnt = tinyMCE.get('txtourcmnt').getContent();
cmnt = encodeURIComponent(cmnt);
var typ = 'o';
}
if(cmnt != "")
{
var url = "display_ments.php?ordid="+ordid+"&cmnt="+cmnt+"&typ="+typ;
xmlHttp = GetXmlHttpObject(funcsubcatval);
xmlHttp.open("POST", url , true);
alert(url);
xmlHttp.send(null);
}
Share
Improve this question
asked Apr 26, 2011 at 20:29
NavrukNavruk
9276 gold badges17 silver badges29 bronze badges
1
- You are implementing a dynamic URL, which seems to be exceeding the max length. Here is a great SO answer about it. – Dustin Laine Commented Apr 26, 2011 at 20:33
1 Answer
Reset to default 3It looks like you're attempting to send the contents of the editor via a querystring parameter. You should send it as a post parameter instead.
本文标签:
版权声明:本文标题:javascript - Request-URI Too Large The requested URL's length exceeds the capacity limit for this server - Stack Overflo 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744321201a2600505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论