问题在于Google Chrome似乎不适用于我网站的许多用户。我还不确定他们是否都在使用Vista,但我知道有些是。我使用的是Windows 7,它适用于我。我已经确定他们有最新版本的Chrome,我也是。我可能会遇到什么问题?
我的猜测是它与编码URL有关,因为不起作用的功能涉及到另一页的Javascript POST。
Okey,这就是它的样子: function searchDB(){ $( “transparent_class”)显示();
strHolder = $('#tbxSearchFor').val().replace("å", "char01").replace("ä", "char02").replace("ö", "char03");
for (i = 0; i < 10; i++)
strHolder = strHolder.replace("å", "char01").replace("ä", "char02").replace("ö", "char03");
vTxtBox = '&vTxtBox=' + encodeURIComponent(strHolder);
vResultHasTo = "&vResultHasTo=1";
vChangedAfter = '&vChangedAfter=' + $('#tbxChangedAfter').val();
vChangedBefore = '&vChangedBefore=' + $('#tbxChangedBefore').val();
vCreatedAfter = '&vCreatedAfter=' + $('#tbxCreatedAfter').val();
vCreatedBefore = '&vCreatedBefore=' + $('#tbxCreatedBefore').val();
if ($('#cbSearchNode').is(':checked')) {
vSearchNode = '&vSearchNode=' + $('#hfSelectedNode').val();
}
else
vSearchNode = '&vSearchNode=false';
if ($('#cbSearchDescription').is(':checked')) {
vSearchDescription = '&vSearchDescription=true';
}
else
vSearchDescription = '&vSearchDescription=false';
if ($('#cbSearchAdminDescription').is(':checked')) {
vSearchAdminDescription = '&vSearchAdminDescription=true';
}
else
vSearchAdminDescription = '&vSearchAdminDescription=false';
if ($('#cbSearchEnvironment').is(':checked')) {
vSearchEnvironment = '&vSearchEnvironment=true';
}
else
vSearchEnvironment = '&vSearchEnvironment=false';
vSearchStatus = '&vSearchStatus=' + $('#ddlSearchStatus').val();
vCurrentSort = "&vCurrentSort=";
if(currentSort == "up" || currentSortColumn != column){
if(column == "1")
vCurrentSort += "namedown";
else if(column == "2")
vCurrentSort += "iddown";
else if(column == "3")
vCurrentSort += "statusdown";
else if(column == "4")
vCurrentSort += "createddown";
else
vCurrentSort += "changeddown";
}
else {
if(column == "1")
vCurrentSort += "nameup";
else if(column == "2")
vCurrentSort += "idup";
else if(column == "3")
vCurrentSort += "statusup";
else if(column == "4")
vCurrentSort += "createdup";
else
vCurrentSort += "changedup";
}
$.get('GridViewService.aspx?updater=' + getTime() + vTxtBox + vResultHasTo + vChangedAfter + vChangedBefore + vCreatedAfter + vCreatedBefore + vSearchNode + vSearchStatus + vSearchDescription + vSearchAdminDescription + vSearchEnvironment + vCurrentSort, function(data) {
$("#searchViewBox").html(data);
$('#searchViewBox input').remove();
theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
$(".transparent_class").hide();
});
}
在某些计算机上使用chrome时,此URL的格式错误,导致GridViewService.aspx中出现异常,导致最后一个括号中的代码未被执行。