Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member Noteleklabs's Avatar
    Join Date
    Jun 2012
    Location
    NC
    Posts
    217
    Member #
    31890
    Liked
    28 times

    Javascript bug driving me crazy

    Ahoy Hoy!
    I am doing some work for a friend of mine, and while I realize this is probably going to be a stupid bug, I'm asking for help anyway. Whenever I run thing function, I always get back undefined, no matter what auth.php returns. Help?

    Code:
    function sendCredentials(){                
                    var pass = $('.pass').val();
                    var hash = CryptoJS.SHA512(pass+CryptoJS.SHA512(pass)).toString();
                    var email = $('.email').val();
                    var dataString = 'email='+ email + '&hash=' + hash + '&area=client';
                    $.ajax({
                      type: "POST",
                      url: "auth.php",
                      data: dataString
                    }).done(function ( respce ) {
                        return respce;
                    });
                }
    Hey you! Go make something!

  2.  

  3. #2
    Senior Member Noteleklabs's Avatar
    Join Date
    Jun 2012
    Location
    NC
    Posts
    217
    Member #
    31890
    Liked
    28 times
    Nevermind, solved it by removing the function and adding it without
    Hey you! Go make something!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:47 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com