{"id":5515,"date":"2021-03-13T10:33:02","date_gmt":"2021-03-13T10:33:02","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=5515"},"modified":"2021-03-15T06:46:46","modified_gmt":"2021-03-15T06:46:46","slug":"a-brief-description-of-ajax","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/","title":{"rendered":"A Brief Description of AJAX"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>AJAX&nbsp;stands for Asynchronous JavaScript And XML.<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is a web development technique that helps to create a highly responsive website. by the use of AJAX, we get desktop-like software experience on the web browser. It is used in the web pages to be updated asynchronously by changing data with a web server behind the scene (in the background). This makes it possible to update parts of a web page, without reloading the whole page. It is the use of the XMLHttpRequest object to communicate with server-side scripts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest way of implementing AJAX, especially if we&#8217;re planning on communicating with servers is by using jQuery.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most people get confused with the concept that ajax is a programming language. So, let&#8217;s be very clear that <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ajax is not<\/strong> <strong>a programming language, it is a web development technique<\/strong> designed to create highly responsive\/ interactive websites. To have a better understanding of AJAX we need to have knowledge of javascript and somewhat XML. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Javascript <\/strong>is a scripting language that helps to make web pages interactive, <strong>CSS <\/strong>(Cascading style sheet) style sheet to the makeup of the webpage and <strong>XML <\/strong>(extensible markup language ) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. here <strong>javascript <\/strong>and <strong>CSS <\/strong>are essentials and <strong>XML <\/strong>is less essential for the beginners<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:26px\"><strong>Why use AJAX<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>A whole page reload is not required on each request made.<\/li><li>Sends and receives data in the background.<\/li><li>Improves speed and performance.<\/li><li>Provides a better user experience. <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:25px\"><strong>How AJAX works<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ajax uses XMLHttpRequest object (also called XHR objects) to achieve this<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>When the user sends a request from the interface then the javascript directs to the XMLHttpRequest object.<\/li><li>Then the HTTP Request is made to the server by XMLHttpRequest object.<\/li><li>Then the server interacts with the database using the JSP, PHP, Servlet, ASP.net, etc.<\/li><li>When there is a match for the request then the Data is retrieved from the database.<\/li><li>Then the Server sends XML data or JSON data to the XMLHttpRequest callback function.<\/li><li>Finally, when all the things are good to go then the web-page made (with HTML and CSS) is displayed on the browser.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"401\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png\" alt=\"\" class=\"wp-image-5552\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png 526w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30-300x229.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><figcaption>How AJAX works<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For knowing the installation\/setup  procedure link is given below <a href=\"https:\/\/www.scmgalaxy.com\/tutorials\/ajax-setup-installation\/\">https:\/\/www.scmgalaxy.com\/tutorials\/ajax-setup-installation\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AJAX&nbsp;stands for Asynchronous JavaScript And XML. It is a web development technique that helps to create a highly responsive website. [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5107,156],"tags":[5105,5108,5106],"class_list":["post-5515","post","type-post","status-publish","format-standard","hentry","category-ajax","category-websites","tag-ajax","tag-description-on-ajax","tag-what-is-ajax"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A Brief Description of AJAX - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Brief Description of AJAX - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"AJAX&nbsp;stands for Asynchronous JavaScript And XML. It is a web development technique that helps to create a highly responsive website. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-13T10:33:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-15T06:46:46+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png\" \/>\n<meta name=\"author\" content=\"abhishek k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"abhishek k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/\"},\"author\":{\"name\":\"abhishek k\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/143500a93b88a96d3c9602b3df804cb6\"},\"headline\":\"A Brief Description of AJAX\",\"datePublished\":\"2021-03-13T10:33:02+00:00\",\"dateModified\":\"2021-03-15T06:46:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/\"},\"wordCount\":393,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-30.png\",\"keywords\":[\"ajax\",\"description on ajax\",\"what is ajax\"],\"articleSection\":[\"AJAX\",\"Websites\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/\",\"name\":\"A Brief Description of AJAX - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-30.png\",\"datePublished\":\"2021-03-13T10:33:02+00:00\",\"dateModified\":\"2021-03-15T06:46:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/143500a93b88a96d3c9602b3df804cb6\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-30.png\",\"contentUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/image-30.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/a-brief-description-of-ajax\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A Brief Description of AJAX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/143500a93b88a96d3c9602b3df804cb6\",\"name\":\"abhishek k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g\",\"caption\":\"abhishek k\"},\"description\":\"Abhishek is a full-stack developer that provides the solution for the design and analysis of Website and Mobile Application. Expertise in HTML, CSS, JAVASCRIPT, LARAVEL.\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/abhishek\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A Brief Description of AJAX - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/","og_locale":"en_US","og_type":"article","og_title":"A Brief Description of AJAX - scmGalaxy","og_description":"AJAX&nbsp;stands for Asynchronous JavaScript And XML. It is a web development technique that helps to create a highly responsive website. [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/","og_site_name":"scmGalaxy","article_published_time":"2021-03-13T10:33:02+00:00","article_modified_time":"2021-03-15T06:46:46+00:00","og_image":[{"url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png","type":"","width":"","height":""}],"author":"abhishek k","twitter_card":"summary_large_image","twitter_misc":{"Written by":"abhishek k","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/"},"author":{"name":"abhishek k","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/143500a93b88a96d3c9602b3df804cb6"},"headline":"A Brief Description of AJAX","datePublished":"2021-03-13T10:33:02+00:00","dateModified":"2021-03-15T06:46:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/"},"wordCount":393,"commentCount":1,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png","keywords":["ajax","description on ajax","what is ajax"],"articleSection":["AJAX","Websites"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/","name":"A Brief Description of AJAX - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png","datePublished":"2021-03-13T10:33:02+00:00","dateModified":"2021-03-15T06:46:46+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/143500a93b88a96d3c9602b3df804cb6"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#primaryimage","url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png","contentUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/image-30.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/a-brief-description-of-ajax\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"A Brief Description of AJAX"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/143500a93b88a96d3c9602b3df804cb6","name":"abhishek k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7e05a074cc5eeb0b13b5768bbfd8f7793851f739965234dc5aaae590b9c8677f?s=96&d=mm&r=g","caption":"abhishek k"},"description":"Abhishek is a full-stack developer that provides the solution for the design and analysis of Website and Mobile Application. Expertise in HTML, CSS, JAVASCRIPT, LARAVEL.","url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/abhishek\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=5515"}],"version-history":[{"count":6,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5515\/revisions"}],"predecessor-version":[{"id":5553,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5515\/revisions\/5553"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=5515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=5515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=5515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}