Hello good morning, as you could reference a js (general functions) within another js (this is for each entity) (web resource),
Without having to add dependent JS in the same form.
*This post is locked for comments
I have the same question (0)

Hello good morning, as you could reference a js (general functions) within another js (this is for each entity) (web resource),
Without having to add dependent JS in the same form.
*This post is locked for comments
I have the same question (0)I have seen this function in other forums but I do not know what parameters are sent
this.DownloadWebResource = function (webResourceName, isSynchronousCall, callBackFunction) {
webResourceName = "../WebResources/" + webResourceName;
if (typeof ($) == "indefinido")
throw "se requiere jquery para usar la función DownloadWebResource";
else {
$ .ajax ({
url: webResourceName,
async:! isSynchronousCall,
éxito: función (datos) {
if (isSynchronousCall)
datos de retorno;
más
callBackFunction (datos);
}
error: función (XmlHttpRequest, textStatus, errorThrown) {
tirar errorThrown;
}
});
}
}