Howard wrote:
If you don't return false in your event handlers, the browsers will
quite cheerfully continue in their default behavior, the kind which is
driving you crazy. Once you start returning false they will do what you
ask and no more.
> window.onresize = function(e) {resizeEventHandler(e);};
>
> instead of window.addEventListener. I tried
>
> window.onresize = function(e) {resizing = 1;};
>
> so it didn't have to call a function, but that had the same results.
window.onresize = function(e) {resizeEventHandler(e); return false};
window.onresize = function(e) {resizing = 1; return false};
function resizeEventHandler(target, e)
{
// do nothing and fail, return false for teh win
return false;
}
Note that not all browsers pass e.
if (e == null) { e = window.event; }
will make the code more cross browser compliant.
No idea why a resize event would trip your application up, not enough
information was supplied in the pseudo code. So there's no guarantee
this will work.
G'luck.
--
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA