Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnResize infinite loop on IE 8
Message
From
15/02/2014 01:20:06
 
 
To
14/02/2014 19:37:46
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01594364
Message ID:
01594370
Views:
35
I have succeeded to bypass the dual widely known call on resize as well as this infinite number of calls on resize for Windows 7 + IE 8:
nResizeWindow=0
window.onresize=ResizeWindow

function ResizeWindow()
{
   if (nResizeWindow==1)
   {
      nResizeWindow=0
      return true
   }
   BrowserDimension()
   lcLocalData=nBrowserWidth+''+nBrowserHeight
   if (cData!=lcLocalData)
   {
      loObject=window.parent.document.getElementById("Table1")
      loObject.style.width=nBrowserWidth+"px"
      lnHeight=nBrowserHeight-88
      loObject.style.height=lnHeight+"px"
      loObject=window.parent.document.getElementById("TD2")
      loObject.style.width=nBrowserWidth+"px"
      loObject.style.height=lnHeight+"px"
   }
   nResizeWindow=1
}
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform