+ 1
Can anyone tell me the working and Use of AJAX ??
Query
2 ответов
+ 8
Ajax (abbreviation for Asynchronous JavaScript and XML) is a technique that helps web developers to update the content of a webpage without reloading it. It was first used(and developed) by Google for Gmail so that the inbox can be updated without reloading the webpage. Another example can be of www.codepen.io where the code gets implemented without reloading the webpage
+ 6
Basically this works this way:
You send an Http request with JS, as your browser do for requesting a web page load, but on server side, you provide a non-html data response, received on client side through JS, without loading a new html document... For doing so, JS provide an 'XMLHttpRequest' object, and can handle XML as root data format exchange, and plain text: usually, JSON ( another common textual data format based on JS notation and widely handled in languages ecosystem ) is a lot used, rather than first targeted XML, even if both are prevalent ^^