<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6731162520044177667</id><updated>2011-04-21T16:14:29.468-07:00</updated><title type='text'>Shyamala's  Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sprayagaa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6731162520044177667/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sprayagaa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>shyamala</name><uri>http://www.blogger.com/profile/13157897414791546437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6731162520044177667.post-6001075375139758360</id><published>2009-05-14T06:27:00.001-07:00</published><updated>2009-05-14T08:10:30.843-07:00</updated><title type='text'>Ajax Interview Questions</title><content type='html'>&lt;span style="font-weight: bold;font-size:85%;" &gt;Ajax Interview questions&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;What is Ajax?&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;   &lt;span style="font-size:85%;"&gt;   AJAX is not a new programming language, but a new technique for creating better, faster,and more interactive web applications.&lt;br /&gt;&lt;br /&gt;Ajax stands for 'Asynchronous JavaScript and XML'&lt;br /&gt;&lt;br /&gt;With AJAX, a JavaScript can communicate directly with the server, with the &lt;b&gt;XMLHttpRequest&lt;/b&gt; object. With this object,  a JavaScript can  trade data with a web server, without reloading the page.&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Ajax is based on which web standards?&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;- JavaScript&lt;br /&gt;- XML&lt;br /&gt;- HTML&lt;br /&gt;- CSS&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;What is Asynchronous?&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;The term &lt;i&gt;asynchronous&lt;/i&gt; is usually used to describe communications in which data can be transmitted intermittently rather than in a steady stream. &lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;How does Ajax works?&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;With AJAX,  JavaScript communicates directly with the server, through the  JavaScript &lt;b&gt;XMLHttpRequest&lt;/b&gt; object.&lt;br /&gt;&lt;br /&gt;With the XMLHttpRequest object, a web page can make a request to, and get a response from a web  server - without reloading the page. The user will stay on the same page, and he  or she will  not notice that scripts request pages, or send data to a  server in the background.&lt;br /&gt;&lt;br /&gt;The XMLHttpRequest object is supported in all major browsers (Internet Explorer,  Firefox, Chrome, Opera, and Safari).&lt;/span&gt; &lt;span style="font-size:85%;"&gt;All new browsers use the built-in JavaScript &lt;b&gt;XMLHttpRequest &lt;/b&gt;object to create  an XMLHttpRequest object (IE5 and IE6 uses an ActiveXObject).&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;What are the important properties of &lt;/span&gt;&lt;span style="font-size:85%;"&gt;XMLHttpRequest object&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;- onreadystatechange property&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;After a request to a server, we need a function to receive the data returned  from the server.The onreadystatechange property stores the function that will process the response from a server.  The function is stored in the  property to be called automatically.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;- readyState property&lt;br /&gt;&lt;br /&gt;The readyState property holds the status of the server's response. Each time the readyState property changes,  the onreadystatechange function will be executed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;- responseText property&lt;br /&gt;&lt;br /&gt;The data sent back from a server can be retrieved with the responseText property.&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;How do we send response to the server?&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;To send  a request to the server, we use the open() and send() methods.&lt;br /&gt;&lt;br /&gt;The open() method takes three arguments. The first argument defines which method to use when sending the request (GET or POST). The second argument specifies the URL of the server-side script. The third argument specifies that the request should be handled asynchronously.&lt;br /&gt;&lt;br /&gt;The send() method sends the request off to the  server. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6731162520044177667-6001075375139758360?l=sprayagaa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sprayagaa.blogspot.com/feeds/6001075375139758360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sprayagaa.blogspot.com/2009/05/ajax-interview-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6731162520044177667/posts/default/6001075375139758360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6731162520044177667/posts/default/6001075375139758360'/><link rel='alternate' type='text/html' href='http://sprayagaa.blogspot.com/2009/05/ajax-interview-questions.html' title='Ajax Interview Questions'/><author><name>shyamala</name><uri>http://www.blogger.com/profile/13157897414791546437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
