|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions post uapi |
post uapi |
aligassan, http://api.jquery.com/jquery.post/
Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them. |
Code function loginsub() { $(".login-progress").addClass("checking"); usr = $("#usrnm").val(); pswd = $("#pswd").val(); $("#usrnm,#pswd").prop("disabled", true); $.ajax({ type: "POST", url: "/index/sub", data: {user:usr, password:pswd, a:2, ajax:1, rnd:0}, success: function(data) { var result = $(data).find("cmd[p=\"innerHTML\"]").text(); $("#resultsappd").html(result).css("display","none"); var errorc = $("#resultsappd div .myWinLoadSF").attr("title"); var successc = $("#resultsappd div div").hasClass("myWinLoadSD"); console.log(successc); if(successc == true) { $(".login-progress").removeClass("checking"); $(".login-progress").addClass("success"); location.reload(); } else if(errorc == "Your IP address has been temporarily blocked" || "Wrong username or password") { $(".login-progress").removeClass("checking"); } else { $(".login-progress").removeClass("checking"); } $("#usrnm,#pswd").prop("disabled", false); }, error: function(e) { $(".login-progress").removeClass("checking"); console.log("Connection Issue"); }, dataType: "xml" }); return false; } Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them. |
| |||
| |||