Posts

Showing posts with the label JSON

Working with JSON & PhoneGap Application

I Love to use JSON objects especially when working with PhoneGap Applications. I find it very comforting while transferring data from client to server and vice versa. I will explain through a simple example how I use JSON to ease the client-server data transmission. Example will be, a client asking for the details of the Employee working in the Accounts department. Basic Algo for the Example will be as follows, Client will make an Ajax request, asking for the Details of Employees working in an Accounts Department. On receiving the Request, Server will fetch all the details of the Employees working in Accounts form Database, convert these details to an Json Objects and send back to the Client. Client on Receiving the Response from the server will parse the JSON objects and convert the data in local JS variables and render the data at client side, i.e. in a table grid etc. as per requirements.  At the client Side, Include the following js files, json2.js...