Hello all, I'm having an IE issue with what looks like onresize being fired with dynamic content that is added ondomready. What I think is going on, and I'm hoping someone can confirm this, is IE looks to fire the onresize event when dynamic content is added.
In the following urls, what I'm trying to do is display a number of modules (gray box placeholders) based on the user resolution. For example, a higher resolution person might get 16 modules, whereas a person on a lower resolution might only get 12 or 8. The number of modules is adjusted if you resize your monitor as well. I want to point out this is obviously not complete and there is big flaw in that I'm appending content on resize so if you resize it doesn't quite work right (because you keep appending modules) until after the resize and you hit reload. Please don't focus on that. http://jsbin.com/atoqe4 If you open this in IE8, you'll see at the bottom, slivers of modules 1, 2, 3, 4 repeating (I thought this a bit odd). This doesn't happen in Firefox 3.6.13, Chrome 8 or Safari 5. All this is on PC, haven't checked Mac but I assume it's fine in the same browsers. http://jsbin.com/ihezu5/ If you open this in IE8, you'll see the full 1-12 modules repeating when you scroll down the page. The only difference in this url is I've removed the overflow-y:hidden on the html element. So IE looks to be hitting my resizeShell() function 2x on page load. I'm firing resizeShell() ondomready and on the window resize event. I'm also dynamically creating/adding those gray box placeholder modules. Has anyone ever come across this? -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
