Unable to load external javascript using injectjs activity

Hi Team/@badita ,

injectjs activity is working fine only with a single static function in a js file, but my js file is required to call another external js file like the below.

script type=“text/javascript” src=“https://portal.abc.com/Style%20Library/js/Utility_JS/aes.js”>
script type=“text/javascript” src=“https://portal.abc.com/Style%20Library/js/Utility_JS/pad-nopadding-min.js”>
function(element, input)
{
return input;
}

With the above sample, I’m getting an exception HRESULT:0x80020101, ElementOperationException

Could someone please help me in solving this issue or any other workaround for loading external js files.

1 Like