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
Add a ment  | 

1 Answer 1

Reset to default 3

It 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.

本文标签: