<?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"
	>
<channel>
	<title>Comments on: AJAX generic form parser</title>
	<atom:link href="http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/</link>
	<description>Helping newbies learn AJAX with Tutorials</description>
	<pubDate>Thu, 09 Sep 2010 00:26:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Jason</title>
		<link>http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-12500</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 06 Oct 2008 00:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-12500</guid>
		<description>Nice tutorial.  Could you do one on cross-domain AJAX methods?</description>
		<content:encoded><![CDATA[<p>Nice tutorial.  Could you do one on cross-domain AJAX methods?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manisha</title>
		<link>http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-10279</link>
		<dc:creator>manisha</dc:creator>
		<pubDate>Fri, 12 Sep 2008 12:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-10279</guid>
		<description>hi ,

i just want to know, wat is rnd982g??  and why its is being used here ?</description>
		<content:encoded><![CDATA[<p>hi ,</p>
<p>i just want to know, wat is rnd982g??  and why its is being used here ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: san koa</title>
		<link>http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-4962</link>
		<dc:creator>san koa</dc:creator>
		<pubDate>Tue, 19 Aug 2008 09:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-4962</guid>
		<description>Please give some example of how to use ajax within detail mention. thank you in advanced for all developer fusion.

regards,
san</description>
		<content:encoded><![CDATA[<p>Please give some example of how to use ajax within detail mention. thank you in advanced for all developer fusion.</p>
<p>regards,<br />
san</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cosminx</title>
		<link>http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-4702</link>
		<dc:creator>cosminx</dc:creator>
		<pubDate>Wed, 23 Jul 2008 08:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-4702</guid>
		<description>Can you do a version for post method ?</description>
		<content:encoded><![CDATA[<p>Can you do a version for post method ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krrish</title>
		<link>http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-87</link>
		<dc:creator>krrish</dc:creator>
		<pubDate>Mon, 31 Jul 2006 01:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxtutorial.net/index.php/2006/07/07/ajax-generic-form-parser/#comment-87</guid>
		<description>Thank you for your awesome contribution, this really helped me out alot....there isnt a single tutorial on web for Ajax that is any simpler or more useful then yours...

I had to fix few errors on your javascript file before i could put this to any use. You did a great job on posting the form to any php file and also the few validations. I have enhanced it so you can display results where you want on a page...

The new html tag to post the form would be: 


please check the new javascript file.....

var req = createXMLHttpRequest();

function createXMLHttpRequest() {
 var ua;
 if(window.XMLHttpRequest) {
 try {
  ua = new XMLHttpRequest();
 } catch(e) {
  ua = false;
 }
 } else if(window.ActiveXObject) {
  try {
	ua = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
	ua = false;
  }
 }
return ua;
}

var resultsPlace="";

function sendRequest(frm, file, place) {
 var rnd982g = Math.random();
 var str = "";
 str=getForm(frm);
 if(str) {
  req.open('GET', file+'?'+str+'&#38;rnd982g='+rnd982g);
  resultsPlace = place;
  req.onreadystatechange = handleResponse;
  req.send(null);
 }
 return false;
}

function handleResponse() {
 if(req.readyState == 4){
  var response = req.responseText;
  document.getElementById(resultsPlace).innerHTML = response;
 }
}

function getForm(fobj) {
 var str = "";
 var ft = "";
 var fv = "";
 var fn = "";
 var els = "";
 for(var i = 0;i </description>
		<content:encoded><![CDATA[<p>Thank you for your awesome contribution, this really helped me out alot&#8230;.there isnt a single tutorial on web for Ajax that is any simpler or more useful then yours&#8230;</p>
<p>I had to fix few errors on your javascript file before i could put this to any use. You did a great job on posting the form to any php file and also the few validations. I have enhanced it so you can display results where you want on a page&#8230;</p>
<p>The new html tag to post the form would be: </p>
<p>please check the new javascript file&#8230;..</p>
<p>var req = createXMLHttpRequest();</p>
<p>function createXMLHttpRequest() {<br />
 var ua;<br />
 if(window.XMLHttpRequest) {<br />
 try {<br />
  ua = new XMLHttpRequest();<br />
 } catch(e) {<br />
  ua = false;<br />
 }<br />
 } else if(window.ActiveXObject) {<br />
  try {<br />
	ua = new ActiveXObject(&#8221;Microsoft.XMLHTTP&#8221;);<br />
  } catch(e) {<br />
	ua = false;<br />
  }<br />
 }<br />
return ua;<br />
}</p>
<p>var resultsPlace=&#8221;";</p>
<p>function sendRequest(frm, file, place) {<br />
 var rnd982g = Math.random();<br />
 var str = &#8220;&#8221;;<br />
 str=getForm(frm);<br />
 if(str) {<br />
  req.open(&#8217;GET&#8217;, file+&#8217;?'+str+&#8217;&amp;rnd982g=&#8217;+rnd982g);<br />
  resultsPlace = place;<br />
  req.onreadystatechange = handleResponse;<br />
  req.send(null);<br />
 }<br />
 return false;<br />
}</p>
<p>function handleResponse() {<br />
 if(req.readyState == 4){<br />
  var response = req.responseText;<br />
  document.getElementById(resultsPlace).innerHTML = response;<br />
 }<br />
}</p>
<p>function getForm(fobj) {<br />
 var str = &#8220;&#8221;;<br />
 var ft = &#8220;&#8221;;<br />
 var fv = &#8220;&#8221;;<br />
 var fn = &#8220;&#8221;;<br />
 var els = &#8220;&#8221;;<br />
 for(var i = 0;i</p>
]]></content:encoded>
	</item>
</channel>
</rss>
