--- Kevin <[EMAIL PROTECTED]> wrote:
> --- Kevin <[EMAIL PROTECTED]> 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.
Cool. I think it would be nice for TabManager to call
setFocus if setFocus is available, otherwise it would
invoke the onfocus/onblur events.
> 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.
The user should call whatever function they want when
the onsubmit is triggered. Don't use a callback
function. Just trigger the onsubmit event and the user
can then deceide what to do from there. This IMO is
more flexible.
PS. The onsubmit feature is very cool. Does it also
work in NS4?
Keep up the good work.
--
Raymond Irving
> 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
> >
> > [EMAIL PROTECTED]
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/