A
A
Alexander Sinitsyn2016-04-13 13:09:39
JavaScript
Alexander Sinitsyn, 2016-04-13 13:09:39

Are there any restrictions on sending post data?

Sending an array larger than 2000 via jquery ajax post json.

In the script, I output the length to the console, the sent array gives out, for example, 2010.
And I return the length of the array from the server, it "claims" that it received exactly 2000.

Where can it cut?

$.ajax({
  url: "ajax.php",
  type: 'post',
  dataType: 'json',
  data: {
    'from' : 'funcStart',
    'lines' : arLines
  }.....


arLines - an array that cuts, like
arLines = [
{
  'text'	:  "Строка",
  'param1'	:  ...,
  'param2'	:  ...,
  'param3'	:  ...,
  ....
}
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sinitsyn, 2016-04-13
@a_u_sinitsin

Seems to have healed.
On sending I did
In php I made json_decode
It seems to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question