Hi, I use this code:
The thing is that I have made some nifty functions for changing the layout of a grid (rows and colums, css-based), in an image-gallery. The idea is that I want to notify the user that the browser has been resized and that he/she can now auto-size the grid, by clicking the nifty GUI I made for sizing the grid.
Everything works fine, but sometimes it all hangs when I have this onresize code inside the div.
ps. the div is a content-div, which scales between two colums.. Does anyone have any suggestions? There are no errors when it works, so I dont really understand what's going on here. Might just be the old IE, but we cant upgrade the browsers here at work, so if it's an browser issue, I guess I'll just have to not use this.
Olav Alexander Mjelde
Admin & Webmaster
Code:
<div class="colboxmiddle_BDA82ACF" id="contentDiv" onresize="document.getElementById('optimalgrid').innerHTML = ('<br /><div style="float:left;"><img src="images/size.gif" /></div> <strong>Vinduet har blitt skalert</strong>, vennligst oppdater rutenettstørrelse.');">
The thing is that I have made some nifty functions for changing the layout of a grid (rows and colums, css-based), in an image-gallery. The idea is that I want to notify the user that the browser has been resized and that he/she can now auto-size the grid, by clicking the nifty GUI I made for sizing the grid.
Everything works fine, but sometimes it all hangs when I have this onresize code inside the div.
ps. the div is a content-div, which scales between two colums.. Does anyone have any suggestions? There are no errors when it works, so I dont really understand what's going on here. Might just be the old IE, but we cant upgrade the browsers here at work, so if it's an browser issue, I guess I'll just have to not use this.
Olav Alexander Mjelde
Admin & Webmaster