Side navigation
#6000 closed bug (invalid)
Opened February 01, 2010 12:56PM UTC
Closed February 01, 2010 02:26PM UTC
Last modified February 01, 2010 03:15PM UTC
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.
Attachments (0)
Change History (2)
Changed February 01, 2010 02:26PM UTC by comment:1
component: | unfilled → event |
---|---|
resolution: | → invalid |
status: | new → closed |
Changed February 01, 2010 03:15PM UTC by comment:2
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.