A
A
Alexey2014-02-03 16:37:01
PHP
Alexey, 2014-02-03 16:37:01

CKEditor jqury + ajax POST method fails?

There is a text editor CKEditor, from which I pull all the content by calling the .val() function (why .val() and not CKEDITOR.instances.editor1.getData()?, put the extension adapter->jquery ) after I check the console.log or alert, I get all the code as it should. After I pass an array of various data using ajax:

$.ajax({
        type: "POST",
        data: "h1="+h1
            +"&url="+url
            +"&state="+state....
url: "/ajax/admin/",
        cache: false,
        success: function(result){
            alert(result);

        }


In the controller_ajax I catch all the data and output print_r($_POST);
So this is what the array shows me, all array data is displayed correctly except for the two fields that I pull from CKEditor in the first field, only half when, and in the second field, instead of a large piece, just a tag with which this array begins. The main thing is that before sending, I check the array, everything is OK, after I receive it in PHP, such a thing happens. What could be the problem? Could there be a problem with the limit on POST/GET requests? I'm working on a local Xammp server and sort of corrected the post_max_size.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2014-02-03
@alexey_sysoev

Try instead

data: "h1="+h1
            +"&url="+url
            +"&state="+state....

do
There is a suspicion that the problem is in urlencode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question