<?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: jQuery PHP &amp; MySQL Username Availability Checker</title>
	<atom:link href="http://papermashup.com/jquery-php-mysql-username-availability-checker/feed/" rel="self" type="application/rss+xml" />
	<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/</link>
	<description>Ashley Ford :: CSS &#124; PHP &#124; JavaScript</description>
	<lastBuildDate>Wed, 28 Jul 2010 15:36:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Joyel Puryear</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2751</link>
		<dc:creator>Joyel Puryear</dc:creator>
		<pubDate>Tue, 29 Jun 2010 14:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2751</guid>
		<description>I just recently implemented what you showed here in your blog. It is very affective. I wanted to offer another bit of feedback on how to slow some of the hit on the server (if your validating by email address).  If your validating by email address then you can validate on valid email address. Meaning along with 4 characters, if you also check to make sure it&#039;s a valid email BEFORE hitting the server it&#039;ll restrict some of the flow to the server.  However you can only do that if it&#039;s a email address that&#039;s being used as the username (which ends up happening a lot, at least in the systems I build).

Either way it was a great idea and a very nice/clear implementation.

-----
www.infotechnologist.biz
www.realmofwriting.com</description>
		<content:encoded><![CDATA[<p>I just recently implemented what you showed here in your blog. It is very affective. I wanted to offer another bit of feedback on how to slow some of the hit on the server (if your validating by email address).  If your validating by email address then you can validate on valid email address. Meaning along with 4 characters, if you also check to make sure it&#8217;s a valid email BEFORE hitting the server it&#8217;ll restrict some of the flow to the server.  However you can only do that if it&#8217;s a email address that&#8217;s being used as the username (which ends up happening a lot, at least in the systems I build).</p>
<p>Either way it was a great idea and a very nice/clear implementation.</p>
<p>&#8212;&#8211;<br />
<a href="http://www.infotechnologist.biz" rel="nofollow">http://www.infotechnologist.biz</a><br />
<a href="http://www.realmofwriting.com" rel="nofollow">http://www.realmofwriting.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2672</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Wed, 09 Jun 2010 12:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2672</guid>
		<description>@ Gary,

I&#039;d recommend adding javascript email validation to the input field then on the callback if the email is valid run the function to see if the email exists in the database, so you&#039;ll always be checking valid email addresses against the database minimising database connections.</description>
		<content:encoded><![CDATA[<p>@ Gary,</p>
<p>I&#8217;d recommend adding javascript email validation to the input field then on the callback if the email is valid run the function to see if the email exists in the database, so you&#8217;ll always be checking valid email addresses against the database minimising database connections.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gary</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2670</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Wed, 09 Jun 2010 11:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2670</guid>
		<description>Hi,
I want to check if an email exists. I have used this on the email field but if you put an incomplete email it will accept it and show a green tick and border.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I want to check if an email exists. I have used this on the email field but if you put an incomplete email it will accept it and show a green tick and border.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominican Republic villas</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2639</link>
		<dc:creator>Dominican Republic villas</dc:creator>
		<pubDate>Sun, 06 Jun 2010 15:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2639</guid>
		<description>Excellent, I tried it and it worked like a charm. I`m into a lot of programming for the company I work for.</description>
		<content:encoded><![CDATA[<p>Excellent, I tried it and it worked like a charm. I`m into a lot of programming for the company I work for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2586</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Wed, 26 May 2010 21:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2586</guid>
		<description>&lt;i&gt;Sometimes, when you type very fast, and it switches the cross for the checkmark or vice-versa, it liked to &#8220;skip&#8221; to hide() the old icon for me, and I ended up having both icons showing next to each other. I&#8217;m assuming this can happen when the routines overlap, especially when you add in more than just hide() and fadeIn() like I did. For example, I am also filling a nice message into a notice box with html() before I call hide() and fadeIn().+1&lt;/i&gt;
+1</description>
		<content:encoded><![CDATA[<p><i>Sometimes, when you type very fast, and it switches the cross for the checkmark or vice-versa, it liked to &#8220;skip&#8221; to hide() the old icon for me, and I ended up having both icons showing next to each other. I&#8217;m assuming this can happen when the routines overlap, especially when you add in more than just hide() and fadeIn() like I did. For example, I am also filling a nice message into a notice box with html() before I call hide() and fadeIn().+1</i><br />
+1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tutu</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2563</link>
		<dc:creator>tutu</dc:creator>
		<pubDate>Fri, 21 May 2010 04:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2563</guid>
		<description>I can&#039;t retrieve a set usernames from my database. how can i do it with the php page?where should i change?? Can you help me Ashley??

thanx in advance</description>
		<content:encoded><![CDATA[<p>I can&#8217;t retrieve a set usernames from my database. how can i do it with the php page?where should i change?? Can you help me Ashley??</p>
<p>thanx in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tubedownloader.com</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2556</link>
		<dc:creator>tubedownloader.com</dc:creator>
		<pubDate>Thu, 20 May 2010 07:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2556</guid>
		<description>&lt;i&gt;Sometimes, when you type very fast, and it switches the cross for the checkmark or vice-versa, it liked to &#8220;skip&#8221; to hide() the old icon for me, and I ended up having both icons showing next to each other. I&#8217;m assuming this can happen when the routines overlap, especially when you add in more than just hide() and fadeIn() like I did. For example, I am also filling a nice message into a notice box with html() before I call hide() and fadeIn().&lt;/i&gt;
+1</description>
		<content:encoded><![CDATA[<p><i>Sometimes, when you type very fast, and it switches the cross for the checkmark or vice-versa, it liked to &#8220;skip&#8221; to hide() the old icon for me, and I ended up having both icons showing next to each other. I&#8217;m assuming this can happen when the routines overlap, especially when you add in more than just hide() and fadeIn() like I did. For example, I am also filling a nice message into a notice box with html() before I call hide() and fadeIn().</i><br />
+1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MP</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2479</link>
		<dc:creator>MP</dc:creator>
		<pubDate>Wed, 21 Apr 2010 16:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2479</guid>
		<description>How do you check the usernames? What if I want to fill an array with names and check against it?</description>
		<content:encoded><![CDATA[<p>How do you check the usernames? What if I want to fill an array with names and check against it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nomi</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2226</link>
		<dc:creator>Nomi</dc:creator>
		<pubDate>Mon, 15 Feb 2010 10:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2226</guid>
		<description>hey Ashley, good stuff man.. i just came across your site and its very useful ... keep it up</description>
		<content:encoded><![CDATA[<p>hey Ashley, good stuff man.. i just came across your site and its very useful &#8230; keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobsoap</title>
		<link>http://papermashup.com/jquery-php-mysql-username-availability-checker/comment-page-1/#comment-2219</link>
		<dc:creator>bobsoap</dc:creator>
		<pubDate>Sat, 13 Feb 2010 21:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=1033#comment-2219</guid>
		<description>Great write-up, thanks for sharing. I already put it to good use and I&#039;d like to add a tiny performance issue that I came across - and fixed:

Sometimes, when you type very fast, and it switches the cross for the checkmark or vice-versa, it liked to &quot;skip&quot; to hide() the old icon for me, and I ended up having both icons showing next to each other. I&#039;m assuming this can happen when the routines overlap, especially when you add in more than just hide() and fadeIn() like I did. For example, I am also filling a nice message into a notice box with html() before I call hide() and fadeIn().

To fix this, I simply added the fadeIn() inside of a function of hide(). My logic was that when it ges reduced to a single function, it&#039;s less likely that it gets skipped when you type fast. It works so far for me.

On line 25 of your above code, you have

&lt;code&gt;
$(&#039;#tick&#039;).hide();
$(&#039;#cross&#039;).fadeIn();
&lt;/code&gt;

...and I changed that to

&lt;code&gt;
$(&#039;#tick&#039;).hide(100, function() {
	$(this).parent().find(&#039;#cross&#039;).fadeIn(400);
});
&lt;/code&gt;

Same for the ELSE part.

It&#039;s only a minor thing but I hope it helps. Thanks again Ashley for your great post!</description>
		<content:encoded><![CDATA[<p>Great write-up, thanks for sharing. I already put it to good use and I&#8217;d like to add a tiny performance issue that I came across &#8211; and fixed:</p>
<p>Sometimes, when you type very fast, and it switches the cross for the checkmark or vice-versa, it liked to &#8220;skip&#8221; to hide() the old icon for me, and I ended up having both icons showing next to each other. I&#8217;m assuming this can happen when the routines overlap, especially when you add in more than just hide() and fadeIn() like I did. For example, I am also filling a nice message into a notice box with html() before I call hide() and fadeIn().</p>
<p>To fix this, I simply added the fadeIn() inside of a function of hide(). My logic was that when it ges reduced to a single function, it&#8217;s less likely that it gets skipped when you type fast. It works so far for me.</p>
<p>On line 25 of your above code, you have</p>
<p><code><br />
$('#tick').hide();<br />
$('#cross').fadeIn();<br />
</code></p>
<p>&#8230;and I changed that to</p>
<p><code><br />
$('#tick').hide(100, function() {<br />
	$(this).parent().find('#cross').fadeIn(400);<br />
});<br />
</code></p>
<p>Same for the ELSE part.</p>
<p>It&#8217;s only a minor thing but I hope it helps. Thanks again Ashley for your great post!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
