It’s always good to use great tools, but you need to make sure that you use them correctly, not just trying to code “just for it to work”. For this reason I decided to write down my usual list of things I mention when taking over some legacy project or just consulting someone how [...]
Posts tagged ‘response’
Zend Framework tips and tricks
January 29th, 2010
JSON – perfect data exchange format for AJAX
March 7th, 2009
If you are using library such as jQuery, it supports AJAX responses in very different formats. For example, jQuery.get supports “xml”, “html”, “script”, “json”, “jsonp” and “text”. Which to choose?
Let’s say we have these variables, which we want to pass to JavaScript:
$array = array(
’status’ => ‘OK’,
‘message’ => ‘My status message’,
‘additional’ => array(1, 2, 3, [...]







