-1
私はこのJavaScriptコードを持って、そのページにメッセージを表示しますリダイレクトがページをサインインして<strong>data.rval ==は2</strong>それは<strong></strong>サインインページにリダイレクトする必要があり、そのページのみにメッセージを表示する場合は、このシナリオでは、唯一の
if(data.rval == 1) {
window.location = "/offerletter/index";
Application.PageAlertBox.Show('Sucess', ['Successfully Loggedin.']);
} else if(data.rval == 2) {
window.location = "/signin";
Application.PageAlertBox.Show('info', ['OTP is Expired, New OTP has been sent on official email id, Please try again.']);
} else if(data.rval == -4) {
Application.PageAlertBox.Show('error', ['OTP is Invalid. Please Enter correct OTP.']);
} else {
Application.PageAlertBox.Show('error', [data.Message]);
}
と問題がありますか...? –
、その変数をエスケープすることを忘れないでください:) https://stackoverflow.com/questions/168214/pass-a-php-string-to-a-javascript-variable-and-escape-newlines – apincik