Automatically Check for Uniqueness"" when user exits username textbox?

Discussion in 'Troubleshooting' started by ezminisites, Jun 10, 2008.

  1. ezminisites

    ezminisites New Member

    Joined:
    Jul 3, 2006
    Messages:
    40
    Hi,

    Is it possible to "Check for Uniqueness" when a user finishes entering their desired username, rather than having to have the user click on "Check for Uniqueness" link?

    Can this be done within your system? Does this need to be (and can it be) a direct query into the DB (how is that done?)? Has anyone completed this?

    Warm regards,

    Mark
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    I've done this.. some things you will run into:

    1) make sure it is called on field loses focus
    2) javascript variables do not play well on smarty pages
  3. ezminisites

    ezminisites New Member

    Joined:
    Jul 3, 2006
    Messages:
    40
    Hi Skippybosco,

    Can I see where/how you implemented? I've had a developer redo my sign-up form. He is saying he needs access to the DB directly to perform this functionality.

    I have the work zipped up (bearing all functionality except this). If that might help you understand, I can send it to you?

    Warm regards,

    Mark
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    The code is already written and included from Amember.

    I make use of the uniq_login.php (not at the office but I believe that was it) file in a separate thread to do the heavy lifting and display the user feedback accordingly. Parsing the results out is where I ran into difficulties with smarty and javascript colliding.

    I had an issue initially as well where it was being triggered multiple times and calling multiple times with very bad user experience (thank goodness none of my testers had epilepsy or i surely would have sent them into convulsions)
  5. ezminisites

    ezminisites New Member

    Joined:
    Jul 3, 2006
    Messages:
    40
    Hi Skippy,

    Might you be able to quote the code you used here within this thread?

    Warm regards,

    Mark
  6. ezminisites

    ezminisites New Member

    Joined:
    Jul 3, 2006
    Messages:
    40
    "Checking for Uniqueness" automatically



    Hi Skippy,

    Might you be able to provide this code Skippy?

    Warm regards,

    Mark

Share This Page