Guys!

I'm trying to write a javascript that will execute an event after an IE user
has finished resizing the window.  (That is to say, I'm trying to stop the
event being executed every pixel the window is resized).

Any idea why this is failing miserably?  If anyone can think of a different
approach I might take using different APIs, I'd appreciate that too.

The code below tries to set an event in the future every pixel the window is
resized, clearing out any old scheduled events as it does this.

<script language="JavaScript">
window.onresize = fixup;
timeoutID = null;
function fixup() {
  window.clearTimeout(timeoutID)
  timeoutID = window.setTimeout(afterResize(), 200000)
}

function afterResize() {
        alert('sdfds')
}

</script>




thanks

James


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to