How is it possible to show a loader whenever an iframe is loading.Even when links inside the iframe is clicked,the loader should be shown.
Asked
Active
Viewed 137 times
0
-
http://stackoverflow.com/questions/5194679/js-iframe-loader – adeneo May 12 '14 at 20:06
-
@adeno This is different.As I want it to show loading when ever another page is loading inside the iframe by navigation inside iframe – Piya May 12 '14 at 20:07
-
don't know if this works for what you are looking for, but I think it is worth a try: http://stackoverflow.com/questions/4231580/get-if-browser-is-busy – caramba May 12 '14 at 20:08
-
Thanks,but no hope for me :( – Piya May 12 '14 at 20:09
-
If it's a cross domain site, you can forgot about that as you have no access – adeneo May 12 '14 at 20:12
-
The page which im loading is on my side – Piya May 12 '14 at 20:12
1 Answers
0
if its in your own side you can use .contents() its give u all the nodes in the iframe or other element
$("#iframe").contents().on('change',function(){
$("#loader".fadeIn(35);
});
$("#iframe").contents().ready(function(){
$("#loader".fadeIn(800);
});
u can see : http://api.jquery.com/contents/
Hope that I helped you in this case!

Cuzi
- 1,026
- 10
- 16