<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Ajax - Newbie queston regarding XMLHttpRequest' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Ajax - Newbie queston regarding XMLHttpRequest' posted on the 'AJAX' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 13:58:01 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 13:58:01 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Ajax - Newbie queston regarding XMLHttpRequest</title>
      <link>http://www.programmersheaven.com/mb/ajax/427584/427584/ajax---newbie-queston-regarding-xmlhttprequest/</link>
      <description>In most examples I found on the Internet , I see something like this :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;ajaxRequest.onreadystatechange = function(){&lt;br /&gt;
   if(ajaxRequest.readyState == 4){&lt;br /&gt;
	document.myForm.time.value = ajaxRequest.responseText;&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
	ajaxRequest.open("GET", "serverTime.php", true);&lt;br /&gt;
	ajaxRequest.send(null);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How is it possible and how does this code work , when the "change state" property is checked&lt;br /&gt;
BEFORE&lt;br /&gt;
the open and send commands are executed ?&lt;br /&gt;
I know it works...but how does the flow return back to "check the state status" after the "open" and "send" are executed.&lt;br /&gt;
&lt;br /&gt;
I would appreciate any help&lt;br /&gt;
&lt;br /&gt;
Many thanks in advance &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ajax/427584/427584/ajax---newbie-queston-regarding-xmlhttprequest/</guid>
      <pubDate>Thu, 23 Feb 2012 02:25:01 -0700</pubDate>
      <category>AJAX</category>
    </item>
  </channel>
</rss>