Загрузка фреймов с индикатором выполнения с помощью jQuery?

в моей работе (интранет) - у меня есть страница aspx, в которой есть много фреймов (все наши).

каждый iframe устанавливается (js / jquery) с помощью btnX (на странице aspx много кнопок ... некоторые устанавливают src на iframes, некоторые нет).

enter image description here

notice : the progrssBAr is on the main page...

цель: progressBar во время загрузки iframe ...

код: (сначалаmyPageWrapper являетсяdisplay:none)

<code>$('#myPageWrapper').on ('load','iframe',function () { $("#myProgressBar").hide();});
</code>

2 проблемы:

i can listen to the iframes load finish event. but what about showing the ProgfressBar ? i dont want to edit all btn's event "onclick" - is there any centralized solution to this [using jquery]?

мне нужно то, что делает:

"when btn sets the src to an iframe - show myProgressBar"

simultaneous events can occur : iframe A is being loading for 2 min ( example) - so it shows the progress bar , meanwhile i pressed other button which sets src to iframe B - which is loading very fast... once its loaded - it hides the ProgressBar ( look at my code) - but it shouldnt...A didnt finish yet....

Ответы на вопрос(1)

Ваш ответ на вопрос