json

Today’s post is on JSON and Ajax. Ajax stands for Asychronous Javascript and XML. It is used for fetching data from a server. When a webpage makes a request to a server, the server responds with some HTML and maybe some Javascript. An Ajax request takes additional information for the server, but not a new webpage. A website that uses jQuery but not Ajax may take longer to load. If a button is on website that uses Ajax, then when that button is clicked, it will fetch additional information. Some code that uses Ajax might look like this:$.ajax(“additional information”,function(){*all of the callbacks, such as success,failure,complete,etc.*}); JSON stands for JavaScript Object Notation. An Ajax request in JSON may look like this: {body:”Text”}. Next post is on Node.js.