<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ajax Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/ajax/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Feb 2026 07:13:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>jQuery Revisited: A Lightweight Path to Interactive Web Development</title>
		<link>https://www.scmgalaxy.com/tutorials/jquery-revisited-a-lightweight-path-to-interactive-web-development/</link>
					<comments>https://www.scmgalaxy.com/tutorials/jquery-revisited-a-lightweight-path-to-interactive-web-development/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Mon, 05 May 2025 06:28:29 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ClientSide]]></category>
		<category><![CDATA[DOMManipulation]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[JavaScriptLibrary]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jQueryGuide]]></category>
		<category><![CDATA[LegacySupport]]></category>
		<category><![CDATA[UIEffects]]></category>
		<category><![CDATA[WebDevelopment]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12218</guid>

					<description><![CDATA[<p>What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library designed to simplify HTML document traversal, manipulation, event [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/jquery-revisited-a-lightweight-path-to-interactive-web-development/">jQuery Revisited: A Lightweight Path to Interactive Web Development</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="848" height="475" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-7.png" alt="" class="wp-image-12219" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-7.png 848w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-7-300x168.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-7-768x430.png 768w" sizes="(max-width: 848px) 100vw, 848px" /></figure>



<h3 class="wp-block-heading">What is jQuery?</h3>



<p class="wp-block-paragraph"><strong>jQuery</strong> is a fast, small, and feature-rich <strong>JavaScript library</strong> designed to simplify HTML document traversal, manipulation, event handling, animation, and Ajax. Released in 2006 by <strong>John Resig</strong>, jQuery dramatically streamlined JavaScript development at a time when cross-browser inconsistencies and verbose syntax were common obstacles.</p>



<p class="wp-block-paragraph">At its core, jQuery allows developers to do more with less code by providing a concise syntax to select elements, handle events, modify the DOM, and interact with web servers. For example, a complex JavaScript function to hide an element can be written simply as <code>$("#element").hide();</code> in jQuery.</p>



<p class="wp-block-paragraph">While modern JavaScript (ES6+), frameworks like React, and tools like Fetch API have reduced jQuery&#8217;s dominance, <strong>jQuery remains widely used</strong> in legacy applications, content management systems like WordPress, Shopify themes, and many quick-deploy projects due to its simplicity, reliability, and widespread browser support.</p>



<p class="wp-block-paragraph">In 2026, jQuery continues to be maintained and updated, with the latest version (v3.7+) optimized for performance and compatibility with modern browsers, while still offering backward support for older ones.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Major Use Cases of jQuery</h3>



<p class="wp-block-paragraph">Even in the age of SPA frameworks and Web Components, <strong>jQuery retains practical relevance</strong> in various scenarios due to its lightweight footprint and ease of use.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>1. DOM Manipulation</strong></h4>



<p class="wp-block-paragraph">jQuery makes selecting and modifying HTML elements intuitive and concise. Tasks like changing text, styles, or structure can be done in a single line.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;#title&quot;).text(&quot;Updated Title&quot;);
$(&quot;.item&quot;).addClass(&quot;active&quot;);

</pre></div>


<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>2. Event Handling</strong></h4>



<p class="wp-block-paragraph">It offers a simplified syntax for attaching events to elements, with support for event delegation and chaining.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;button&quot;).on(&quot;click&quot;, function() {
    alert(&quot;Button clicked!&quot;);
});

</pre></div>


<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>3. AJAX Requests</strong></h4>



<p class="wp-block-paragraph">jQuery’s <code>$.ajax()</code> and shorthand methods like <code>$.get()</code> and <code>$.post()</code> make it easy to interact with APIs or load data asynchronously.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$.get(&quot;/api/data&quot;, function(response) {
    $(&quot;#data&quot;).html(response);
});

</pre></div>


<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>4. Animations and Effects</strong></h4>



<p class="wp-block-paragraph">Built-in animations like <code>.fadeIn()</code>, <code>.slideToggle()</code>, and <code>.animate()</code> provide smooth visual transitions without CSS.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>5. Cross-Browser Compatibility</strong></h4>



<p class="wp-block-paragraph">jQuery was initially built to handle browser inconsistencies, especially between Internet Explorer and modern browsers. It still abstracts compatibility issues that may arise in older environments.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>6. Legacy and CMS Projects</strong></h4>



<p class="wp-block-paragraph">Platforms like <strong>WordPress, Magento, Joomla</strong>, and many enterprise intranet applications still rely on jQuery for plugin behavior, form validation, and UI enhancements.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1024" height="513" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-8.png" alt="" class="wp-image-12220" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-8.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-8-300x150.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/05/image-8-768x385.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">How jQuery Works: Architecture &amp; Internals</h3>



<p class="wp-block-paragraph">jQuery is essentially a wrapper around native JavaScript functions. It is built on a <strong>modular architecture</strong>, meaning it consists of independent components (selectors, effects, AJAX, events, etc.) that work together through a central core.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f539.png" alt="🔹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>The <code>$</code> Function</strong></h4>



<p class="wp-block-paragraph">At the heart of jQuery is the <code>$()</code> function. This acts as a factory method that returns a <strong>jQuery object</strong>, wrapping one or more DOM elements and extending them with jQuery methods.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
var paragraph = $(&quot;p&quot;); // Returns a jQuery object

</pre></div>


<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f539.png" alt="🔹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Chaining</strong></h4>



<p class="wp-block-paragraph">One of jQuery’s architectural strengths is <strong>method chaining</strong>. This allows multiple methods to be called on the same jQuery object without repeating the selector.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;#box&quot;).css(&quot;color&quot;, &quot;red&quot;).slideUp(1000).slideDown(1000);

</pre></div>


<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f539.png" alt="🔹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Sizzle Selector Engine</strong></h4>



<p class="wp-block-paragraph">jQuery uses the <strong>Sizzle</strong> selector engine (pre-v3.0) to handle complex CSS-style selectors. In newer versions, jQuery uses <code>querySelectorAll()</code> natively but still wraps it for added functionality.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f539.png" alt="🔹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Event Delegation and Binding</strong></h4>



<p class="wp-block-paragraph">jQuery normalizes event handling across browsers using a consistent event model. Internally, it attaches listeners using JavaScript’s <code>addEventListener()</code> and wraps it with helper logic for backward compatibility.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f539.png" alt="🔹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>AJAX Abstraction</strong></h4>



<p class="wp-block-paragraph">jQuery’s AJAX module abstracts the native <code>XMLHttpRequest</code> object, wrapping it with robust error handling, callbacks, and JSON support.</p>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f539.png" alt="🔹" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Plugin Architecture</strong></h4>



<p class="wp-block-paragraph">Developers can write <strong>custom plugins</strong> to extend jQuery&#8217;s functionality by attaching methods to <code>$.fn</code>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Basic Workflow of jQuery</h3>



<p class="wp-block-paragraph">Using jQuery in a project is a relatively straightforward process, especially for adding interactivity to a static HTML page. Here&#8217;s a typical workflow:</p>



<ol class="wp-block-list">
<li><strong>Include jQuery</strong>: Add the jQuery library via CDN or locally.</li>



<li><strong>DOM Ready Handler</strong>: Wrap your code inside <code>$(document).ready()</code> to ensure the DOM is fully loaded before manipulation.</li>



<li><strong>Select Elements</strong>: Use CSS-style selectors to find HTML elements.</li>



<li><strong>Apply Methods</strong>: Use methods to manipulate DOM, bind events, or animate elements.</li>



<li><strong>Test Across Browsers</strong>: Ensure behavior is consistent across devices.</li>
</ol>



<p class="wp-block-paragraph">This model fits well for smaller projects, prototypes, or enhancing existing static websites.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Step-by-Step Getting Started Guide for jQuery</h3>



<p class="wp-block-paragraph">Let’s walk through building your first jQuery-enhanced web page.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Step 1: Set Up Your HTML Page</strong></h4>



<p class="wp-block-paragraph">Create a file called <code>index.html</code> with the following content:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang=&quot;en&quot;&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset=&quot;UTF-8&quot;&amp;gt;
    &amp;lt;title&amp;gt;My jQuery Demo&amp;lt;/title&amp;gt;
    &amp;lt;script src=&quot;https://code.jquery.com/jquery-3.7.1.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1 id=&quot;title&quot;&amp;gt;Welcome&amp;lt;/h1&amp;gt;
    &amp;lt;button id=&quot;changeText&quot;&amp;gt;Click Me&amp;lt;/button&amp;gt;
    &amp;lt;div id=&quot;message&quot; style=&quot;display:none;&quot;&amp;gt;Hello from jQuery!&amp;lt;/div&amp;gt;

    &amp;lt;script src=&quot;script.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

</pre></div>


<hr class="wp-block-separator has-alpha-channel-opacity">



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Step 2: Create a jQuery Script</strong></h4>



<p class="wp-block-paragraph">In the same folder, create <code>script.js</code>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(document).ready(function() {
    $(&quot;#changeText&quot;).click(function() {
        $(&quot;#title&quot;).text(&quot;jQuery is Working!&quot;);
        $(&quot;#message&quot;).fadeIn();
    });
});

</pre></div>


<ul class="wp-block-list">
<li><code>$(document).ready()</code> ensures the script runs after the DOM is loaded.</li>



<li><code>$("#changeText")</code> selects the button by ID.</li>



<li><code>.click()</code> binds a click event.</li>



<li><code>.text()</code> updates content.</li>



<li><code>.fadeIn()</code> smoothly reveals the hidden message.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Step 3: Open in Browser</strong></h4>



<p class="wp-block-paragraph">Double-click <code>index.html</code> to launch in a browser. Clicking the button should change the heading and show a hidden message—your first jQuery interaction!</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Step 4: Extend Functionality</strong></h4>



<p class="wp-block-paragraph">Try adding more effects:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;#message&quot;).slideToggle();

</pre></div>


<p class="wp-block-paragraph">Or an AJAX example:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$.get(&quot;https://api.github.com/users/octocat&quot;, function(data) {
    console.log(&quot;GitHub Name: &quot; + data.name);
});

</pre></div>


<hr class="wp-block-separator has-alpha-channel-opacity">



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Step 5: Learn the jQuery API</strong></h4>



<p class="wp-block-paragraph">Explore more:</p>



<ul class="wp-block-list">
<li><a href="https://api.jquery.com/">https://api.jquery.com</a></li>



<li>Learn about <code>.each()</code>, <code>.append()</code>, <code>.val()</code>, <code>.on()</code>, and more.</li>



<li>Create plugins with <code>$.fn.myPlugin = function() {...}</code>.</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/jquery-revisited-a-lightweight-path-to-interactive-web-development/">jQuery Revisited: A Lightweight Path to Interactive Web Development</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/jquery-revisited-a-lightweight-path-to-interactive-web-development/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use Pitfall With fadeIn fadeOut vs. fadeTo in jQuery?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-fade-in-jquery-using-html-css-jquery/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-fade-in-jquery-using-html-css-jquery/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 20 Sep 2021 12:49:54 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fadding]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jquery]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9086</guid>

					<description><![CDATA[<p>In this blog, I am using fade in jQuery with help of&#160;HTML&#160;&#38;&#160;CSS. So, Let’s create an&#160;index.html &#38; style.css&#160;below-</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-fade-in-jquery-using-html-css-jquery/">How to use Pitfall With fadeIn fadeOut vs. fadeTo in jQuery?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this blog, I am using fade in jQuery with help of&nbsp;<strong>HTML&nbsp;</strong>&amp;&nbsp;<strong>CSS</strong>. So, Let’s create an&nbsp;<strong>index.html &amp; style.css&nbsp;</strong>below-</p>



<script src="https://gist.github.com/ajcotocus/f1d37fdf62aefc57804172013b1fe37f.js"></script>



<script src="https://gist.github.com/ajcotocus/35cac064771d5b95a6af12fe01b54f30.js"></script>



<script src="https://gist.github.com/ajcotocus/e9d02cba6baf845d9c29550d7c46d2a9.js"></script>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="227" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-91-1024x227.png" alt="" class="wp-image-9090" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-91-1024x227.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-91-300x66.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-91-768x170.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-91-1536x340.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-91.png 1689w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Fading effect using HTML, CSS &amp; Jquery</figcaption></figure>



<script src="https://gist.github.com/ajcotocus/b9cc08f5c3753d27a88d4b1f49e5a2d8.js"></script>



<script src="https://gist.github.com/ajcotocus/103c650a1946f54e9026d1564afd96e4.js"></script>



<script src="https://gist.github.com/ajcotocus/e7ae625b6ea4f8ceb9a615d7b72e6bd4.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="212" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-92-1024x212.png" alt="" class="wp-image-9093" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-92-1024x212.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-92-300x62.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-92-768x159.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-92-1536x317.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-92.png 1655w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>Fade Effect using HTML, CSS &amp; jQuery</figcaption></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-fade-in-jquery-using-html-css-jquery/">How to use Pitfall With fadeIn fadeOut vs. fadeTo in jQuery?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-fade-in-jquery-using-html-css-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use JQuery AJAX Method to Call an API?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-jquery-ajax-method-to-call-an-api/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-jquery-ajax-method-to-call-an-api/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 29 Jun 2021 04:46:58 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6580</guid>

					<description><![CDATA[<p>In&#160;this&#160;blog&#160;in&#160;am&#160;going&#160;to&#160;explain&#160;that&#160;How&#160;to&#160;use&#160;JQuery&#160;AJAX&#160;Method&#160;to&#160;Call&#160;an&#160;API&#160;for&#160;to&#160;load&#160;data&#160;from&#160;external&#160;website&#160;or&#160;external&#160;File&#160;of&#160;etc,&#160;by&#160;calling&#160;APIs,&#160;and&#160;get&#160;the&#160;response&#160;in&#160;JSON&#160;or&#160;XML&#160;formats. So&#160;first&#160;thing&#160;I&#160;am&#160;going&#160;to&#160;create&#160;a&#160;html&#160;file&#160;and&#160;import&#160;jquery&#160;cdn.&#160;If&#160;you&#160;want&#160;to&#160;bootstrap&#160;css,&#160;&#38;&#160;js&#160;cdn&#160;the&#160;you&#160;can&#160;copy&#160;from&#160;this&#160;link Click Here as&#160;below- In&#160;this&#160;code&#160;I&#160;am&#160;using&#160;bootstrap&#160;cdn&#160;with&#160;jQuery&#160;cdn&#160;after&#160;that&#160;a&#160;Script&#160;tag&#160;in&#160;this&#160;script&#160;tag&#160;ajax&#160;function&#160;call&#160;with&#160;json&#160;data&#160;for&#160;getting&#160;data&#160;showing&#160;in&#160;cosole.log.&#160;If&#160;you&#160;using&#160;first&#160;time&#160;jQuery&#160;then&#160;you&#160;can&#160;right&#160;button&#160;of&#160;mouse&#160;and&#160;select&#160;inspect&#160;(Ctrl+shift+i)&#160;after&#160;that&#160;showing&#160;below&#160;tab&#160;then&#160;select&#160;console&#160;tab.&#160;When&#160;you&#160;click&#160;Here&#160;button&#160;from&#160;document&#160;then&#160;showing&#160;all&#160;data&#160;which&#160;retrieve.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-jquery-ajax-method-to-call-an-api/">How to use JQuery AJAX Method to Call an API?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In&nbsp;this&nbsp;blog&nbsp;in&nbsp;am&nbsp;going&nbsp;to&nbsp;explain&nbsp;that&nbsp;How&nbsp;to&nbsp;use&nbsp;JQuery&nbsp;AJAX&nbsp;Method&nbsp;to&nbsp;Call&nbsp;an&nbsp;API&nbsp;for&nbsp;to&nbsp;load&nbsp;data&nbsp;from&nbsp;external&nbsp;website&nbsp;or&nbsp;external&nbsp;File&nbsp;of&nbsp;etc,&nbsp;by&nbsp;calling&nbsp;APIs,&nbsp;and&nbsp;get&nbsp;the&nbsp;response&nbsp;in&nbsp;JSON&nbsp;or&nbsp;XML&nbsp;formats. So&nbsp;first&nbsp;thing&nbsp;I&nbsp;am&nbsp;going&nbsp;to&nbsp;create&nbsp;a&nbsp;html&nbsp;file&nbsp;and&nbsp;import&nbsp;jquery&nbsp;cdn.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;bootstrap&nbsp;css,&nbsp;&amp;&nbsp;js&nbsp;cdn&nbsp;the&nbsp;you&nbsp;can&nbsp;copy&nbsp;from&nbsp;this&nbsp;link <a rel="noreferrer noopener" href="https://getbootstrap.com/docs/4.6/getting-started/introduction/" data-type="URL" data-id="https://getbootstrap.com/docs/4.6/getting-started/introduction/" target="_blank">Click Here</a> as&nbsp;below-</p>



<script src="https://gist.github.com/ajcotocus/5c12c0abb50fa54ae9ba9b2ea64e16e8.js"></script>



<p class="wp-block-paragraph">In&nbsp;this&nbsp;code&nbsp;I&nbsp;am&nbsp;using&nbsp;bootstrap&nbsp;cdn&nbsp;with&nbsp;jQuery&nbsp;cdn&nbsp;after&nbsp;that&nbsp;a&nbsp;Script&nbsp;tag&nbsp;in&nbsp;this&nbsp;script&nbsp;tag&nbsp;ajax&nbsp;function&nbsp;call&nbsp;with&nbsp;json&nbsp;data&nbsp;for&nbsp;getting&nbsp;data&nbsp;showing&nbsp;in&nbsp;cosole.log.&nbsp;If&nbsp;you&nbsp;using&nbsp;first&nbsp;time&nbsp;jQuery&nbsp;then&nbsp;you&nbsp;can&nbsp;right&nbsp;button&nbsp;of&nbsp;mouse&nbsp;and&nbsp;select&nbsp;inspect&nbsp;(Ctrl+shift+i)&nbsp;after&nbsp;that&nbsp;showing&nbsp;below&nbsp;tab&nbsp;then&nbsp;select&nbsp;console&nbsp;tab.&nbsp;When&nbsp;you&nbsp;click&nbsp;Here&nbsp;button&nbsp;from&nbsp;document&nbsp;then&nbsp;showing&nbsp;all&nbsp;data&nbsp;which&nbsp;retrieve.</p>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="139" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/inspect-for-console-1024x139.png" alt="" class="wp-image-6584" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/inspect-for-console-1024x139.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/inspect-for-console-300x41.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/inspect-for-console-768x104.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/inspect-for-console-1536x209.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/inspect-for-console.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="527" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/console-data-in-ajax-1024x527.png" alt="" class="wp-image-6585" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/console-data-in-ajax-1024x527.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/console-data-in-ajax-300x154.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/console-data-in-ajax-768x395.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/console-data-in-ajax-1536x790.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/console-data-in-ajax.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-jquery-ajax-method-to-call-an-api/">How to use JQuery AJAX Method to Call an API?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-jquery-ajax-method-to-call-an-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>CRUD Operations in Laravel using ajax</title>
		<link>https://www.scmgalaxy.com/tutorials/crud-operations-in-laravel-using-ajax/</link>
					<comments>https://www.scmgalaxy.com/tutorials/crud-operations-in-laravel-using-ajax/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra K]]></dc:creator>
		<pubDate>Tue, 11 May 2021 16:34:09 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[crud]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[modal]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=6182</guid>

					<description><![CDATA[<p>Step 1 &#8211; Install Laravel 5.8 First we want to Download Laravel 5.8 version for developing Crud application using Ajax. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/crud-operations-in-laravel-using-ajax/">CRUD Operations in Laravel using ajax</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Step 1</strong> &#8211; Install Laravel 5.8</p>



<p class="wp-block-paragraph">First we want to Download Laravel 5.8 version for developing Crud application using Ajax. For this you have to open your terminal or command prompt and write below command. It will download Laravel 5.8 in your define directory.</p>



composer create-project laravel/laravel=5.8 ajax-crud &#8211;prefer-dist



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="743" height="122" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/25.jpg" alt="" class="wp-image-6183" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/25.jpg 743w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/25-300x49.jpg 300w" sizes="auto, (max-width: 743px) 100vw, 743px" /></figure>



<p class="wp-block-paragraph"><strong>Step 2</strong> &#8211; Laravel 5.8 Database Connection</p>



<p class="wp-block-paragraph">Once Laravel 5.8 has been downloaded then after we have to make Database connection. For this first you have to open <strong>config/database.php</strong> and define Mysql Database configuration.</p>



<script src="https://gist.github.com/dharmu9898/a76d548c8ab44393cc6e01f6e7c4bce0.js"></script>



<p class="wp-block-paragraph">After this you have to open <strong>.env</strong> file and in that file also you have to define Mysql Database configuration, which you can find below.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="301" height="133" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/25-1.jpg" alt="" class="wp-image-6184"/></figure>



<p class="wp-block-paragraph"><strong>Step 3</strong> &#8211; Create Table</p>



<p class="wp-block-paragraph">For Create Crud Application, first we have to create Mysql table. For create Mysql table from Laravel 5.8 application we have to write following artisan command in your command prompt.</p>



php artisan make:migration create_ajax_cruds_table &#8211;create=ajax_cruds



<p class="wp-block-paragraph">Above command will command create migration file in <strong>database/migrations</strong> folder. In that file we have to define table column which you want to define in Mysql table. Below you can find source code of migration file.</p>



<script src="https://gist.github.com/dharmu9898/0a7e2ea0a775da52337a1c494b32ea78.js"></script>



<p class="wp-block-paragraph">Lastly for create Mysql table in your Database, you have to write following command in your terminal or command prompt. It will create <strong>ajax_cruds</strong> table in your define Database.</p>



php artisan migrate



<p class="wp-block-paragraph"><strong>Step 4</strong> &#8211; Create Model in Laravel 5.8</p>



<p class="wp-block-paragraph">Now we want to make Model in Laravel 5.8, For this you have to write following command in your terminal or command prompt. It will create model file here <strong>app/AjaxCrud.php</strong>.</p>



php artisan make:model AjaxCrud -m



<p class="wp-block-paragraph">Under this <strong>app/AjaxCrud.php</strong> file, you have to define table column for database operation which source code you can find below.</p>



<script src="https://gist.github.com/dharmu9898/556f38ce8a7ca5b2a556dc5d990c4e77.js"></script>



<p class="wp-block-paragraph"><strong>Step 5</strong> &#8211; Create Blades Files</p>



<p class="wp-block-paragraph">For display output data in browser, in Laravel 5.8 we have to create blade file in <strong>resources/views</strong> folder. Under this folder we have create <strong>ajax_index.blade.php</strong> file. In this file you can find HTML code and jQuery code for display data in jQuery Datatable.</p>



<script src="https://gist.github.com/dharmu9898/3968e27ea73fbabcd031bac639b948c2.js"></script>



<p class="wp-block-paragraph"><strong>Step 6</strong> &#8211; Set Resource Route</p>



<script src="https://gist.github.com/dharmu9898/9f54ca5c26e15cf6d0be57361f50f2fd.js"></script>



<p class="wp-block-paragraph"><strong>Step</strong> 7 &#8211; Create Controller in Laravel 5.8</p>



<p class="wp-block-paragraph">Lastly, We need to set resource route for ajax crud application. For this we have to open <strong>routes/web.php</strong> file.</p>



<p class="wp-block-paragraph">Controller mostly used for handle HTTP request. Create new controller in Laravel 5.8 framework, we have to write following command.</p>



php artisan make:controller AjaxCrudController &#8211;resource



<p class="wp-block-paragraph">This command will create&nbsp;<strong>AjaxCrudController.php</strong>&nbsp;file in&nbsp;<strong>app/Http/Controllers</strong>&nbsp;folder. In this controller file you can find all in build required method for do Crud operation. Under this controller for use AjaxCrud model, first we have to define&nbsp;<strong>use App\AjaxCrud;</strong>&nbsp;this statement at the header of the AjaxCrudController.php file.</p>



<p class="wp-block-paragraph"><strong>index() &#8211;&nbsp;</strong>This is the root method of this controller. This method will received Ajax request for load data in jQuery DataTables plugin. If this method received ajax request then it will load data in jQuery DataTables plugin. In this ajax block you can find yajra datatables package code.</p>



<p class="wp-block-paragraph"><strong>store() &#8211;&nbsp;</strong>For Insert Data into Mysql table using ajax in Laravel 5.8, here we have use store() method of&nbsp;<strong>AjaxCrudController.php</strong>. This method will received Ajax request for insert or add data. Under this method first it has validate for data. If there is any validation fails then it will send response to ajax request in JSON format. But there is no any validation fails then it will continue execution of code and first it will upload profile image of user and then after it will insert data into mysql table. And lastly it will send json response to ajax request.</p>



<p class="wp-block-paragraph"><strong>edit() &#8211;&nbsp;</strong>This method is used for fetch single row of data from mysql table, and send data to ajax request in json formate which will be display under Bootstrap modal form.</p>



<p class="wp-block-paragraph"><strong>update() &#8211; </strong>This method has received ajax request for update existing mysql table data. In this method first it check user has select profile image or not. If User is select image then in this method it will validate form data with selected file is image or not. But Suppose user has not select image then it will only validate textbox data only. If there is any validation error occur then it will send data to ajax request in json formate. After successfully validate form data then it will update data.</p>



<p class="wp-block-paragraph"><strong>destroy() &#8211; </strong>For delete or remove mysql data, ajax request will be send to destroy() method. It will delete or remove mysql data in Laravel 5.8 by using ajax.</p>



<script src="https://gist.github.com/dharmu9898/9df68fedb88e7746a26e1ad4494304d1.js"></script>



<p class="wp-block-paragraph">For run Laravel 5.8 application, you can write following command.</p>



php artisan serve




<p class="wp-block-paragraph">For see Laravel 5.8 application in your browser, you have to write following url.</p>



http://localhost:8000/ajax-crud
<p>The post <a href="https://www.scmgalaxy.com/tutorials/crud-operations-in-laravel-using-ajax/">CRUD Operations in Laravel using ajax</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/crud-operations-in-laravel-using-ajax/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set a selected option using ajax in Laravel 5.6?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-set-a-selected-option-using-ajax-in-laravel-5-6/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-set-a-selected-option-using-ajax-in-laravel-5-6/#respond</comments>
		
		<dc:creator><![CDATA[Chandan Kumar]]></dc:creator>
		<pubDate>Tue, 04 May 2021 06:50:50 +0000</pubDate>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Selected]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6080</guid>

					<description><![CDATA[<p>Hey friends, I am trying to show database column data in my edit form of a Laravel project. yesterday I [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-a-selected-option-using-ajax-in-laravel-5-6/">How to set a selected option using ajax in Laravel 5.6?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Hey friends, I am trying to show database column data in my edit form of a Laravel project. yesterday I failed to show data from database in a select list using ajax. so let&#8217;s see the below blade file and ajax also to get your solution.</p>



<h5 class="wp-block-heading">edit.blade.php </h5>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;div class=&quot;form-group&quot;&gt;
  &amp;lt;label for=&quot;Blood_Group&quot;&gt;Blood Group&amp;lt;/label&gt;
	&amp;lt;select class=&quot;form-control&quot; id=&quot;bgroup&quot; name=&quot;bgroup&quot;&gt;
	  &amp;lt;option value=&quot;&quot; disabled selected&gt;Select BG&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;O+&quot;&gt;O+&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;O-&quot;&gt;O-&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;A+&quot;&gt;A+&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;A-&quot;&gt;A-&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;B+&quot;&gt;B+&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;B-&quot;&gt;B-&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;AB+&quot;&gt;AB+&amp;lt;/option&gt;
	  &amp;lt;option value=&quot;AB+&quot;&gt;AB-&amp;lt;/option&gt;
	&amp;lt;/select&gt;
&amp;lt;/div&gt;
</pre></div>


<h5 class="wp-block-heading">profile.js</h5>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$.ajax({
	type: &quot;GET&quot;,
	url: &#039;addprofile&#039;,
	data: null,
	success: function(response) {
          let data = response.data;
          $(&quot;#bgroup&quot;).append(&#039;&amp;lt;option value=&#039; + data&#x5B;0].bgroup+ &#039;&gt;&#039; + data&#x5B;0].bgroup+ 
           &#039;&amp;lt;/option&gt;&#039;);

        }
});
</pre></div>


<p class="wp-block-paragraph"><strong>Error </strong>: updated data from database is not showing in selected list when i am trying to update it again.</p>



<h5 class="wp-block-heading"><strong>Solution </strong>:</h5>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;#bgroup&quot;).val(data&#x5B;0].bgroup).attr(&#039;selected&#039;,&#039;selected&#039;);
</pre></div>


<p class="wp-block-paragraph">You can also use below code:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&#039;#bgroup option&#x5B;value=&quot;&#039; + data&#x5B;0].bgroup+ &#039;&quot;]&#039;).prop(&#039;selected&#039;, true);
</pre></div>


<p class="wp-block-paragraph">Above solution is working for me. so if you have more solution on select option then please feel free to comment and share your knowledge.</p>



<p class="wp-block-paragraph">Resources : </p>



<ol class="wp-block-list"><li><a rel="noreferrer noopener" href="https://stackoverflow.com/questions/40471307/how-to-set-a-selected-option-using-ajax" target="_blank">Click here</a> </li><li><a href="https://makitweb.com/auto-populate-dropdown-with-jquery-ajax-in-laravel/">Click here</a></li></ol>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-a-selected-option-using-ajax-in-laravel-5-6/">How to set a selected option using ajax in Laravel 5.6?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-set-a-selected-option-using-ajax-in-laravel-5-6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Laravel 8 &#8211; Insert record using ajax</title>
		<link>https://www.scmgalaxy.com/tutorials/laravel-8-insert-record-using-ajax/</link>
		
		<dc:creator><![CDATA[Chandan Kumar]]></dc:creator>
		<pubDate>Sat, 01 May 2021 07:42:37 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[laravel8]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6015</guid>

					<description><![CDATA[<p>Hey friends, I came again to all of you with a new article, must follow below steps to create a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/laravel-8-insert-record-using-ajax/">Laravel 8 &#8211; Insert record using ajax</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Hey friends, I came again to all of you with a new article, must follow below steps to create a CRUD in Laravel using ajax.</p>



<p class="wp-block-paragraph">📚 <strong>Step 1 : </strong>create a Laravel project using below command.</p>



<pre class="wp-block-preformatted">       <code>composer create-project laravel/laravel Studentsform</code></pre>



<p class="wp-block-paragraph">📚 <strong>Step 2</strong> : Make a model for this, run below command: after running below command you will find a model name <em>Student</em> and one migration <em>2021_05_01_create_students_table</em></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
php artisan make:model Student -m
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 3 :</strong> Create a <strong>StudentController</strong> now using below command</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
php artisan make:controller StudentController
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 4 :</strong> Now open <strong>migration</strong> and add some column in it</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Schema::create(&#039;students&#039;, function(Blueprint $table)) {
	$table-&gt;id();
	$table-&gt;string(&#039;firstname&#039;);
	$table-&gt;string(&#039;lastname&#039;);
	$table-&gt;string(&#039;email&#039;);
	$table-&gt;string(&#039;phone&#039;);
	$table-&gt;timestamps();
}
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 5 :</strong> Add table name in <strong>Student</strong> model and also write fillable area for it with your table <strong>column name</strong>.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
    protected $table = &#039;students&#039;;
	protected $fillable = &#x5B;&#039;firstname&#039;,&#039;lastname&#039;,&#039;email&#039;,&#039;phone&#039;];
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 6 :</strong> now migrate all your <strong>migration</strong> using below command , before migrating make sure to create a <strong>Database</strong> for it.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
php artisan migrate
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 7 : </strong>And then Open <strong>StudentController.php</strong> (<em>app/Http/Controllers/</em>StudentController) and create a function name index().</p>



<h5 class="wp-block-heading">📄 StudentController.php</h5>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
public function index()
 {
	$students = Student::orderBy(&#039;id&#039;,&#039;DESC&#039;)-&gt;get();
	return view(&#039;students&#039;,compact(&#039;students&#039;));
 }
</pre></div>


<p class="wp-block-paragraph">📚<strong> Step 8 :</strong>  Let&#8217;s create a route for this. so now open <strong>web.php</strong> file situated under <strong>routes </strong>folder and add also controller location within <strong>web.php</strong>.</p>



<h5 class="wp-block-heading">📄 <strong>web.php</strong></h5>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Use App\Http\Controllers\StudentController
Route::get(&#039;/students&#039;,&#x5B;StudentController::class,&#039;index&#039;]);
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 9 :</strong> Now create a view file under <strong>resources/views</strong> with name <strong>students.blade.php</strong> and below code in it<br></p>



<h5 class="wp-block-heading">📄 students.blade.php </h5>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;!DOCTYPE html&gt;
&amp;lt;html lang=&quot;en&quot;&gt;
&amp;lt;head&gt;
    &amp;lt;meta charset=&quot;UTF-8&quot;&gt;
    &amp;lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &amp;lt;title&gt;Ajax Crud&amp;lt;/title&gt;
    &amp;lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6&quot; crossorigin=&quot;anonymous&quot;&gt;
&amp;lt;/head&gt;
&amp;lt;body&gt;
    &amp;lt;section style=&quot;padding-top:60px&quot;&gt;
        &amp;lt;div class=&quot;container&quot;&gt;
            &amp;lt;div class=&quot;row&quot;&gt;
                &amp;lt;div class=&quot;col-md-12&quot;&gt;
                    &amp;lt;div class=&quot;card&quot;&gt;
                        &amp;lt;div class=&quot;card-header&quot;&gt;
                            Students &amp;lt;a href=&quot;#&quot; class=&quot;btn btn-success&quot; data-bs-toggle=&quot;modal&quot; data-bs-target=&quot;#StudentModal&quot;&gt;Add New Students&amp;lt;/a&gt;
                        &amp;lt;/div&gt;
                        &amp;lt;div class=&quot;card-body&quot;&gt;
                            &amp;lt;table id=&quot;studentTable&quot; class=&quot;table&quot;&gt;
                                &amp;lt;thead&gt;
                                    &amp;lt;tr&gt;
                                        &amp;lt;th&gt;First Name&amp;lt;/th&gt;
                                        &amp;lt;th&gt;Last Name&amp;lt;/th&gt;
                                        &amp;lt;th&gt;Email&amp;lt;/th&gt;
                                        &amp;lt;th&gt;Phone&amp;lt;/th&gt;
                                    &amp;lt;/tr&gt;
                                &amp;lt;/thead&gt;
                                &amp;lt;tbody&gt;
                                    @foreach($students as $student)
                                        &amp;lt;tr&gt;
                                            &amp;lt;td&gt;{{$student-&gt;firstname}}&amp;lt;/td&gt;
                                            &amp;lt;td&gt;{{$student-&gt;lastname}}&amp;lt;/td&gt;
                                            &amp;lt;td&gt;{{$student-&gt;email}}&amp;lt;/td&gt;
                                            &amp;lt;td&gt;{{$student-&gt;phone}}&amp;lt;/td&gt;
                                        &amp;lt;/tr&gt;
                                    @endforeach
                                &amp;lt;/tbody&gt;
                            &amp;lt;/table&gt;
                        &amp;lt;/div&gt;
                    &amp;lt;/div&gt;
                &amp;lt;/div&gt;
            &amp;lt;/div&gt;
        &amp;lt;/div&gt;
    &amp;lt;/section&gt;

    &amp;lt;!-- modal start --&gt;

    &amp;lt;!-- Button trigger modal --&gt;
    &amp;lt;!-- Modal --&gt;
    &amp;lt;div class=&quot;modal fade&quot; id=&quot;StudentModal&quot; tabindex=&quot;-1&quot; aria-labelledby=&quot;exampleModalLabel&quot; aria-hidden=&quot;true&quot;&gt;
        &amp;lt;div class=&quot;modal-dialog&quot;&gt;
        &amp;lt;div class=&quot;modal-content&quot;&gt;
            &amp;lt;div class=&quot;modal-header&quot;&gt;
            &amp;lt;h5 class=&quot;modal-title&quot; id=&quot;exampleModalLabel&quot;&gt;Add new student&amp;lt;/h5&gt;
            &amp;lt;button type=&quot;button&quot; class=&quot;btn-close&quot; data-bs-dismiss=&quot;modal&quot; aria-label=&quot;Close&quot;&gt;&amp;lt;/button&gt;
            &amp;lt;/div&gt;
            &amp;lt;div class=&quot;modal-body&quot;&gt;
            &amp;lt;form action=&quot;&quot; id=&quot;studentForm&quot;&gt;
                @csrf
                &amp;lt;div class=&quot;form-group&quot;&gt;
                    &amp;lt;label for=&quot;FirstName&quot;&gt;First Name&amp;lt;/label&gt;
                    &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;firstname&quot;&gt;
                &amp;lt;/div&gt;
                &amp;lt;div class=&quot;form-group&quot;&gt;
                    &amp;lt;label for=&quot;LastName&quot;&gt;Last Name&amp;lt;/label&gt;
                    &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;lastname&quot;&gt;
                &amp;lt;/div&gt;
                &amp;lt;div class=&quot;form-group&quot;&gt;
                    &amp;lt;label for=&quot;email&quot;&gt;Email&amp;lt;/label&gt;
                    &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;email&quot;&gt;
                &amp;lt;/div&gt;
                &amp;lt;div class=&quot;form-group&quot;&gt;
                    &amp;lt;label for=&quot;phone&quot;&gt;Phone&amp;lt;/label&gt;
                    &amp;lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;phone&quot;&gt;
                &amp;lt;/div&gt;
                &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit&amp;lt;/button&gt;
            &amp;lt;/form&gt;
            &amp;lt;/div&gt;
            
        &amp;lt;/div&gt;
        &amp;lt;/div&gt;
    &amp;lt;/div&gt;
    &amp;lt;script&gt;
        $(&quot;#studentForm&quot;).submit(function(e){
            e.preventDefault();
            let firstname = $(&quot;#firstname&quot;).val();
            let lastname = $(&quot;#lastname&quot;).val();
            let email = $(&quot;#email&quot;).val();
            let phone = $(&quot;#phone&quot;).val();
            let _token = $(&quot;input&#x5B;name=_token]&quot;).val();

            $.ajax({
                url: &quot;{{route(&#039;student.add&#039;)}}&quot;,
                type:&quot;POST&quot; ,
                data: {
                    firstname:firstname,
                    lastname:lastname,
                    email:email,
                    phone:phone,
                    _token:_token
                },
                success:function(response)
                {
                    if(response){
                        $(&quot;#studentTable tbody&quot;).prepend(&#039;&amp;lt;tr&gt;&amp;lt;td&gt;&#039;+response.firstname+&#039;&amp;lt;/td&gt;&amp;lt;td&gt;&#039;+response.lastname+&#039; &amp;lt;/td&gt;&amp;lt;td&gt;&#039;+response.email+&#039;&amp;lt;/td&gt;&amp;lt;td&gt;&#039;+response.phone+&#039;&amp;lt;/td&gt;&amp;lt;/tr&gt;&#039;);
                        $(&quot;#studentForm&quot;)&#x5B;0].reset();
                        $(&quot;#studentModal&quot;).modal(&#039;hide&#039;);
                    }
                }
            });

        });
    &amp;lt;/script&gt;
    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js&quot; integrity=&quot;sha384-SR1sx49pcuLnqZUnnPwx6FCym0wLsk5JZuNx2bPPENzswTNFaQU1RDvt3wT4gWFG&quot; crossorigin=&quot;anonymous&quot;&gt;&amp;lt;/script&gt;
    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.min.js&quot; integrity=&quot;sha384-j0CNLUeiqtyaRmlzUHCPZ+Gy5fQu0dQ6eZ/xAww941Ai1SxSY+0EQqNXNE6DZiVc&quot; crossorigin=&quot;anonymous&quot;&gt;&amp;lt;/script&gt;
    &amp;lt;script src=&quot;https://code.jquery.com/jquery-3.6.0.js&quot; integrity=&quot;sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=&quot; crossorigin=&quot;anonymous&quot;&gt;&amp;lt;/script&gt;
&amp;lt;/body&gt;
&amp;lt;/html&gt;
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 10 :</strong> Create another function in <strong>StudentController.php</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
public function addStudent(Request $request)
	{
		$student = new Student();
		$student-&gt;firstname = $request-&gt;firstname;
		$student-&gt;lastname = $request-&gt;lastname;
		$student-&gt;email = $request-&gt;email;
		$student-&gt;phone = $request-&gt;phone;
		$student-&gt;save();
		return response()-&gt;json($student);
	}
</pre></div>


<p class="wp-block-paragraph">📚 <strong>Step 11 :</strong> Now create a route for <strong>addStudent</strong>() function, so for this open <strong>web.php</strong> file again</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Route::post(&#039;/add-student&#039;, &#x5B;StudentController::class,&#039;addStudent&#039;])-&gt;name(&#039;student.add&#039;);
</pre></div>


<p class="wp-block-paragraph">At last fill the data into popup form and you will see that your form is working fine. yay we did it. Let&#8217;s congratulate yourself that you create a CRUD using ajax in Laravel 8.</p>



<p class="wp-block-paragraph">If you find any issue on above steps then feel free to comment. I will feel very happy to resolve your problems in it.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/laravel-8-insert-record-using-ajax/">Laravel 8 &#8211; Insert record using ajax</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WHAT IS AJAX?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-ajax/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-ajax/#respond</comments>
		
		<dc:creator><![CDATA[shashank K]]></dc:creator>
		<pubDate>Wed, 17 Mar 2021 12:02:37 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[asynchronous]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SYNCHRONOUS]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5600</guid>

					<description><![CDATA[<p>                                  Introduction:- AJAX stands for Asynchronous Javascript And XML. AJAX is used for fast creating dynamic web pages. It allow [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-ajax/">WHAT IS AJAX?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">                                  </p>



<p class="wp-block-paragraph"><strong>Introduction</strong>:- <strong><em>AJAX</em></strong><em> stands for Asynchronous <strong>Javascript And XML</strong>. AJAX is used for fast creating dynamic web pages. It allow web pages to be updated asynchronously by exchanging some amount of data with the server behind the scenes. It is possible to update some parts of a web page without reloading the whole page. There are many web applications that run on ajax example:- gmail,facebook,twitter,google map, youtube etc.</em></p>



<p class="wp-block-paragraph"><strong>Understanding synchronous and asynchronous:-</strong></p>



<p class="wp-block-paragraph"><strong>Synchronous:-</strong> <em>The synchronous request blocks the client until the operation completes.</em></p>



<p class="wp-block-paragraph"><strong>Asynchronous:-</strong> <em>&nbsp;Asynchronous request doesn’t block the client. At the time when the request is processing, user can perform another operation.</em></p>



<p class="wp-block-paragraph"><strong>Some AJAX technologies:-</strong></p>



<p class="wp-block-paragraph"><em>As we know ajax is not a technology but group of inter related technologies.some of the technologies is given below:</em></p>



<p class="wp-block-paragraph"><strong>1.HTML/XHTML and CSS</strong></p>



<p class="wp-block-paragraph"><strong>2.XML and JSON</strong></p>



<p class="wp-block-paragraph"><strong>3.DOM</strong></p>



<p class="wp-block-paragraph"><strong>4.XMLHttpRequest</strong></p>



<p class="wp-block-paragraph"><strong>5.javascript</strong></p>



<ol class="wp-block-list" type="1"><li><strong>HTML/XHTML and CSS:-</strong> <em>These are the technologies which are used for developing front end of a websites and styling.</em></li><li><strong>XML and JSON:-</strong> <em>It is used for carrying data to and from the server</em></li><li><strong>DOM:-</strong> <em>It is used for dynamic display and interaction with the data.</em></li><li><strong>XMLHttpRequest<em>:-</em></strong><em> It is used for asynchronous communication between client and server</em> .</li><li><strong>Javascript:-</strong><em>It is a text based programming language used client side and server side both. Javascript allows to make the web pages imteractive.</em></li></ol>



<p class="wp-block-paragraph"><strong>HOW AJAX WORKS:-</strong></p>





<p class="wp-block-paragraph"><em>AJAX communicates with the server using XMLHttpRequest. The user sends the request from the UI and the javascript call goes to XMLHttpRequest object. Then the Http request is send to the server. Then the server interact with the database and data is retrived. The server sends te data to the XMLHttpRequest callback function. And HTML and CSS data is displayed on the browser.</em></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-ajax/">WHAT IS AJAX?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-ajax/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>AJAX Setup/ Installation</title>
		<link>https://www.scmgalaxy.com/tutorials/ajax-setup-installation/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ajax-setup-installation/#comments</comments>
		
		<dc:creator><![CDATA[abhishek k]]></dc:creator>
		<pubDate>Sat, 13 Mar 2021 11:04:06 +0000</pubDate>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ajax installation]]></category>
		<category><![CDATA[install ajax]]></category>
		<category><![CDATA[setup ajax]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5520</guid>

					<description><![CDATA[<p>Ajax is a web development technique designed to create highly responsive/ interactive websites. To have a better understanding of AJAX [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ajax-setup-installation/">AJAX Setup/ Installation</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Ajax 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>



<p class="wp-block-paragraph">The easiest way of<strong> implementing AJAX</strong>, is by using <strong>jQuery</strong>.</p>



<p class="wp-block-paragraph">To add jQuery </p>



<p class="wp-block-paragraph">We can use the downloaded version from (<a rel="noreferrer noopener" href="http://jquery.com/download/" target="_blank">jquery.com/download/</a>)  and we need to include the file location of the file in the script  under the header tag, or we can use the CDN  in the head of HTML as </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;head&gt;

&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot;&gt;&amp;lt;/script&gt;

&amp;lt;/head&gt;
</pre></div>


<p class="wp-block-paragraph">After we are good to go with the operations we need to perform. If we wanna test that the CDN works fine we can use the function below in the body of the HTML script </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;script&gt;
$(document).ready(function(){
    alert(&quot;jQuery Works&quot;)
});
&amp;lt;/script&gt;
</pre></div>


<p class="wp-block-paragraph">If we see the <strong>jQuery works</strong> alert, That mean we can congratulate ourselves on our success.</p>



<p class="wp-block-paragraph">For knowing what is AJAX and its procedure <a href="https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/" target="_blank" rel="noreferrer noopener">https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ajax-setup-installation/">AJAX Setup/ Installation</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ajax-setup-installation/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>A Brief Description of AJAX</title>
		<link>https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/</link>
					<comments>https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/#comments</comments>
		
		<dc:creator><![CDATA[abhishek k]]></dc:creator>
		<pubDate>Sat, 13 Mar 2021 10:33:02 +0000</pubDate>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[description on ajax]]></category>
		<category><![CDATA[what is ajax]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5515</guid>

					<description><![CDATA[<p>AJAX&#160;stands for Asynchronous JavaScript And XML. It is a web development technique that helps to create a highly responsive website. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/">A Brief Description of AJAX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>AJAX&nbsp;stands for Asynchronous JavaScript And XML.</strong> </p>



<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>



<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>



<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>



<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>



<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>



<p class="wp-block-paragraph" style="font-size:26px"><strong>Why use AJAX</strong></p>



<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>



<p class="wp-block-paragraph" style="font-size:25px"><strong>How AJAX works</strong></p>



<p class="wp-block-paragraph">Ajax uses XMLHttpRequest object (also called XHR objects) to achieve this</p>



<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>



<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>



<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>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/">A Brief Description of AJAX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/a-brief-description-of-ajax/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
