<?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 on: AJAX Post method example using javascript &amp; jQuery</title>
	<atom:link href="http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/feed" rel="self" type="application/rss+xml" />
	<link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html</link>
	<description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description>
	<lastBuildDate>Wed, 17 Mar 2010 06:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: idrish</title>
		<link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-11804</link>
		<dc:creator>idrish</dc:creator>
		<pubDate>Thu, 17 Dec 2009 13:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-11804</guid>
		<description>hi, very well explained tuts..thanks...need a favour
can you tell me what is wrong with this code


$(document).ready(function(){

	$(&#039;#regist&#039;).submit(function(e) {
		
		$.ajax({
		type: &quot;POST&quot;,
		url: &quot;submit1.php&quot;,
		data: $(&#039;form#regist&#039;).serialize(),
		dataType: &quot;json&quot;,
		success: function(){
			$(&quot;loading&quot;).html(&quot;here i am&quot;); 
			}
	});
		return false;
		e.preventDefault();
		
	});
	
});


this part does not seem to work....rest all is fine..i can update the DB if all conditions from submit1.php are met..also db does not get updated when conditions fail..(The page does not redirect to submit1.php, which is what i want..)
success: function(){
			$(&quot;loading&quot;).html(&quot;here i am&quot;); 
			}
thanks in advance</description>
		<content:encoded><![CDATA[<p>hi, very well explained tuts..thanks&#8230;need a favour<br />
can you tell me what is wrong with this code</p>
<p>$(document).ready(function(){</p>
<p>	$(&#8216;#regist&#8217;).submit(function(e) {</p>
<p>		$.ajax({<br />
		type: &#8220;POST&#8221;,<br />
		url: &#8220;submit1.php&#8221;,<br />
		data: $(&#8216;form#regist&#8217;).serialize(),<br />
		dataType: &#8220;json&#8221;,<br />
		success: function(){<br />
			$(&#8220;loading&#8221;).html(&#8220;here i am&#8221;);<br />
			}<br />
	});<br />
		return false;<br />
		e.preventDefault();</p>
<p>	});</p>
<p>});</p>
<p>this part does not seem to work&#8230;.rest all is fine..i can update the DB if all conditions from submit1.php are met..also db does not get updated when conditions fail..(The page does not redirect to submit1.php, which is what i want..)<br />
success: function(){<br />
			$(&#8220;loading&#8221;).html(&#8220;here i am&#8221;);<br />
			}<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Patel</title>
		<link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-8631</link>
		<dc:creator>Viral Patel</dc:creator>
		<pubDate>Mon, 15 Jun 2009 09:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-8631</guid>
		<description>Hi Luigi, Sorry, I did not understand your question. I think you want to get the values passed from Ajax in other pages? 
If this is the case then you can use normal server side script to get the data from request. For example in PHP &lt;code&gt;$_REQUEST[&quot;somefield&quot;]&lt;/code&gt; or in JSP &lt;code&gt;request.getParameter(&quot;somefield&quot;);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Luigi, Sorry, I did not understand your question. I think you want to get the values passed from Ajax in other pages?<br />
If this is the case then you can use normal server side script to get the data from request. For example in PHP <code>$_REQUEST["somefield"]</code> or in JSP <code>request.getParameter("somefield");</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luigi Zambetti</title>
		<link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-8629</link>
		<dc:creator>Luigi Zambetti</dc:creator>
		<pubDate>Mon, 15 Jun 2009 08:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-8629</guid>
		<description>And how can I get the passed values from the other pages (for example to &quot;populate&quot; some labels)?

Luis</description>
		<content:encoded><![CDATA[<p>And how can I get the passed values from the other pages (for example to &#8220;populate&#8221; some labels)?</p>
<p>Luis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: casinos con bonos</title>
		<link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-3451</link>
		<dc:creator>casinos con bonos</dc:creator>
		<pubDate>Fri, 03 Apr 2009 09:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-3451</guid>
		<description>i have seen the AJAX Post method example using JavaScript &amp; j Query so its informative so i like it very much .so can i use the AJAX post method using the c# and .net .so thanks for the nice post.i appreciate to your efforts</description>
		<content:encoded><![CDATA[<p>i have seen the AJAX Post method example using JavaScript &amp; j Query so its informative so i like it very much .so can i use the AJAX post method using the c# and .net .so thanks for the nice post.i appreciate to your efforts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nalin</title>
		<link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-3388</link>
		<dc:creator>Nalin</dc:creator>
		<pubDate>Thu, 02 Apr 2009 15:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-3388</guid>
		<description>AJAX Post method example using javascript &amp; jQuery
In the above POST method example on Ajax

You are creating –&gt;var parameters = “name=krishna&amp;age=16″; and in the below method you are using params as the variable. So Is it right way to pass as below
http.send(params); or should it be http.send(parameters);
If required Please update the site.</description>
		<content:encoded><![CDATA[<p>AJAX Post method example using javascript &amp; jQuery<br />
In the above POST method example on Ajax</p>
<p>You are creating –&gt;var parameters = “name=krishna&amp;amp;age=16″; and in the below method you are using params as the variable. So Is it right way to pass as below<br />
http.send(params); or should it be http.send(parameters);<br />
If required Please update the site.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
