Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnResize infinite loop on IE 8
Message
De
15/02/2014 01:20:06
 
 
À
14/02/2014 19:37:46
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01594364
Message ID:
01594370
Vues:
34
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform