views:

134

answers:

1

Hi,

I'm trying to create my own 'modal' window since none of these currently existing for PrototypeJS fits my needs.

The problem is observing document.documentElement for change of height and width of viewport ( or document.body, depending on Quirks/Standard mode ).

+2  A: 

Can't you just observe the window.onresize event?

Event.observe(window, 'resize', function() { alert('resized'); });
Greg
I guess this'll work perfectly in all circumstances ?
Kemo
Well that's kind-of a hard thing to guarantee :-)
Pointy