<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Ajax Tutorial : Ajax Help and Tutorials</title>
	<atom:link href="http://www.ajaxtutorial.net/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxtutorial.net</link>
	<description>Helping newbies learn AJAX with Tutorials</description>
	<lastBuildDate>Sat, 08 Jan 2011 17:21:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4</generator>
	<item>
		<title>Comment on Building Mobile Apps with Jo by vijay kumar pandray</title>
		<link>http://www.ajaxtutorial.net/index.php/2011/01/02/building-mobile-apps-with-jo/#comment-13002</link>
		<dc:creator>vijay kumar pandray</dc:creator>
		<pubDate>Sat, 08 Jan 2011 17:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/?p=108#comment-13002</guid>
		<description>hi stuart ...its very good :)...great</description>
		<content:encoded><![CDATA[<p>hi stuart &#8230;its very good :)&#8230;great</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to create a PHP web template &#8211; Part 1 by pkay</title>
		<link>http://www.ajaxtutorial.net/index.php/2010/12/28/how-to-create-a-php-web-template-part-1/#comment-12992</link>
		<dc:creator>pkay</dc:creator>
		<pubDate>Tue, 04 Jan 2011 23:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/?p=74#comment-12992</guid>
		<description>PHP does not have a compiler, it uses a interpreter. You need to install PHP and have web server configured to talk to PHP.</description>
		<content:encoded><![CDATA[<p>PHP does not have a compiler, it uses a interpreter. You need to install PHP and have web server configured to talk to PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Serious Flash Alternative using CSS3? by andy</title>
		<link>http://www.ajaxtutorial.net/index.php/2011/01/01/serious-flash-alternative-using-css3/#comment-12991</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Tue, 04 Jan 2011 10:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/?p=99#comment-12991</guid>
		<description>I wonder how much they will charge once it&#039;s out of beta.
looks awesome though!</description>
		<content:encoded><![CDATA[<p>I wonder how much they will charge once it&#8217;s out of beta.<br />
looks awesome though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to create a PHP web template &#8211; Part 1 by Chime</title>
		<link>http://www.ajaxtutorial.net/index.php/2010/12/28/how-to-create-a-php-web-template-part-1/#comment-12974</link>
		<dc:creator>Chime</dc:creator>
		<pubDate>Thu, 30 Dec 2010 02:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/?p=74#comment-12974</guid>
		<description>u did well, 
i&#039;m a beginner n i&#039;ld lik to knw if i need a php compiler before working with it. i use 7.</description>
		<content:encoded><![CDATA[<p>u did well,<br />
i&#8217;m a beginner n i&#8217;ld lik to knw if i need a php compiler before working with it. i use 7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Advanced JavaScript Lessons for the 21st Century by lokendra kumar</title>
		<link>http://www.ajaxtutorial.net/index.php/2008/10/13/advanced-javascript-lessons-for-the-21st-century/#comment-12896</link>
		<dc:creator>lokendra kumar</dc:creator>
		<pubDate>Thu, 24 Jun 2010 10:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/?p=46#comment-12896</guid>
		<description>How I have done!..........This
I have two Combo - One for Country and one for City
On county combo i have called this function........
 onchange=&quot;CityListOnChange(this.value)
function CreateXmlHttp()
{


 try {  XmlHttp = new ActiveXObject(&#039;Msxml2.XMLHTTP&#039;);   }
    catch (e) 
    {
        try {   XmlHttp = new ActiveXObject(&#039;Microsoft.XMLHTTP&#039;);    }
        catch (e2) 
        {
          try {  XmlHttp = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
}
}

function CityListOnChange(ID) 
{
removeOptionLast();
//debugger ;
    //var countryList = document.getElementById(&quot;SlCity&quot;);
   // var selectedCity = countryList.options[countryList.selectedIndex].value;
    var requestUrl = &quot;Ajax.aspx&quot; + &quot;?SelectedCountry=&quot; +ID ;
                    // + encodeURIComponent(selectedCountry); 
// Ajax.aspx is the page from where i get the data by database
    CreateXmlHttp();
    if(XmlHttp)
    {
    //debugger;
        XmlHttp.onreadystatechange = HandleResponse;
        XmlHttp.open(&quot;GET&quot;, requestUrl,  true);
        XmlHttp.send(null);           
    }
}

function HandleResponse()
{
//debugger ;
    if(XmlHttp.readyState == 4)
    {
        if(XmlHttp.status == 200)
        {
       //
        var responseData = XmlHttp.responseXML;
        
        //responseData.childNodes[0].childNodes[0].childNodes.length
       //  debugger ;
        //if(responseData !=null)
        if(responseData.childNodes.length &gt;0)
        for ( i =0; i&lt; responseData.childNodes[0].childNodes.length;i++)
        {
                var elOptNew = document.createElement(&#039;option&#039;);
             elOptNew.value = responseData.childNodes[0].childNodes[i].childNodes[0].text;
           
            elOptNew.text = responseData.childNodes[0].childNodes[i].childNodes[1].text;
          var elSel = document.getElementById(&#039;SelCity&#039;);
          elSel.options.add(elOptNew);
        }
           // ClearAndSetStateListItems(XmlHttp.responseXML.documentElement);
        }
        else
        {
            alert(&quot;There was a problem retrieving data from the server.&quot; );
        }
    }
}

//on Ajax.aspx  --- I have done this...........
       
    if(!IsPostBack )
    {

        if (Request[&quot;SelectedCountry&quot;].ToString() == &quot;IN&quot;)
        {
           
       

          
                Response.Clear();
                string XMLString;
                //CountryStateXml countryStateXml = new CountryStateXml();
               // string statesString = countryStateXml.GetStatesXMLString(selectedCountry);
                XMLString = ds.GetXml();
                Response.Clear();
                Response.ContentType = &quot;text/xml&quot;;
                Response.Write(XMLString);
                Response.End();
           
           


        }
        else
        {
            //clears the response written into the buffer and end the response.
            Response.Clear();
            Response.End();
        }
}

//////////////////// Happy programing</description>
		<content:encoded><![CDATA[<p>How I have done!&#8230;&#8230;&#8230;.This<br />
I have two Combo &#8211; One for Country and one for City<br />
On county combo i have called this function&#8230;&#8230;..<br />
 onchange=&#8221;CityListOnChange(this.value)<br />
function CreateXmlHttp()<br />
{</p>
<p> try {  XmlHttp = new ActiveXObject(&#8216;Msxml2.XMLHTTP&#8217;);   }<br />
    catch (e)<br />
    {<br />
        try {   XmlHttp = new ActiveXObject(&#8216;Microsoft.XMLHTTP&#8217;);    }<br />
        catch (e2)<br />
        {<br />
          try {  XmlHttp = new XMLHttpRequest();     }<br />
          catch (e3) {  xhr = false;   }<br />
        }<br />
}<br />
}</p>
<p>function CityListOnChange(ID)<br />
{<br />
removeOptionLast();<br />
//debugger ;<br />
    //var countryList = document.getElementById(&#8220;SlCity&#8221;);<br />
   // var selectedCity = countryList.options[countryList.selectedIndex].value;<br />
    var requestUrl = &#8220;Ajax.aspx&#8221; + &#8220;?SelectedCountry=&#8221; +ID ;<br />
                    // + encodeURIComponent(selectedCountry);<br />
// Ajax.aspx is the page from where i get the data by database<br />
    CreateXmlHttp();<br />
    if(XmlHttp)<br />
    {<br />
    //debugger;<br />
        XmlHttp.onreadystatechange = HandleResponse;<br />
        XmlHttp.open(&#8220;GET&#8221;, requestUrl,  true);<br />
        XmlHttp.send(null);<br />
    }<br />
}</p>
<p>function HandleResponse()<br />
{<br />
//debugger ;<br />
    if(XmlHttp.readyState == 4)<br />
    {<br />
        if(XmlHttp.status == 200)<br />
        {<br />
       //<br />
        var responseData = XmlHttp.responseXML;</p>
<p>        //responseData.childNodes[0].childNodes[0].childNodes.length<br />
       //  debugger ;<br />
        //if(responseData !=null)<br />
        if(responseData.childNodes.length &gt;0)<br />
        for ( i =0; i&lt; responseData.childNodes[0].childNodes.length;i++)<br />
        {<br />
                var elOptNew = document.createElement(&#8216;option&#8217;);<br />
             elOptNew.value = responseData.childNodes[0].childNodes[i].childNodes[0].text;</p>
<p>            elOptNew.text = responseData.childNodes[0].childNodes[i].childNodes[1].text;<br />
          var elSel = document.getElementById(&#8216;SelCity&#8217;);<br />
          elSel.options.add(elOptNew);<br />
        }<br />
           // ClearAndSetStateListItems(XmlHttp.responseXML.documentElement);<br />
        }<br />
        else<br />
        {<br />
            alert(&#8220;There was a problem retrieving data from the server.&#8221; );<br />
        }<br />
    }<br />
}</p>
<p>//on Ajax.aspx  &#8212; I have done this&#8230;&#8230;&#8230;..</p>
<p>    if(!IsPostBack )<br />
    {</p>
<p>        if (Request["SelectedCountry"].ToString() == &#8220;IN&#8221;)<br />
        {</p>
<p>                Response.Clear();<br />
                string XMLString;<br />
                //CountryStateXml countryStateXml = new CountryStateXml();<br />
               // string statesString = countryStateXml.GetStatesXMLString(selectedCountry);<br />
                XMLString = ds.GetXml();<br />
                Response.Clear();<br />
                Response.ContentType = &#8220;text/xml&#8221;;<br />
                Response.Write(XMLString);<br />
                Response.End();</p>
<p>        }<br />
        else<br />
        {<br />
            //clears the response written into the buffer and end the response.<br />
            Response.Clear();<br />
            Response.End();<br />
        }<br />
}</p>
<p>//////////////////// Happy programing</p>
]]></content:encoded>
	</item>
</channel>
</rss>
