From: Kevin <ke...@ke...> - 2003-03-26 22:06:24
|
--- Kevin <ke...@ke...> wrote: > > Very good. Is the addition of a border onfocus > > optional? > > Yes, the onfocus/onblur events are optional (user > defined) Just a quick point as I have coded TabManager with the same onfocus/onblur events. In addition an onsubmit which will execute a callback function. i.e. When the user hits <return> or <space> on the selected dynLayer/ widget/tab. Do you think the user should call the function in their event handler or have the TabManager do it for them? I have implemented the first idea at the moment. var el={ onblur:function(e) { ... }, onfocus:function(e) { ... }, onsubmit:function(e) { var o=e.getSource(); o.callSubmitFn(); } } lyr.addSubmitFn('ds.func1()'); lyr.addEventListener(el); Perhaps you could have ondblclick as a submit event with callback function for FocusManger? ----- Kevin. > -- > Raymond Irving > > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ |