[jQuery] window resize event not triggered in FireFox
I am using jQuery 1.2.6 (Rev 5685, 5/24/2008), IE7, and FireFox
3.0.10.
In my document.ready, I bind a function to window.resize [using $
(window).resize(function)]. This function is called correctly in IE7,
but is not getting called in FF. I have also tried to use the bind
function [ie: $(window).bind("resize", function)] and get the same
results (or lack of).
A simplified version of the page is included below. It also has the
same results in IE7 vs FF. Is there something I have wrong, or is this
a bug? If a bug, is this corrected in a later version of jQuery?
===========
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<title>jQuery Tester</title>
<script language="JavaScript" src="jquery.js" type="text/javascript"></
script>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
$(window).resize(function(){
alert('hi');
});
});
</script>
</head>
<body>
</body>
</html>