<?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 with jQuery: A Simple Login Example</title>
	<atom:link href="http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/</link>
	<description>a blog about web and game development</description>
	<lastBuildDate>Mon, 08 Mar 2010 16:36:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Swetz</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-422</link>
		<dc:creator>Swetz</dc:creator>
		<pubDate>Wed, 10 Feb 2010 08:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-422</guid>
		<description>just for your reference i have this code which is showing error

$(document).ready(function(){
		$(&#039;#error&#039;).hide();
		$(&#039;form[name=loginform]&#039;).submit(function(){
			$(&#039;#error&#039;).slideUp();
			$.post(&#039;/ajax.php&#039;),{username: $(&#039;[name=username]&#039;).val(), password: $(&#039;[name=password]&#039;).val()}, function(data) {
					if(data.success)
					{
						location.href = data.redirect;
					}
					else
					{
						$(&#039;#error&#039;).html(data.message).slideDown();
					}
			}, &#039;json&#039;);
			return false;
		});
	});</description>
		<content:encoded><![CDATA[<p>just for your reference i have this code which is showing error</p>
<p>$(document).ready(function(){<br />
		$(&#8216;#error&#8217;).hide();<br />
		$(&#8216;form[name=loginform]&#8216;).submit(function(){<br />
			$(&#8216;#error&#8217;).slideUp();<br />
			$.post(&#8216;/ajax.php&#8217;),{username: $(&#8216;[name=username]&#8216;).val(), password: $(&#8216;[name=password]&#8216;).val()}, function(data) {<br />
					if(data.success)<br />
					{<br />
						location.href = data.redirect;<br />
					}<br />
					else<br />
					{<br />
						$(&#8216;#error&#8217;).html(data.message).slideDown();<br />
					}<br />
			}, &#8216;json&#8217;);<br />
			return false;<br />
		});<br />
	});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swetz</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-421</link>
		<dc:creator>Swetz</dc:creator>
		<pubDate>Wed, 10 Feb 2010 08:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-421</guid>
		<description>hey very nice tut.. i wrote the code same like urs.. but im getting this error in firebug 

missing ; before statement
}, &#039;json&#039;);

m very new to jquery.. so not sure wat its telling me to do. can u plz help?

thanks a lot</description>
		<content:encoded><![CDATA[<p>hey very nice tut.. i wrote the code same like urs.. but im getting this error in firebug </p>
<p>missing ; before statement<br />
}, &#8216;json&#8217;);</p>
<p>m very new to jquery.. so not sure wat its telling me to do. can u plz help?</p>
<p>thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn McCool</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-417</link>
		<dc:creator>Shawn McCool</dc:creator>
		<pubDate>Sun, 07 Feb 2010 17:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-417</guid>
		<description>@Johnny

I&#039;ll be adding the code to the post shortly.</description>
		<content:encoded><![CDATA[<p>@Johnny</p>
<p>I&#8217;ll be adding the code to the post shortly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-415</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Sun, 07 Feb 2010 06:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-415</guid>
		<description>wish the code was available this is what im looking for.. but stopping and typing out the code is going to be a pain.

i also need to convert this to a mysql check too

thanks for the tut tho</description>
		<content:encoded><![CDATA[<p>wish the code was available this is what im looking for.. but stopping and typing out the code is going to be a pain.</p>
<p>i also need to convert this to a mysql check too</p>
<p>thanks for the tut tho</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indra</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-388</link>
		<dc:creator>indra</dc:creator>
		<pubDate>Fri, 22 Jan 2010 16:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-388</guid>
		<description>veryyyyyyy usefull thank, you so awesome</description>
		<content:encoded><![CDATA[<p>veryyyyyyy usefull thank, you so awesome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diraj</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-372</link>
		<dc:creator>Diraj</dc:creator>
		<pubDate>Wed, 06 Jan 2010 16:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-372</guid>
		<description>Great job!....I have gone through some many tutorials before but I dint get anything out of them, but this one helped me to understand step by step..</description>
		<content:encoded><![CDATA[<p>Great job!&#8230;.I have gone through some many tutorials before but I dint get anything out of them, but this one helped me to understand step by step..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: widi dwi</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-371</link>
		<dc:creator>widi dwi</dc:creator>
		<pubDate>Wed, 30 Dec 2009 12:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-371</guid>
		<description>wow .... this tutorial is help me alot ,thx. i`ll wait for another tutorial ..</description>
		<content:encoded><![CDATA[<p>wow &#8230;. this tutorial is help me alot ,thx. i`ll wait for another tutorial ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy Crompton</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-344</link>
		<dc:creator>Amy Crompton</dc:creator>
		<pubDate>Sun, 06 Dec 2009 15:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-344</guid>
		<description>Great example that degrades very well. 

Thanks</description>
		<content:encoded><![CDATA[<p>Great example that degrades very well. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. Haynes</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-332</link>
		<dc:creator>Mr. Haynes</dc:creator>
		<pubDate>Thu, 26 Nov 2009 15:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-332</guid>
		<description>I have tried several times but I cannot get the error message piece to work, it just does not show up?







Log In





Username: 
Password: 





&lt;/html</description>
		<content:encoded><![CDATA[<p>I have tried several times but I cannot get the error message piece to work, it just does not show up?</p>
<p>Log In</p>
<p>Username:<br />
Password: </p>
<p>&lt;/html</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn McCool</title>
		<link>http://shawnmccool.com/2009/04/15/ajax-with-jquery-a-simple-login-example/comment-page-1/#comment-303</link>
		<dc:creator>Shawn McCool</dc:creator>
		<pubDate>Sun, 08 Nov 2009 20:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://shawnmccool.com/?p=259#comment-303</guid>
		<description>@Gagan

You need to make sure that your ajax_login.php is only returning a json object, no additional data.  One good way to do this would be to use the Firefox extension &quot;Firebug&quot;.  You can open the firebug console and enable it for your page.  Then, when you try to execute your script you&#039;ll see the specific call it makes to ajax_login.php.  You&#039;ll be able to see both what is sent (the request) and the response.  The response must be a valid json object.  I notice that you&#039;re &#039;echo&#039;ing quite a few extra values.  I understand that this may have been debug code, but it will break jQuery&#039;s interpretation of the results.</description>
		<content:encoded><![CDATA[<p>@Gagan</p>
<p>You need to make sure that your ajax_login.php is only returning a json object, no additional data.  One good way to do this would be to use the Firefox extension &#8220;Firebug&#8221;.  You can open the firebug console and enable it for your page.  Then, when you try to execute your script you&#8217;ll see the specific call it makes to ajax_login.php.  You&#8217;ll be able to see both what is sent (the request) and the response.  The response must be a valid json object.  I notice that you&#8217;re &#8216;echo&#8217;ing quite a few extra values.  I understand that this may have been debug code, but it will break jQuery&#8217;s interpretation of the results.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
