Hello,
I have a javascript method that is triggered on change of a field value. This method takes 20 - 30 seconds to run and I want to be able to display the Aras spinner but nothing seems to be working. I have attempted multiple solutions from other posts but none have solved the issue. I noticed in the core function below my value for spinnerEl is always null. If anyone could provide any help it would be appreciated.
BrowserHelper.prototype.toggleSpinner = function (context, state, spinnerId) {
spinnerId = spinnerId || 'dimmer_spinner';
var spinnerEl = (context.ownerDocument || context).getElementById(spinnerId);
if (!spinnerEl) {
return false;
}
spinnerEl.classList.toggle('aras-hide', !state);
return true;
};