I’m using following jquery statements to validate the user details.
$.ajax({
type: "POST",
url: "Login",
data:'uname='+encodeURIComponent(uname)+'&'+'pass='+encodeURIComponent(pass),
dataType: "json",
//if received a response from the server
success: function( data, textStatus, jqXHR) {
if(data==true)
{
$("#error").show(1500).css({visibility: "visible"});
$("#error").append("<b>success!</b>");
}
but i nee to transfer the control to other html page during success.
$("#error").show(1500).css({visibility: "visible"});
$("#error").append("<b>success!</b>");
I’m trying to change the above statements to transfer the control. Please anyone help me to solve this.
within your successful login condition use:
This tells browser to open that url using javascript