<?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>what is XML? &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/what-is-xml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Wed, 25 May 2022 08:44:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>PHP Ajax Tutorial with Example</title>
		<link>https://www.bestdevops.com/php-ajax-tutorial-with-example/</link>
					<comments>https://www.bestdevops.com/php-ajax-tutorial-with-example/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Wed, 04 May 2022 08:57:00 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Ajax Tutorial]]></category>
		<category><![CDATA[How AjaX works]]></category>
		<category><![CDATA[What are the uses of JavaScript?]]></category>
		<category><![CDATA[what is AJAX?]]></category>
		<category><![CDATA[What is JavaScript?]]></category>
		<category><![CDATA[what is XML?]]></category>
		<category><![CDATA[Why use Ajax:]]></category>
		<category><![CDATA[XML Tutorial]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=23419</guid>

					<description><![CDATA[AJAX Ajax is web development technique which help to create highly Responsing, near desktop software like user experience web applications. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">AJAX</h2>



<p class="wp-block-paragraph">Ajax is web development technique which help to create highly Responsing, near desktop software like user experience web applications.</p>



<p class="wp-block-paragraph">HTML,CSS for representation JSON/XML/Text for sorting Data, XMLHttpRequest object for action in the background and JavaScript put all this together.<br>Ajax is used in web page to be updated asynchronously by exchanging data with a web sever behind the scene. This makes possible to updated part of a web page without reloading the whole page.</p>



<p class="wp-block-paragraph">Ajax is mechanism for making partial page updates.It enables you to update sections of a page with data that comes from the serve, avoid full page refresh. Using ajax we can create better and faster web application.<br>Ajax is not programming language.</p>



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



<p class="wp-block-paragraph">on type search<br>movie rating feature<br>Gmail</p>



<h3 class="wp-block-heading">Why use Ajax:</h3>



<ul class="wp-block-list"><li>NO page Reloading on each request</li><li>updated a part page not full page</li><li>send Data to server in background</li><li>Receive Data from server in background</li><li>Better user experience</li><li>Impproves speed and performance</li></ul>



<h3 class="wp-block-heading">How Ajax works</h3>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2022/04/ajax-block-diagram1.jpg" alt="" class="wp-image-23420" width="935" height="469" srcset="https://www.bestdevops.com/wp-content/uploads/2022/04/ajax-block-diagram1.jpg 695w, https://www.bestdevops.com/wp-content/uploads/2022/04/ajax-block-diagram1-300x151.jpg 300w" sizes="(max-width: 935px) 100vw, 935px" /></figure>



<ul class="wp-block-list"><li>Client send a request a JavaScript call goes to XMLHttpRequest object</li><li>HTTP Request is sent to server by XMLHttpRequest object</li><li>If needed, server interacts with the database using JSP,ASP,PHP (server side language) etc.</li><li>Data Received</li><li>Server sends Text /JSON/XMLHttpRequest object callback function</li><li>Html and CSS data is displayed on the browser</li></ul>



<h3 class="wp-block-heading">XMLHttpRequest</h3>



<p class="wp-block-paragraph">XMLHttpRequest(XHR) is an API that can be used by JavaScript, JScript, VBScript ,and other web browser scripting language to transfer and manipulated data to and from a webserver using HTTP, establishing an independent connection channel between client and server.</p>



<p class="wp-block-paragraph">The Data can be text Data, XML Data JSON Data.</p>



<h3 class="wp-block-heading">XMLHttpRequest ObJect</h3>



<p class="wp-block-paragraph">An object of XML.HttpRequest is used for asynchronous communication between client and server.</p>



<p class="wp-block-paragraph"><strong>It performs following operation:</strong></p>



<ul class="wp-block-list"><li>send data from the client in the background</li><li>Receives the data from the server</li><li>Updates the webpage without reloading it.</li></ul>



<h3 class="wp-block-heading">Creating XMLHttpRequest ObJect</h3>


<pre class="wp-block-code"><span><code class="hljs language-javascript">syntax:-
<span class="hljs-keyword">let</span> variable=<span class="hljs-keyword">new</span> XMLHttpRequest();</code></span></pre>


<h3 class="wp-block-heading"><strong>Ajax Tutorial</strong></h3>



<figure class="wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Ajax tutorial in hindi | JavaScript Tutorial In Hindi #35" width="900" height="506" src="https://www.youtube.com/embed/FJZEVmF3eDg?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">JavaScript</h2>



<p class="wp-block-paragraph">JavaScript is the most important programming language in the world. Google, YouTube, Wikipedia, Yahoo!, Amazon, Facebook, eBay, LinkedIn, and Twitter have all been built using JavaScript.</p>



<p class="wp-block-paragraph">JavaScript is the programing language of HTML and the web. It makes web page dynamic. It is an interpreted programming language with object-oriented capabilities.</p>



<h3 class="wp-block-heading">History</h3>



<p class="wp-block-paragraph">Brendan Eich created JavaScript in 1995 while he was at Netscape Communications Corporation, the creators of the legendary Netscape Navigator web browser. The early versions of JavaScript were called Mocha. Not long after a Mocha prototype was introduced into Netscape Communicator (May 1995), it was renamed to LiveScript, purely because the world Live was better for marketing. It was renamed again in December of the same year, this time into JavaScript.</p>



<h3 class="wp-block-heading">What are the uses of JavaScript?</h3>



<ul class="wp-block-list"><li>Web Applications</li><li>Web Development</li><li>Mobile Applications</li><li>Game</li><li>Presentations</li><li>Server Applications</li><li>Web Servers</li></ul>



<h3 class="wp-block-heading">Tools</h3>



<ul class="wp-block-list"><li>NotePad</li><li>Notepad++</li><li>Visual code Editor</li><li>Any Text Editor</li></ul>



<h3 class="wp-block-heading">Advantage of JavaScript</h3>



<ul class="wp-block-list"><li>Client Side Execution</li><li>validation on browser</li><li>Easy language</li></ul>



<h3 class="wp-block-heading">Disadvantage of JavaScript</h3>



<ul class="wp-block-list"><li>less Secure</li><li>No Hardware Access</li></ul>



<h3 class="wp-block-heading">Way of adding JavaScript</h3>



<ul class="wp-block-list"><li><strong>Inline</strong></li><li><strong>External</strong></li></ul>



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


<pre class="wp-block-code"><span><code class="hljs language-xml">--inside head Tag

<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>hello Abhishek<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"text/JavaScript"</span>&gt;</span><span class="javascript">
<span class="hljs-built_in">document</span>. write(<span class="hljs-string">"What is JS"</span>)
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Heading <span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>Paragraph<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>

--inside body Tag

<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>hello Abhishek<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Heading <span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>Paragraph<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"text/JavaScript"</span>&gt;</span><span class="javascript">
<span class="hljs-built_in">document</span>. Write(<span class="hljs-string">"What is JS"</span>)
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span></code></span></pre>


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



<ul class="wp-block-list"><li>Inside head Tag</li><li>inside body Tag</li></ul>



<h3 class="wp-block-heading"><strong>JavaScript <strong>Tutorial&nbsp;</strong></strong></h3>



<figure class="wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="JavaScript Tutorial In Hindi" width="900" height="506" src="https://www.youtube.com/embed/hKB-YGF14SY?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">XML</h2>



<ul class="wp-block-list"><li>The full form is extensible Markup Language</li><li>The main purpose is to focus on the transport of data and saving the data</li><li>XML is dynamic because it is used in the transport of data</li><li>It is case sensitive. The upper and lower case needs to be kept in mind while coding</li><li>You can define tags as per your requirement but closing tags are mandatory</li><li>XML can preserve white spaces</li><li>extensible Markup Language is content-driven and not many formatting features are available</li><li>Any error in the code shall not give the final outcome</li><li>The size of the document may be large</li></ul>



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



<p class="wp-block-paragraph">XML is one of the most widely-used formats for sharing structured information today: between programs, between people, between computers and people, both locally and across networks. the standards body for the web, including these:</p>



<h3 class="wp-block-heading">What is XML used for?</h3>



<ul class="wp-block-list"><li>underlying data formats for applications such as those in Microsoft Office;</li><li>technical documentation;</li><li>configuration options for application software;</li><li>books;</li><li>transactions; and</li><li>invoices.</li></ul>



<h3 class="wp-block-heading">syntax:</h3>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-meta">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">note</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">to</span>&gt;</span>Tove<span class="hljs-tag">&lt;/<span class="hljs-name">to</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">from</span>&gt;</span>Jani<span class="hljs-tag">&lt;/<span class="hljs-name">from</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">heading</span>&gt;</span>Reminder<span class="hljs-tag">&lt;/<span class="hljs-name">heading</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>Don't forget me this weekend!<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">note</span>&gt;</span></code></span></pre>


<h3 class="wp-block-heading">XML <strong>Tutorial&nbsp;</strong></h3>



<figure class="wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="What is XML | XML Beginner Tutorial | Learn XML with Demo in 10 min" width="900" height="506" src="https://www.youtube.com/embed/1JblVElt5K0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">polymorphism:</h2>



<p class="wp-block-paragraph">Polymorphism means “many forms”, and it occurs when we have many classes that are related to each other by inheritance</p>



<p class="wp-block-paragraph">Real life example of polymorphism: A person at the same time can have different characteristics. Like a man at the same time is a father, a husband, an employee. So the same person possesses different behavior in different situations. This is called polymorphism.</p>



<p class="wp-block-paragraph"><strong>Example of polymorphism in JavaScript:</strong></p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">  
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">A</span>  
  </span>{  
     display()  
    {  
      <span class="hljs-built_in">document</span>.writeln(<span class="hljs-string">"A is ready&lt;br&gt;"</span>);  
    }  
  }  
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">B</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">A</span>  
  </span>{  
    display()  
    {  
      <span class="hljs-built_in">document</span>.writeln(<span class="hljs-string">"B is ready"</span>);  
    }  
  }  
  
<span class="hljs-keyword">var</span> a=&#91;<span class="hljs-keyword">new</span> A(), <span class="hljs-keyword">new</span> B()]  
a.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">msg</span>)  
</span>{  
msg.display();  
});  
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>  </code></span></pre>


<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Output:</p><p>A is ready<br>B is ready</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/php-ajax-tutorial-with-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
