0

これを追加する方法:

タイプ: "POST"、url: "login.php"、以下の JS コード内 (正確にはコメント内で "do your ajax call and processing here...":

$(document).ready(function()
    {
        $("#submit_butt").click( function()
        {
            var conf =
            {
                frequency: 5000,
                spread: 5,
                duration: 600
            };
        /* do your AJAX call and processing here...
        ....
        ....
        */
        // this is the call we make when the AJAX callback function indicates a login failure 
            $("#login").vibrate(conf);
            // let's also display a notification
            if($("#errormsg").text() == "")
            {
            $("#loginform").append();       
            // clear the fields to discourage brute forcing :)
            $("#password").val("");
            document.forms['login_form'].elements['username'].focus();
            }
            else
            {

            }
        });
    });
4

2 に答える 2

0

交換

/* do your AJAX call and processing here...
....
....
*/

$.ajax({
 type: "POST",
 url: "login.php"
});
于 2012-09-07T03:58:08.473 に答える
0

Ajax 処理用にこのコードを追加します

$.ajax({
  url: "login.php",
  data: param, 
  success: function(result) {
        alert('SUCCESS');
  }
});
于 2012-09-07T04:05:58.740 に答える