SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: AJAX login

  1. #1
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AJAX login

    I'm looking to create a log in with just ajax, i.e. so that the page doesn't need to be refreshed for log in..

    ..of course this would need to contact the database - which I can do via a XMLHttpRequest but I cannot seem to figure out how to get info back - i.e. if the login was successful (was the username and password found) .. can anyone help me as to how I would do that <<

    > with thanks

  2. #2
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    shall I assume that no one in this forum knows?

    _thanks anyway

  3. #3
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    4,998
    Mentioned
    100 Post(s)
    Tagged
    0 Thread(s)
    You should not rely solely of AJAX as the end user may have javascript disabled. Are you still running the login attempts via whatever server-side language your using. As a rule of thumb you should never trust any user submitted data, you should escape and validate it in whatever server-side language your using.
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  4. #4
    Learning...
    Join Date
    Jan 2003
    Posts
    778
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    jQuery:

    http://roshanbh.com.np/2008/04/ajax-...hp-jquery.html

    Creating such a system involves posting the user input to the server side then returning the response back to the client.

    Take a look at these also (post #5 and #7):
    http://www.sitepoint.com/forums/showthread.php?t=639320
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  5. #5
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tahirjadoon View Post
    jQuery:

    http://roshanbh.com.np/2008/04/ajax-...hp-jquery.html

    Creating such a system involves posting the user input to the server side then returning the response back to the client.

    Take a look at these also (post #5 and #7):
    http://www.sitepoint.com/forums/showthread.php?t=639320
    excellent script on the first link - really inciteful >> much obliged - thanks!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •