开发者

MochaUI Window loading ASPX page in Iframe and commuunicating with window?

开发者 https://www.devze.com 2023-01-30 19:51 出处:网络
I am hoping someone has experience with this, but I am loading a window from a link on my main page. The window loads an ASPX page via the window’s loadmethod of iFrame.The aspx pa开发者_运维问答ge h

I am hoping someone has experience with this, but I am loading a window from a link on my main page. The window loads an ASPX page via the window’s loadmethod of iFrame. The aspx pa开发者_运维问答ge has its own update panel on it and I was wondering how I can call the window’s “spinner” / process indicator while the page is processing. I have looked at the documentation on some online information about it but I am not sure how to implement it.


To show the spinner this is what I do:


function getMochaWindow(windowId) {
    return MochaUI.Windows.instances.get(windowId);
}

function showLoading(winEl) {
    getMochaWindow(winEl.id).showSpinner(winEl.getElement('.mochaSpinner'));
}

You need to call showLoading() passing the window element where you want it to appear.

0

精彩评论

暂无评论...
验证码 换一张
取 消