:::: MENU ::::

JavaScript AJAX variables truncation issue FIX

Suppose you might have heavy ajax processing app that communicate between your server and application mostly with large json data.

It might possible your browser truncate json string post variables. May be because it might contain unecaspped & and some other querystring breaking variables.

Initially i thought, it could be php.ini issue.

So, I tried to increase size of post_max_size directive and restarted apache web server, but nothing happened.

Then I realized that JSON encoding was wrong.

Try escape () or encodeURIComponent() over json post variables to overcome this issue.

That resolved my problem.


So, what do you think ?

  •