jQuery: Performing synchronous AJAX requests

As you’re making a synchronous request, that should be Example – http://api.jquery.com/jQuery.ajax/#example-3 PLEASE NOTE: Setting async property to false is deprecated and in the process of being removed (link). Many browsers including Firefox and Chrome have already started to print a warning in the console if you use this: Chrome: Synchronous XMLHttpRequest on the main … Read more

JavaScript implementation of Gzip

Edit There appears to be a better LZW solution that handles Unicode strings correctly at http://pieroxy.net/blog/pages/lz-string/index.html (Thanks to pieroxy in the comments). I don’t know of any gzip implementations, but the jsolait library (the site seems to have gone away) has functions for LZW compression/decompression. The code is covered under the LGPL.

PHP “php://input” vs $_POST

The reason is that php://input returns all the raw data after the HTTP-headers of the request, regardless of the content type. The PHP superglobal $_POST, only is supposed to wrap data that is either application/x-www-form-urlencoded (standard content type for simple form-posts) or multipart/form-data (mostly used for file uploads) This is because these are the only content types that must be supported by user agents. … Read more

error code: 523