Skip to main content
Home Forums Silverlight Programming Programming with JavaScript is it possible to call multiple functions on same event like, is it possible MouseEnter="onMouseEnter;onMouseClicked" ?
2 replies. Latest Post by Dave Britton on August 28, 2007.
(0)
suyog kale
Member
188 points
98 Posts
08-28-2007 2:25 AM |
can anybody tell me in urgents
is it possible to call multiple functions on same event like
is it possible MouseEnter="onMouseEnter;onMouseClicked" ?
please reply with solution
jasonxz
Participant
1748 points
527 Posts
08-28-2007 10:59 AM |
I don't believe there is any way to do it declaratively in your XAML. However, I know that in 1.1, you can wire multiple methods to a single event in the code-behind:
object.MouseLeftButtonUp += new MouseEventHandler(method1);
object.MouseLeftButtonUp += new MouseEventHandler(method2);
So, I imagine you can probably do the same thing in javascript in 1.0.
Dave Bri...
681 points
229 Posts
08-28-2007 11:08 AM |
Yes - You can simply add multiple delagates as follows:
media.addEventListener(
- Dave