I can't find the problem please help me my jquery code works in IE and Chrome but it doesn't work in firefox my code snippet is:
var dto = { 'searchObj': LogInObj };
$.ajax(
{
url: "Default.aspx/GetLogIn",
//url: "Services.asmx/HelloWorld",
data: JSON.stringify(dto),
//data:'{}',
type: "POST",
contentType: "application/json; charset=utf-8",
datatype: "Json",
success: function (result) {
var rt = result.d;
if (rt.Success) {
var data = rt.Data;
$.session.set('UserId', data[0].UserId);
var userType = data[0].UserTypeId;
if (userType == 1) {
LogInPage.GetClientInfo(data[0].UserId);
**LogInPage.SaveUserLogs();**
window.location = 'AdminManager.aspx';
}
else if (userType == 2) {
LogInPage.GetClientInfo(data[0].UserId);
LogInPage.SaveUserLogs();
window.location = 'Base.aspx';
}
else
alert('
I need to call LogInPage.SaveUserLogs() method. thanks for response
i use keyup event for text input that it doesn't work in firefox so i change it to keypress and my problem be solved. I can give more details if necessary.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.