PHP, JSON and JavaScript Usage
Today i want to introduce you to jSON (JavaScript Object Notation), in short, it is a simple format designed to exchange data between different programming languages. I will show you how to create JavaScript object, convert it to JSON string, and send to PHP script, which will decode jSON string to readable format (for PHP). But that’s not all, PHP script will create it’s own data object encode it to jSON string and send it back. All communication between JavaScript and PHP will be done thru AJAX.
Ditio (2008). Articles>Web Design>Ajax>PHP
Ajax Tutorial (Asynchronous JavaScript + XML)
Ajax is only a name given to a set of tools that were previously existing. The main part is XMLHttpRequest, a server-side object usable in JavaScript, that was implemented into Internet Explorer since the 4.0 version.
XUL.fr (2007). Articles>Web Design>Ajax
Enabling Cross-Domain AJAX in Firefox
Unfortunately, Firefox doesn't allow cross-domain XMLHttpRequests for security reasons. While good security is a plus, this restriction can make development and testing a real chore. For those of us willing to risk the security vulnerability, here is how to bypass the cross-domain restriction once and for all.
Dirolf, Mike. Mike Dirolf's Blog (2007). Articles>Web Design>Ajax
The AJAX response: XML, HTML, or JSON?
Since my last AJAX project I've increasingly been wondering about the "ideal" output format for the AJAX response. Once you've succesfully fired an AJAX request, what sort of response should the server give? An XML document? An HTML snippet? A JSON string which is converted to a JavaScript object? Or something else? In this entry I'd like to discuss the three formats, with examples, and ask you which format you've used in your practical AJAX applications.
QuirksBlog (2005). Articles>Web Design>Ajax
There are 29 readers currently online: 2 registered users and 27 guests. Register.

![]()
![]()


![]()
![]()
![]()