<?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: check username availability in ajax and php using jquery&#8217;s fading effect</title>
	<atom:link href="http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Sun, 14 Mar 2010 01:15:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Greenberg</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-5140</link>
		<dc:creator>David Greenberg</dc:creator>
		<pubDate>Mon, 08 Feb 2010 05:14:07 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-5140</guid>
		<description>Thanks for posting it.  Being new to Ajax, I had to work through a number of -- perhaps obvious -- user mistakes before I finally got the code working.  But now, it works great.

I also appreciate the code enhancement suggestions from other comments.</description>
		<content:encoded><![CDATA[<p>Thanks for posting it.  Being new to Ajax, I had to work through a number of &#8212; perhaps obvious &#8212; user mistakes before I finally got the code working.  But now, it works great.</p>
<p>I also appreciate the code enhancement suggestions from other comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-5058</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Mon, 18 Jan 2010 05:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-5058</guid>
		<description>oh, for totally cool effect, I changed the css to this:

.messagebox{ background:#ffc;}
.messageboxok{ background:#C9FFCA; color:#008000;}
.messageboxerror{ background:#F7CBCA; color:#CC0000;}


Change #msgbox to #username in the script and the input box itself will turn to red or green to show if the username is available or not.</description>
		<content:encoded><![CDATA[<p>oh, for totally cool effect, I changed the css to this:</p>
<p>.messagebox{ background:#ffc;}<br />
.messageboxok{ background:#C9FFCA; color:#008000;}<br />
.messageboxerror{ background:#F7CBCA; color:#CC0000;}</p>
<p>Change #msgbox to #username in the script and the input box itself will turn to red or green to show if the username is available or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-5057</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Mon, 18 Jan 2010 05:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-5057</guid>
		<description>For thos who are having problems with always getting &#039;Username is available&#039;, try this to debug:

Change these two lines
$(this).html(‘User name available to register’).addClass(‘messageboxok’).fadeTo(900,1);
$(this).html(‘This User name Already exists’).addClass(‘messageboxerror’).fadeTo(900,1);
to 
$(this).html(data).addClass(‘messageboxok’).fadeTo(900,1);]
$(this).html(data).addClass(‘messageboxerror’).fadeTo(900,1);

and you will see what your php page is actually returning. You can then work out what&#039;s going wrong. FWIW i couldn&#039;t get it to work until i changed the yes/no to 1/0 as advised by kevin as above.

Useful way to learn how to process an ajax query through a dbase.

cheers</description>
		<content:encoded><![CDATA[<p>For thos who are having problems with always getting &#8216;Username is available&#8217;, try this to debug:</p>
<p>Change these two lines<br />
$(this).html(‘User name available to register’).addClass(‘messageboxok’).fadeTo(900,1);<br />
$(this).html(‘This User name Already exists’).addClass(‘messageboxerror’).fadeTo(900,1);<br />
to<br />
$(this).html(data).addClass(‘messageboxok’).fadeTo(900,1);]<br />
$(this).html(data).addClass(‘messageboxerror’).fadeTo(900,1);</p>
<p>and you will see what your php page is actually returning. You can then work out what&#8217;s going wrong. FWIW i couldn&#8217;t get it to work until i changed the yes/no to 1/0 as advised by kevin as above.</p>
<p>Useful way to learn how to process an ajax query through a dbase.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saiful103a</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-5038</link>
		<dc:creator>saiful103a</dc:creator>
		<pubDate>Wed, 13 Jan 2010 23:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-5038</guid>
		<description>great post. now it&#039;s more clear to me about ajax-php then before..</description>
		<content:encoded><![CDATA[<p>great post. now it&#8217;s more clear to me about ajax-php then before..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matvespa</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-5006</link>
		<dc:creator>matvespa</dc:creator>
		<pubDate>Sun, 03 Jan 2010 09:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-5006</guid>
		<description>Thanks zia!!!....MANY MANY THANKS!...the code works fine!...I LOVE IT!!</description>
		<content:encoded><![CDATA[<p>Thanks zia!!!&#8230;.MANY MANY THANKS!&#8230;the code works fine!&#8230;I LOVE IT!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiranmai</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-5002</link>
		<dc:creator>kiranmai</dc:creator>
		<pubDate>Thu, 31 Dec 2009 07:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-5002</guid>
		<description>Hi


I saw tha code u wrote , Its really Waste Code I ever seen.. Very Poor Coding ...
Dont post these type of codes and waste Users valuable time !!!~!!</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I saw tha code u wrote , Its really Waste Code I ever seen.. Very Poor Coding &#8230;<br />
Dont post these type of codes and waste Users valuable time !!!~!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zia</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4977</link>
		<dc:creator>zia</dc:creator>
		<pubDate>Sun, 27 Dec 2009 08:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4977</guid>
		<description>try this http://ignati.com/complete-list-of-ajax-username-availability-checker/</description>
		<content:encoded><![CDATA[<p>try this <a href="http://ignati.com/complete-list-of-ajax-username-availability-checker/" rel="nofollow">http://ignati.com/complete-list-of-ajax-username-availability-checker/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matvespa</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4972</link>
		<dc:creator>matvespa</dc:creator>
		<pubDate>Fri, 25 Dec 2009 03:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4972</guid>
		<description>mysql_connect($host, $db_username, $db_password) or die (&quot;Can&#039;t connect to Datebase&quot;);
mysql_select_db($db_name) or die (&quot;Couldn&#039;t successfully connected&quot;);


$username=$_POST[&#039;username&#039;];
$query=(&quot;Select * from $tb_name where UserEmail=&#039;$username&#039;&quot;);
$result= mysql_query($query);
$num=mysql_num_rows($result);
if ($num &gt; 0) {//Username already exist
echo &quot;no&quot;;
}else{
echo &quot;yes&quot;;
}

I have declare the connection before the code. But still, with this, even if my username exist, it says &quot;Available to Register&quot;. Why?</description>
		<content:encoded><![CDATA[<p>mysql_connect($host, $db_username, $db_password) or die (&#8220;Can&#8217;t connect to Datebase&#8221;);<br />
mysql_select_db($db_name) or die (&#8220;Couldn&#8217;t successfully connected&#8221;);</p>
<p>$username=$_POST['username'];<br />
$query=(&#8220;Select * from $tb_name where UserEmail=&#8217;$username&#8217;&#8221;);<br />
$result= mysql_query($query);<br />
$num=mysql_num_rows($result);<br />
if ($num &gt; 0) {//Username already exist<br />
echo &#8220;no&#8221;;<br />
}else{<br />
echo &#8220;yes&#8221;;<br />
}</p>
<p>I have declare the connection before the code. But still, with this, even if my username exist, it says &#8220;Available to Register&#8221;. Why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pligg.com</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4928</link>
		<dc:creator>pligg.com</dc:creator>
		<pubDate>Thu, 17 Dec 2009 19:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4928</guid>
		<description>&lt;strong&gt;check username availability in ajax and php &#124; ajax username checker...&lt;/strong&gt;

In this post,I&#039;ll show you how to make a fancy username availability checking in ajax and php using jquery.When, you check the the username avaiability a fancy message box will show you the message with a little bit of animation. If you are looking fo...</description>
		<content:encoded><![CDATA[<p><strong>check username availability in ajax and php | ajax username checker&#8230;</strong></p>
<p>In this post,I&#8217;ll show you how to make a fancy username availability checking in ajax and php using jquery.When, you check the the username avaiability a fancy message box will show you the message with a little bit of animation. If you are looking fo&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sweety</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4911</link>
		<dc:creator>sweety</dc:creator>
		<pubDate>Tue, 15 Dec 2009 14:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4911</guid>
		<description>hi Roshan
i am totally new in this topic but i think you can help me
if i want to check the usernames on the server and want list of them what should i do?
that way i can get more option to choose nice nickname :)
can you plz mail me that script ?
thanks in advance</description>
		<content:encoded><![CDATA[<p>hi Roshan<br />
i am totally new in this topic but i think you can help me<br />
if i want to check the usernames on the server and want list of them what should i do?<br />
that way i can get more option to choose nice nickname <img src='http://roshanbh.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
can you plz mail me that script ?<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Techie Talks</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4886</link>
		<dc:creator>Techie Talks</dc:creator>
		<pubDate>Wed, 09 Dec 2009 15:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4886</guid>
		<description>This is the easiest code I have seen.  Though there are lot of them who copied the post hope they recognized the author.  Thanks for your code!</description>
		<content:encoded><![CDATA[<p>This is the easiest code I have seen.  Though there are lot of them who copied the post hope they recognized the author.  Thanks for your code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Insurance</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4813</link>
		<dc:creator>Insurance</dc:creator>
		<pubDate>Fri, 13 Nov 2009 10:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4813</guid>
		<description>great post Roshan..

I really Love this jquery plugin..

Thanks for sharing it.. : )</description>
		<content:encoded><![CDATA[<p>great post Roshan..</p>
<p>I really Love this jquery plugin..</p>
<p>Thanks for sharing it.. : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivo</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4787</link>
		<dc:creator>Ivo</dc:creator>
		<pubDate>Wed, 04 Nov 2009 17:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4787</guid>
		<description>Hi everyone,

If you copied the code from the website your script won&#039;t work, because this rule is forgotten

$(document).ready(function()

Good luck everyone &amp; thnx roshan</description>
		<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>If you copied the code from the website your script won&#8217;t work, because this rule is forgotten</p>
<p>$(document).ready(function()</p>
<p>Good luck everyone &amp; thnx roshan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 55 ??????? PHP ???? ???? ??? ?? &#171; ?????? ????? ????? ?? ???? ? ?????? ????? ? ??? ??</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4770</link>
		<dc:creator>55 ??????? PHP ???? ???? ??? ?? &#171; ?????? ????? ????? ?? ???? ? ?????? ????? ? ??? ??</dc:creator>
		<pubDate>Mon, 02 Nov 2009 21:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4770</guid>
		<description>[...] 53)Check username availability in ajax and php using jquery’s fading effect This tutorial explains how to check username availability in ajax and php using jquery’s fading effect for showing the various messages. [...]</description>
		<content:encoded><![CDATA[<p>[...] 53)Check username availability in ajax and php using jquery’s fading effect This tutorial explains how to check username availability in ajax and php using jquery’s fading effect for showing the various messages. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html/comment-page-3#comment-4760</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sun, 01 Nov 2009 17:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html#comment-4760</guid>
		<description>Great program THANKS!  Just a few questions.
1. It appears if you tab out of the field before entering anything the program returns &quot;that name is available&quot;. 
   - How would you catch this so that if the user tabs out of the field without entering a username the message &quot;you must enter a user name&quot; would appear?

2. Secondly, if a username that already exists is entered, is there a way for the script to clear the field box, and place the cursor in that field box so the user can immediately start typing another name?  This along with my first questions, will help ensure that #1 the field isnt left blank, and #2 reduces the likelyhood that they continue the form without changing the already existing username. Because at it stands, if the username currently exists, the message &quot;that name already exists&quot; pops up, but the name they entered remains in the field box waiting for them to submit the form.

If there is a simple fix to either of these solutions, can you post the appropriate code and location to place it?  

Thanks a bunch man, this is a great script, and with a few minor adjustments this can be perfected.</description>
		<content:encoded><![CDATA[<p>Great program THANKS!  Just a few questions.<br />
1. It appears if you tab out of the field before entering anything the program returns &#8220;that name is available&#8221;.<br />
   &#8211; How would you catch this so that if the user tabs out of the field without entering a username the message &#8220;you must enter a user name&#8221; would appear?</p>
<p>2. Secondly, if a username that already exists is entered, is there a way for the script to clear the field box, and place the cursor in that field box so the user can immediately start typing another name?  This along with my first questions, will help ensure that #1 the field isnt left blank, and #2 reduces the likelyhood that they continue the form without changing the already existing username. Because at it stands, if the username currently exists, the message &#8220;that name already exists&#8221; pops up, but the name they entered remains in the field box waiting for them to submit the form.</p>
<p>If there is a simple fix to either of these solutions, can you post the appropriate code and location to place it?  </p>
<p>Thanks a bunch man, this is a great script, and with a few minor adjustments this can be perfected.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
