How to show a spinner while an iframe is loading

オフライン

Hi,

     Does anyone know how we can show a spinner while an IFrame is getting loaded. After providing src value to frame element ex:

var newItem = aras.IomInnovator.newItem("", "");
var newItemId = aras.generateNewGUID();
newItem.setID(newItemId);

aras.uiOpenEmptyWindowEx(newItem.node);
var newWindowName = aras.mainWindowName + "_" + newItemId;
var newWindow = aras.windowsByName[newWindowName];

newWindow.frameElement.src = "./example/index.html"; 

Then It takes time to load the iframe...... During which the spinner should be visible.

Thanks,

Sourav

Parents Reply
  • 0 オフライン in reply to AJ Sebastian

    Thanks AJ,

                   I have already gone through the anwser....but it still doesn't cater to my need.

    I am trying to load Angular application to the iframe in a separate aras tab....and while loading the application it takes time, during which I want the spinner to be displayed...

    newWindow.frameElement.src = "./example/index.html"; ---> In this line I am loading the angular app

    So if you have any ideas it would be great....

    Thanks,

    Sourav

Children
No Data