in which case this code may be specific to how you code but not necessary
for the rest of the api users...

i think running this in event method might slow things down a tad, it's
possible that you could put something similar in dynlayer.js that does this
when the layer is created and when you setHTML. Have a look, there is code
there for attaching a lryobj reference to images, you could do the same for
forms. then it only happens once, rather than each time you generate an
event.

cameron.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> GORTSILAS ANDREAS
> Sent: 07 March 2001 07:31
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Dynapi-Dev] EventMethod fix...
>
>
> OK I see...
>
> I always put the html code inside a form element (for Netscape
> problems)...
>
> Andreas
>
> -----Original Message-----
> From: Doug Melvin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 07, 2001 5:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] EventMethod fix...
>
>
> <a href="javascript:void(null);" onclick="doit(); onmouseover="showit()">
>
> ----- Original Message -----
> From: "GORTSILAS ANDREAS" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 06, 2001 9:21 AM
> Subject: RE: [Dynapi-Dev] EventMethod fix...
>
>
> > Tell me one html element in which you need an event (like onclick)...
> >
> > -----Original Message-----
> > From: Cameron Hart [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 06, 2001 7:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Dynapi-Dev] EventMethod fix...
> >
> >
> > Sorry I must have missed something, I didn't realise you were
> only talking
> > about form elements, not all html elements.
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > GORTSILAS ANDREAS
> > > Sent: 06 March 2001 17:10
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: [Dynapi-Dev] EventMethod fix...
> > >
> > >
> > > In Netscape you must ALWAYS put your elements inside a form in
> > > order to show
> > > up!
> > >
> > > Andreas
> > >
> > > -----Original Message-----
> > > From: Cameron Hart [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, March 06, 2001 5:27 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: [Dynapi-Dev] EventMethod fix...
> > >
> > >
> > > wouldn't this only work in Netscape if the page had a form in it?
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > > GORTSILAS ANDREAS
> > > > Sent: 06 March 2001 13:24
> > > > To: Dynapi-Dev mailing list (E-mail)
> > > > Subject: [Dynapi-Dev] EventMethod fix...
> > > >
> > > >
> > > > In DynLayer.prototype.EventMethod (events.js) the code:
> > > >   for(;!realsrc.lyrobj && realsrc.parentElement &&
> > > > realsrc.parentElement!=realsrc;realsrc=realsrc.parentElement);
> > > >   src=realsrc.lyrobj||dyndoc;
> > > > must be replaced by:
> > > >   var src;
> > > >   if (is.ie) {
> > > >     for(;!realsrc.lyrobj && realsrc.parentElement &&
> > > > realsrc.parentElement!=realsrc;realsrc=realsrc.parentElement);
> > > >     src=realsrc.lyrobj||dyndoc;
> > > >   }
> > > >   else if (is.ns && !realsrc.lyrobj) src = _FindDlr(realsrc);
> > > >
> > > > and ...
> > > > function _FindDlr(oElm) {
> > > >   var i, k, oRet;
> > > >   if (oElm.form) {
> > > >     for (i=0; i<document.layers.length; i++) {
> > > >       for (k=0; k<document.layers[i].document.forms.length; k++)
> > >
> > > >         if (document.layers[i].document.forms[i]==oElm.form) {
> > > >           oRet = document.layers[i].lyrobj;
> > > >           break;
> > > >         }
> > > >       }
> > > >       if (oRet) break;
> > > >     }
> > > >   }
> > > >   return oRet;
> > > > }
> > > >
> > > > In NS the event of an html element was not forwarded to the
> > > DynLayer which
> > > > contains it...
> > > >
> > > > Please make any corrections (if necessary) and include-it with
> > > > the official
> > > > code
> > > >
> > > > Andreas Gortsilas
> > > >
> > > >
> > > > _______________________________________________
> > > > Dynapi-Dev mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
>
>
> ---
> Outgoing mail is certified Virus Free by AVG Free Edition
> Download at: http://www.grisoft.com/html/us_index.cfm
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to