> Doug Melvin <[EMAIL PROTECTED]> wrote:
> So when I disable bubbling, I  have to do it each time?
> I was not aware of this.

In your event listener you can disable bubbling for that layer/div for the current
event - to stop the event going to the parent. It's one line of code if you want
to stop a parent event handler triggering for the same event type i.e. onkeydown,
onmousedown (and only if the DynAPI developer who wrote the low level event
functions allows you to do this). So anything mouse/drag may not behave as I've
mentioned - so sorry for any bad information.

I have found it difficult to understand the DynAPI event system as it provides it's
own interpretation of addEventListener, stopPropagation, preventBubble and e.t.c.

I suspect that DynAPI will be a good server side CGI widget creation system (not
DHTML) with custom code/events. DHTML=>SHTML=>SHTAPI=>DYNAPI --
ok, I'm joking about SHTAPI ;-)

So I don't get it either. I just load more paper in the printer and try to understand.
As the documentation says the code does have a small footprint! All the people
on this mailing list are very good and can help so thanks for your kind comment. 

Kevin.

> Thank you Kevin.
> For once someone actualy explained something instead of snearing down his
> nose at someone who "just don't get it"
> 
> Now I understand.
> 
> 
> ----- Original Message -----
> From: "Kevin" <[EMAIL PROTECTED]>
> To: "Dynapi-Dev" <[EMAIL PROTECTED]>
> Sent: Friday, March 21, 2003 2:46 PM
> Subject: Re: [Dynapi-Dev] Re: setbubble
> 
> 
> > > Doug Melvin <[EMAIL PROTECTED]> wrote:
> > > Why would you want to disable bubbling?
> > > (sarcasm intended)
> > >
> > > If you can turn a built-in feature off.. you should be able to turn it
> back
> > > on again.
> >
> > In DynAPI event handlers can only be added to the event bubble phase
> > (well to be precise NS4 is capture only).
> >
> > So the layer/div gets the event first and calls it's listener if defined.
> >
> > Now the event bubbles and the parent gets the event and calls it's
> > listener if defined, unless you disable bubbling in the listener on
> > that layer.
> >
> > The event cycle is now over so turning bubble back on is meaningless.
> >
> > Bubble will be on by default for the next event cycle.
> >
> > Kevin.
> >
> > > ----- Original Message -----
> > > From: "Raymond Irving" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, March 21, 2003 1:21 PM
> > > Subject: Re: [Dynapi-Dev] Re: setbubble
> > >
> > >
> > > >
> > > > --- Doug Melvin <[EMAIL PROTECTED]> wrote:
> > > > > found Event.preventBubble()
> > > > > but there is no Event.allowBubble()
> > > > >
> > > > > I am adding setBubble(bool);
> > > >
> > > > Why would you want to call an allowBubble() after
> > > > you've called a preventBubble()? The idea behind this
> > > > was that it was unnecessary to do so. Thus the
> > > > setBubble was thrown out.
> > > >
> > > > DynAPI 3.0 will require all of us to rethink our
> > > > widgets/application designs, thus making better use of
> > > > our "limited" resources.
> > > >
> > > > --
> > > > Raymond Irving
> > > >
> > > > >   ----- Original Message -----
> > > > >   From: Doug Melvin
> > > > >   To: [EMAIL PROTECTED]
> > > > >   Sent: Friday, March 21, 2003 2:21 PM
> > > > >   Subject: setbubble
> > > > >
> > > > >
> > > > >   what's the equive to setBubble(false)?
> > > >
> > > >
> > > > __________________________________________________
> > > > 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:Crypto Challenge is now open!
> > > > Get cracking and register here for some mind boggling fun and
> > > > the chance of winning an Apple iPod:
> > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > > > _______________________________________________
> > > > Dynapi-Dev mailing list
> > > > [EMAIL PROTECTED]
> > > > http://www.mail-archive.com/[EMAIL PROTECTED]/
> > > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by:Crypto Challenge is now open!
> > > Get cracking and register here for some mind boggling fun and
> > > the chance of winning an Apple iPod:
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:Crypto Challenge is now open!
> > Get cracking and register here for some mind boggling fun and
> > the chance of winning an Apple iPod:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> 



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to