我需要重新加载下面列出的2个javascripts,但不知道如何在我的函数中引用它。我读了几个其他建议尝试在Jquery中使用延迟函数的论坛。所以我尝试了但没有运气。有什么想法吗?
的Javascript:
<SCRIPT LANGUAGE="JavaScript" SRC="Scripts/Inline/InlineEditingForSP2007_23.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="Scripts/Inline/spjs-utility.js"></SCRIPT>
这是我尝试的功能,但无效。
function reload() {
$.ajax({
async: false,
cache: false,
url: "http://ensemble-mtl.ent.cginet/sites/SERVIPCManagement/imc/Shared%20Documents/Whiteboard/Whiteboard-Inline.aspx",
complete: function(xData, Status) {
var DVWPMarkup = $(xData.responseText).find("#reload_me").html();
$("#reload_me").html(DVWPMarkup);
inline();
}
});
}
function inline() {
$.when(
$.getScript("Scripts/Inline/InlineEditingForSP2007_23.js"),
$.getScript("Scripts/Inline/spjs-utility.js"),
).then(function() {
var argObj = {
dateFormat: "d/m/yy",
decimalSeparator: ".",
boolYesNoText: "Yes|No",
labelArr: ["Save", "Cancel", "Clear"],
arrToEdit: [],
pinTableHeader: true,
hideIdColumn: true
};
initCustomEditFunction(argObj);
});
}
$(document).ready(function() {
reload();
var auto_refresh = setInterval(function() {
reload();
}, 60000);
});
&#13;