On Dec 4, 7:46 pm, Kyrus <[EMAIL PROTECTED]> wrote:
> I have a prototype class that shows a div and resizes it to the size
> of the client browser. What I would like to happen when the div is
> shown is to attach an event that listens to the window and resizes/
> moves the div if the client resizes/scrolls the browser window. Below
> is what I have for the show function, as it is right now the 'scroll'
> and 'resize' events are not being wired up. Am I doing something
> incorrect?
>
>         Show: function()
>         {
>                 Event.observe(window, 'scroll', this.resetSizes);
>                 Event.observe(window, 'resize', this.resetSizes);
>
>                 try
>                 {
>                         this.Container.style.display = 'table';
>                 }
>                 catch (e)
>                 {
>                         this.Container.style.display = '';
>                 }
>                 this.resetSizes();
>         }
--~--~---------~--~----~------------~-------~--~----~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to