I need to reload the 2 javascripts listed below but not sure how to reference then in my function. I read several other forums that suggested to try using the deferred function in Jquery. So I tried it but no luck. Any ideas?
Javascripts:
<SCRIPT LANGUAGE="JavaScript" SRC="Scripts/Inline/InlineEditingForSP2007_23.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="Scripts/Inline/spjs-utility.js"></SCRIPT>
This is the function I tried but is not working.
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);
});