Try putting this code only in the top most widget:

this.addEventListener({
   onpathrun: function(e){
      e.bubble = true; 
      // ^ this will allow the onpathrun event 
      // to bubble to parent
   }
}


--
Raymond Irving

--- Brian Hayes <[EMAIL PROTECTED]> wrote:
> Hello, I have come a long way with my project, and I
> know this would not be
> a reality without dynapi....( I am a spokes person)
> however, the learning
> curve is somewhat on the uphill side.. With that
> said, it there a way to
> make an invokeEvent('someevent'), global? or, send
> the event to all objects
> loaded on the page? I ask because I read some where
> that widgets should not
> have eventhandlers embedded in them, but the only
> way I have been able to
> get my objects to see the event is through the
> e.getSource().parent.envokEvent('somevent')..
> However, this only work on
> child deep.. And when I attempt to change everything
> over to the other
> recommended way var o=tjhis; and reference
> o.someFunction(); it seams to
> break NS6 and 7..
>  
> Example: WidgetA
>  
> this.addEventListener({onpathrun: function(e){
> if(e.getSource().parent){
>
e.getSource().parent.invokeEvent('onpathrun',null)}});
>  
> This is inside every singe widget that is a child of
> another widget, until I
> get to the main widget that needs the event.
>  
> Any advice would be appreciated.
>  
> Thanks,
>  
> Brian Hayes
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to