jquery - Internet Explorer and the case of the Very Strange iFrame behaviour -


I'm actually ... bizzare with no error other than Internet Explorer window In the system I am developing, in fact, Windows is a fully positioned AIF, iframe state that shows its page and resizes with them again. It works well in all other browsers, but ifframe does not appear in IE ... okay.

My original code looks like this for creating a new window:

  function spawnNewWindow (url, title, type) {// what is the other with that particular type Is the window already present? // If so, point it not only to the new link, in fact without opening a new window Var Cancel = pin =; If ($ ('. WindowType _' + type). Length) {// Update SRC attribute for iframe contained in window. It should be effectively reloaded / window. $ ('. WindowType _' + type) Children ("iframe"). Attr ("src", "/ darknova4 /" + url); } And {// First of all, create a window $ ("body"). Append ("

On Internet Explorer, Produces a blank white window, which indicates my invisible iframe because in Area with black background in windowed pages. I suspect (and still not sure) Z-index bug, so I made the following changes to play with the stacking order and see if I could get a quick fix:

  $ ( "Body"). Endend ("

Note the relative position, which is the default for the should object but is not due to the stacking bug. What happens to this code, windows are visible, ifframe is visible, and all this looks good, unless you try to use it. Why can not I explain, but Minging over iframe triggers it due to disappearing . I do not have any code on the site tied to the mouse movement event, and there is no code on the iframe page which causes it to do anything on mouseover. Is it really weird that anyone knows that why is it behaving like this?

If you need to see this behavior for yourself, then I got a test of the system implemented on www.darknovagames.com which works fine in Firefox, but as mentioned above, I If you think this will help, I can post more code, but this is where I feel that is the error i.e., I am happy to post the CSS on the original window and JavaScript for my mouse events etc. Will be.

Thanks to any person who can provide some insight on this strange behavior. Try removing status: relative from your HTML element inside the iframe

It seems that taking care of the problem in IE8 (and in IE8's compatibility mode).

Update: Fix for Height

Add Status: Absolute; Left: 0 pixels; Top: 0 pixels; Bottom: 0 pixels; Correct: 0 px; For the iframe, the position above: Relative resolves the problem of height due to changes in IE 7 and IE8.

With both improvements in place, iframe works properly in IE 7, IE 8, and IE 8, which imitates IE 7 on my machine.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -