hi again,

waiting anxiously for your reply :) I noticed that the method
'throw()' is only working in firefox but not in opera or ie (which
makes sense because it's a reserved word).
this can be fixed by renaming that method to 'fire()' instead.

after this my code works on all browsers available to me (ie6, ie7,
win/ff2, opera9)

cheers
/christian

On Feb 5, 11:51 am, Christian Schaefer <[EMAIL PROTECTED]> wrote:
> hi all,
>
> during developing you encounter several problems. one that frequently
> occurs to me while working on rather complex user interfaces is that all
> you on page modules (tag clouds, friend lists, you name it..) are to an
> extend interlocked with each other. the more complex your ui gets the
> more each module has to know about the others and the more hard it gets
> to maintain your code.
>
> on most window manager systems like gnome and the like (even windows)
> you have a messaging mechanism for that. objects can send out a message
> (ie: 'deleted a file') and other objects can subscribe to such a message.
>
> this very much works like the javascript Event object and the prototype
> observing. so i thought why not extend the Event object even more and
> include the possibility to register new events and throw them, and
> extend the methods observe() and stopObserving() to enable client
> modules to observe these new custom events.
>
> I know that the dojo toolkit has a similar thing going. but so far dojo
> didn't feel like the right tool for the job for me (no flamewars please).
>
> attached to this mail you can find my solution and a (admittedly very)
> brief demo. some more 'documentation' is in the head comment of the
> event.js file.
>
> I hope you agree with me that this is a simple, clean and good solution
> to my problem. if you do I would very much appreciate to share this code
> with the prototype community and hereby ask for the inclusion of the
> attached code.
>
> cheers
> /christian
>
>  Custom Events - A Prototype JavaScript framework proposal.zip
> 24KDownload


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to