Validating username without page load

Discussion in 'HTML & Website Design' started by MikeLiao, Oct 12, 2009.

  1. #1
    MikeLiao, Oct 12, 2009 IP
  2. jagathdesigner

    jagathdesigner Well-Known Member

    Messages:
    258
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #2
    its juz an ajax effect...nothing wonder in it
     
    jagathdesigner, Oct 12, 2009 IP
  3. MikeLiao

    MikeLiao Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes I know its Ajax, but what I want to know is how, can someone provide a sample code to do this.
     
    MikeLiao, Oct 12, 2009 IP
  4. moshdj2uk

    moshdj2uk Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your best bet is to use an AJAX framework (like glm-ajax), then read the manual for it. You should then be able to script exactly what you want.
     
    moshdj2uk, Oct 12, 2009 IP
  5. jagathdesigner

    jagathdesigner Well-Known Member

    Messages:
    258
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #5
    http://w3schools.com/ajax/ajax_database.asp

    here is the example for you....instead of showing the table ...you are going to show the username availbilty checking in database....

    put javascript action onblur instead of onchange
     
    jagathdesigner, Oct 12, 2009 IP
  6. Traffic-Bug

    Traffic-Bug Active Member

    Messages:
    1,866
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Its just jquery+ajax (xml http request) effect for this username availability check. you can look at the source to see how this is made to happen.
     
    Traffic-Bug, Oct 12, 2009 IP