0

ここで、フォームを送信して js ファイルの検証をチェックすると、kickerLogin() 関数が呼び出されます の警告メッセージが表示されますがdatastring、これは ajax で言及されている私の URL には送信されませんが、送信されます..... .....

function kickerLogin(){
    alert('hello friends');
    dataString=$('form[name=kickerLog]').serialize();
    alert(dataString);
    $.ajax({
        type:"POST",
        url:"<?php echo $GLOBALS['base_url']; ?>ajax/user-ajax.php?mode=kickerLogin",
        cache: false,
        data: dataString,
        dataType: "json",

        success: function(data) {
            alert(data);
                if(data.success == "yes")
                {   
                    $('#kickerLog').submit();   
                }
                else if(data.success == "no")
                { 
                    if(data.status=="emailfail"){
                    $('li.log_error').show();
                     $('li.log_error').html("Email id not verified");
                    } 
                    else if(data.status=="rejected"){
                        alert("Your account is inactive by admin");
                    } 

                 else{  
                     $('li.log_error').show();
                     $('li.log_error').html("Invalid Email / Password");
                     $("#loginEmail").css("border","1px solid red");        
                     $("#loginPassword").css("border","1px solid red");    
                 }
                }

                else {
                    alert(" Occured internal Error.please check network connection" );
                }
        }
    });
}
4

3 に答える 3