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

Reply via email to