#6000 closed bug (invalid)
window.onresize initiates endless cycles in IE6 and in some case makes it crash after injecting JQuery.
Reported by: | Xaver | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4.2 |
Component: | event | Version: | 1.4.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Example code: <!--
<!doctype html><html> <head>
<script type="text/javascript" src="jquery.js.js">/script>
<script type="text/javascript">
window.onresize=function(){
myfunction(); parent.location.reload();
}
</script></head><body> <a href="http://jquery.com/">jQuery</a></body></html>
-->
"window.onresize" initiates endless cycles in IE6 and in some case makes it crash after injecting JQuery, though IE8, Firefox 3.5 and Opera 10 are not affected.
myfunction() doesn`t return the result, but reload() starts. If JQuery is disabled - the situation normalizes.
I`m using the current version (1.4.1, downloaded today). JQuery 1.3.2 results the same.
Thanks.
Change History (2)
comment:1 Changed 13 years ago by
Component: | unfilled → event |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 13 years ago by
myfunction() is not dependent on JQuery in any way. I`m using the onresize, cause i need to reposition some elements after window resizing. They are not on their places.
Well, you're reloading the entire page on every single resize - which would cause the page to instantly reload, fire another resize event, reload again, etc. The reason why removing jQuery probably works is that your myfunction() depends upon it - so it throws an exception rather than ever hitting the reload(). You should probably re-consider having the reload in your resize.