Загрузка фреймов с индикатором выполнения с помощью jQuery?
в моей работе (интранет) - у меня есть страница aspx, в которой есть много фреймов (все наши).
каждый iframe устанавливается (js / jquery) с помощью btnX (на странице aspx много кнопок ... некоторые устанавливают src на iframes, некоторые нет).
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 aboutshowing
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
"
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....