Ajax Success function not fireing?
I cannot for the life of of me figure out why the success function on this ajax call does not fire.
according to firebug it is returning a valid response and the success function should fire.... but it doesn’t
$.ajax({
type: 'POST',
url: '<%=ServerRoot%>/scripts/asp/Handle.asp?value=ChangePassword',
data: $('#Pwd-frm').serialize(),
dataType: 'JSON',
success: function(result,status){
if (result.Error=='None')
{
$('#Pwd-Msg').html('<p>'+ result.Message +'</p>');
}
else
{
$('#dialog-modal').dialog('option', 'title', 'Record Error');
$('#dialog-modal').html('<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>'+ result.Error +'</p>');
$('#dialog-modal').dialog( "open" );
$( this ).dialog( "close" );
}
}
});
Any help would be wonderful
thanks