<?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, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: fati</title><link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-15758</link> <dc:creator>fati</dc:creator> <pubDate>Tue, 23 Aug 2011 14:04:44 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-15758</guid> <description>Hi Viral, can you help enlighten me? how can I make your code work on file uploads such uploading image. If I pass the $_FILES[&#039;&#039;image] to the parameter, then will it be able to send the file as well?</description> <content:encoded><![CDATA[<p>Hi Viral, can you help enlighten me? how can I make your code work on file uploads such uploading image. If I pass the $_FILES[''image] to the parameter, then will it be able to send the file as well?</p> ]]></content:encoded> </item> <item><title>By: scripty</title><link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-13417</link> <dc:creator>scripty</dc:creator> <pubDate>Sun, 21 Nov 2010 19:36:45 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-13417</guid> <description>In your jquery post method,For the first argument, are you sending data to the jsp page? or are you getting data from the jsp page, may you please tell me, and why do we need json, can we do it without json?</description> <content:encoded><![CDATA[<p>In your jquery post method,</p><p>For the first argument, are you sending data to the jsp page? or are you getting data from the jsp page, may you please tell me, and why do we need json, can we do it without json?</p> ]]></content:encoded> </item> <item><title>By: plr store</title><link>http://viralpatel.net/blogs/2008/12/ajax-post-method-example-using-javascript-jquery.html/comment-page-1#comment-13254</link> <dc:creator>plr store</dc:creator> <pubDate>Mon, 25 Oct 2010 15:08:59 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=316#comment-13254</guid> <description>sweet code,idrish, the page wont redirect, to submit1.php, it will fetch that page&#039;s content and update it within a div or any tag that you specify.</description> <content:encoded><![CDATA[<p>sweet code,</p><p>idrish, the page wont redirect, to submit1.php, it will fetch that page&#8217;s content and update it within a div or any tag that you specify.</p> ]]></content:encoded> </item> <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 AjaxYou 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>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 10:17:27 -->
