function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi BRavi B 

How to check entered username is avialable or not when i give in text box using ajax

Hi
  i am new to salesforce i want this please give a sample code for this,pleas help me out
for reference i have attacthed url please check
like this :http://youhack.me/2010/05/04/username-availability-check-in-registration-form-using-jqueryphp/

please share me code if any one have
Subramani_SFDCSubramani_SFDC
check the below link...u will get some idea for dynamic search using Javascript  in visualforce

http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/


Mark it 'Best Answer' if it solves ur pbm.

Regards,
Subramani.
Trinay technology solutions
Ravi BRavi B
i createds one Student  object in that i have Firstname,username,password ,email so once student registered with xyz username when another student try to register with same username beforce clicking save button only need to check existed username
same as bellow link  using apex vf and ajax please help on this
http://phpseason.wordpress.com/2013/02/17/live-username-availability-checking-using-ajax-and-jquery/

like if ur registering gmail with exsting user name it gives imediate validation this username exist please try with another username 
Subramani_SFDCSubramani_SFDC
No need of ajax and alll for this...use this trigger for diaply mesage like you want......check the link below..modify the trigger by ur needs

http://salesforcegirl.blogspot.in/2012/02/apex-trigger-to-prevent-duplicate.html
Subramani_SFDCSubramani_SFDC
If need of Javascript with ajax use this link.....

http://wiki.developerforce.com/page/Avoid_Creation_of_Duplicate_Account_Names


Mark it 'Best Answer' if it solves ur pbm.

Regards,
Subramani.
Trinay technology solutions



Ravi BRavi B
I want to display validation message without clicking on a save button
like if ur registering gmail with exsting user name it gives imediate validation this username exist please try with another username without clicking on register button
use reference like this
:http://youhack.me/2010/05/04/username-availability-check-in-registration-form-using-jqueryphp/