【发布时间】:2010-06-15 07:51:00
【问题描述】:
我需要一点帮助来弄清楚为什么以下代码在 google chrome 5/windows xp 上不起作用。它适用于所有其他浏览器(IE、FF、Safri、Opera 等)。有人可以对此有所了解吗?
/* AJAX Request */
jq("#a-post-request").unbind("click").bind("click", function(e){
//jq("#loading").css({"display":"block"});
jq.ajax({
url: "search_data_table.html",
type: "get",
cache: false,
error: function(){alert ("No data found for your search.");},
success: function(data){
jq("#search-results-table tbody").empty().append(data);
jq("#search-results").css({"display":"block"});
jq("#search-results-table").trigger("update"); // this one is for the table sorter plugin
// set sorting column and direction, this will sort on the first column.
var sorting = [[0,0]];// this one is for the table sorter plugin
// sort on the first column .
jq("#search-results-table").trigger("sorton",[sorting]);// this one is for the table sorter plugin
e.preventDefault();
}
});
});
非常感谢, 脾气暴躁
【问题讨论】:
-
不起作用并不是所有错误描述中最好的。什么不起作用?任何错误、警告、任何可能有助于跟踪的行为?
标签: jquery ajax google-chrome