you could edit your dynapi.js to something like this, line # 230 
i current CVS

DynAPI.hookLoad = onload;
onload = function() { DynAPI.loadHandler(); }

and # 217

DynAPIObject.prototype.loadHandler = function() {
        this.created = true;
        eval(this.onLoadCodes.join(";"));
        if (this.onLoad) this.onLoad(); 
        if (this.hookLoad) this.hookLoad(); // <----------------- add
this line
        this.loaded=true;
}

haven't tested this now, but should work. this was included in the
API before but was removed by some reason.

/martin

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> Cameron Childress
> Sent: den 29 november 2001 15:31
> To: [EMAIL PROTECTED]
> Subject: RE: [Dynapi-Help] BODY onload vs DynAPI.onLoad
> 
> 
> > since DynAPI.onLoad is the document.onload itbecomes a conflict
> > when you try to defne it a second time. therfor you should copy
> > any code that goes within your other body  or document onload
> > into your DynAPI.onLoad...
> 
> Unfortunately, that's not possible.  This 1000+ template Web 
> Application
> shares one header file, which requires that the onLoad 
> statement remain
> intact.  DynAPI will only be used for some interfaces so the 
> existing code
> wins priority.
> 
> If only DynAPI.onLoad could look for and pull any existing 
> onLoad events
> into itself prior to "taking over".
> 
> I'm going to wait and see if Michael Pemberton's code works...
> 
> Thanks!
> 
> -Cameron
> 
> --------------------
> Cameron Childress
> elliptIQ Inc.
> p.770.460.1035.232
> f.770.460.0963
> --
> http://www.neighborware.com
> America's Leading Community Network Software
> 
> 
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Henrik
> > Våglin
> > Sent: Thursday, November 29, 2001 1:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Dynapi-Help] BODY onload vs DynAPI.onLoad
> >
> >
> > since DynAPI.onLoad is the document.onload itbecomes a conflict
> > when you try to defne it a second time. therfor you should copy
> > any code that goes within your other body  or document onload
> > into your DynAPI.onLoad...
> >
> > Henrik Våglin [ [EMAIL PROTECTED] ]
> >
> > ----- Original Message -----
> > From: "Cameron Childress" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 29, 2001 12:00 AM
> > Subject: [Dynapi-Help] BODY onload vs DynAPI.onLoad
> >
> >
> > > Using 2.5.4
> > >
> > > I have a project I'd like to use DynAPI on, but it's got some
> > pre-existing
> > > JS code in it already which uses onload in the BODY tag to
> > initialize.  It
> > > seems from my short diagnostic process that they are doing
> > battle and the
> > > DynAPI onload is losing.  I'm sure someone's run into 
> this before... any
> > > solutions?
> > >
> > > -Cameron
> > >
> > > --------------------
> > > Cameron Childress
> > > elliptIQ Inc.
> > > p.770.460.1035.232
> > > f.770.460.0963
> > > --
> > > http://www.neighborware.com
> > > America's Leading Community Network Software
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
> 


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to