urmz.. yes.. typo :-)
Pascal Bestebroer ([EMAIL PROTECTED])
Software ontwikkelaar
Oberon Informatiesystemen b.v.
http://www.oibv.com
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens martin ström
> Verzonden: dinsdag 6 februari 2001 11:09
> Aan: [EMAIL PROTECTED]
> Onderwerp: RE: [Dynapi-Help] question for new user
>
>
> the eval(DynAPI.hookLoad) part didn't work for
> me (nothing happend) so i replaced
>
> eval(DynAPI.hookLoad)
>
> with
>
> if (DynAPI.hookLoad) DynAPI.hookLoad()
>
> and it worked, because the value of .hookLoad is
> "function(){ alert('load')}" and it seemes like the
> function doesn't execute using an eval()
>
> but maybe theres some other problems using my code?
>
> and you can't use onload=myFunction()
> explorer throws an error "not implanted", must
> use onload=myFunction (perhaps this was just a typo?)
>
> /martin
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Pascal
> > Bestebroer
> > Sent: den 3 februari 2001 10:45
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Dynapi-Help] question for new user
> >
> >
> > > Also, it seems that you cannot have an onLoad() in the body tag
> > of an html
> > page when using the dynapi. Is this correct? Thanks very much for
> > > any help.
> >
> > I've worked something out for this "problem" Here's the code I
> > implemented:
> >
> > 1. Add a property to the DynAPI {} object called hookLoad : '' and
> > hookUnload : ''
> > 2. Add these lines infront of the onload=DynAPI.loadHandler lines:
> >
> > DynAPI.hookLoad=window.onload
> > DynAPI.hookUnload=window.onunload
> >
> > 3. add this line to the DynAPI's loadHandler function just
> before the if
> > (DynAPI.loaderStart)... line :
> >
> > eval(DynAPI.hookLoad)
> >
> > 4. add this line to the DynAPI's unloadHandler function
> just before the if
> > (DynAPI.DynAPI.onUnload)... line:
> >
> > eval(DynAPI.hookUnload)
> >
> >
> > Now the trick is that in your own html code you can add
> functions to the
> > onload and unload handlers by doing this:
> >
> > <html>
> > <Head>
> > <script language="javascript">
> >
> > window.onload=myFunction()
> > window.onunload=myFunction2()
> >
> > myFunction() {...}
> > myFunction2() {...}
> > </script>
> >
> > and then the usual dynapi include lines:
> >
> > <script language="javascript" src="../src/dynapi.js"></script>
> > <script language="javascript">
> > ....
> >
> >
> > So you must use functions, and they must be added BEFORE
> the dynapi code.
> >
> > any questions..just ask :-)
> > -
> > Pascal Bestebroer
> > [EMAIL PROTECTED]
> > http://www.dynamic-core.net
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help