
Hey may I know why I got error on noParams(); Uncaught TypeError: $ is not a function?This is clearly refer from https://mahadeomatre.blogspot.com/2016/10/view-or-download-attachments-for.html.. and it seems the [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/ for GetGlobalContext.js.aspx
function getDataParam() {
var vals = new Array();
if (location.search != "") {
vals = location.search.substr(1).split("&");
for (var i in vals) {
vals[i] = vals[i].replace(/\+/g, " ").split("=");
}
//look for the parameter named 'data'
var found = false;
for (var i in vals) {
if (vals[i][0].toLowerCase() == "data") {
parseDataValue(vals[i][1]);
break;
}
}
}
else {
noParams();
}
}
*This post is locked for comments
I have the same question (0)