Try Event.observe(window, 'resize', ...); (similar to the 'dom:loaded' pseudo-event)
However, per a jQuery discussion here: http://stackoverflow.com/questions/641857/javascript-window-resize-event and here: http://noteslog.com/post/how-to-fix-the-resize-event-in-ie/ it might not be so wise to observe the event directly. IE fires the event each time a pixel move is made. You could probably adapt code out of the latter link, though. -joe t. On Jan 18, 12:33 pm, gillesvds <gilles...@adok.info> wrote: > Hello, > How to observe the event window.resize with prototype ? > The window object is not an instance of Element... so, is there a > cross-browser solution using prototype ? > Thanks, > Gilles (France)
-- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.