
This post demonstrates and explains a request-response communication between a JavaScript client and a RESTful Web Service written in PHP. JSON is used as the mode of data transport. Images display the two most important JavaScript functions that are used in this post; these images can be enlarged by clicking on them.