[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Xlink Isn't Dead
Peter Hunsberger wrote: > Although Microsoft may have got these two aspects more-or-less correct > they unfortunately did so with an implementation that gives you poor > reusability. It's been a while since I attempted to use their > implementation but as I recall event mapping is cumbersome and there > is very little capability to exploit any kind of polymorphism. In > particular, one should be able to define parameters (dynamic and > static) that are passed with the event notification to the handler, a > feature that is completely missing in the MS implementation. > FWIW, the dojo toolkit (ajax/javascript) has made a way to publish and subscribe to an object's events. For example you have some link/button object/widget where you define an onClick method: ... onClick: function() { dojo.event.topic.publish(this.widgetId+"/onBeforeClick", {some: "set", of: properties}); //handle onClick dojo.event.topic.publish(this.widgetId+"/onAfterClick", this); } ... then in some other code you can subscribe by referencing the identifier and giving it a handler function, like: dojo.event.topic.subscribe("metadata_page/onBeforeClick", setupMetadata);
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|