I am using jquery popup that loads a external page inside an Iframe.
Now I want to show loading spinner or loading bar image and hide the external page/iframe while its working,so user only sees the spinner.
can it be done,if yes how.please help me.
Here is the code
<script type="text/javascript">
$(document).ready(function () {
$("a#em4c").bind("click", function () {
$("#popup2").bPopup({ content: 'iframe', contentContainer: '#pContent', loadUrl: "http://site.com" });
return false
});
});
</script>
html Part
<p><a id="em4c"><strong>POP ME</strong>: Simple jquery popup that loads a page inside an iframe</a></div>
Thankyou
Might This would be helpful for you
write this in document.ready
//On click of the Element You can do in this way
On click Of the Element it will Open the Spinning Image after That it opens some.php in the
iframe. Is this you were expecting?