| Issue 54: | iframe loading image be hidden by the onload event | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. click on a link that generates an iframe modal
2. the loading animal appears but is then removed once the modal is sized
3.
What is the expected output? What do you see instead?
The page I call takes a second or two to do all its work and return. The
load animation hides it self before that time and I sit on a plain white
screen for a second or two.
What I would like to have happen is the loading image does not go away
until the frame is loaded by altering this line here.
near line 368 give or take a couple lines:
modal.tmp.html('<iframe frameborder="0" hspace="0" src="'+from.href+'"
name="nyroModalIframe" onload="alert(\'now hide the
animation\')"></iframe>');
I have this much but I cannot figure out what triggers the load animation
to be hidden. I want to comment that out and use the onload event
triggers the hide.
What version of the product are you using? On what operating system?
nyromodal 1.2.8
Please provide any additional information below.
could this be a featured added or does this fall under us having to use
the customizable functions like showContent,hideContent , etc.
Aug 1, 2008
oh yea. look for '//CHANGE TO HERE' in the jquery.nyroModal-1.2.8.js file to see where I made changes
Aug 1, 2008
UPDATE: this code DOES work in firefox2 but does NOT work in IE6 for windows XP. it might be how the browser does its DOM
Aug 27, 2008
Hi william.caineiii, At the first time, the iframe trigerred the loading animation during the loading of the iframe. Then I removed that because it caused many trouble that you occured with IE6. That's why I don't want to put that on the release.
Jan 26, 2009
(No comment was entered for this change.)
Status:
WontFix
|
ok here is my attempt at it. I am close but there is a race condition. I tried registering the hide the loading icon in the onload but it doesn not recognize it. modal.tmp.html('<iframe frameborder="0" hspace="0" src="'+from.href+'" name="nyroModalIframe" onload="modal.loading.fadeOut(100);"></iframe>'); so then i add it to the onload after its in the DOM but that causes a race condition if the page is cached or fast, its loaded before the code to add on is executed. any ideas?36.1 KB Download