Dynapi 2.5.6
About what files... Some are included (using your example script) so no
idea, but it wasn't a standard IE error, it was a warning generated by
dynapi from what i see
Full script:
<script language="Javascript" src="src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*')
DynAPI.include('dynapi.gui.loadpanel.js');
</script>
<script language="Javascript">
DynAPI.onLoad=function() {
lp = new LoadPanel();
lp.setHTML("nada por aqui...");
lp.setSize(480,280);
lp.moveTo(175,260);
lp.setZIndex(4);
counter = 0;
var el = new EventListener();
el.onload = function(e) {
status = 'got load event '+ counter++;
}
lp.addEventListener(el);
DynAPI.document.addChild(lp);
lp2 = new LoadPanel();
lp2.setURL('images/empresa_r2_c1.jpg');
lp2.setSize(758,185);
lp2.moveTo(15,0); // <-- NOTE: lp will overlap lp2
lp2.setZIndex(2);
DynAPI.document.addChild(lp2);
}
//-->
</script>
------------------------------------------------------------------------
-------
Juan Carlos Celaya, Webmaster de Factoria Digital.
E-mail: [EMAIL PROTECTED]
www.FactoriaDigital.com / Hosting.Factoriadigital.com
Tfnos. : (+34) 977 24 88 89 / 667 821 551
Fax: (+34) 977 22 98 27
------------------------------------------------------------------------
-------
-----Mensaje original-----
De: Raymond Irving [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 06 de diciembre de 2002 23:39
Para: Webmaster
Asunto: RE: [Dynapi-Help] Debugging help needed
What does line 182 says in dynapi.js? Or is it 182 in loadpanel.js?
Are you using 2.5 or 2.9?
Some more details are required
PS. I noticed that this was not posted to the
dynapi-help group were others might have seen the
problem before.
--
Raymond Irving
--- Webmaster <[EMAIL PROTECTED]> wrote:
> DynApi reported an error . Line 182. Error : An
> exception happened
>
> (well, that's what the translated ie6 msg says)
>
> Using your code, any idea of what can be?
>
> PS: I suppose that line 182 is in the dynapi .js
> files... The page
> doesn't have 182 lines of code, it has 137.
>
> Regards
>
------------------------------------------------------------------------
> -------
> Juan Carlos Celaya, Webmaster de Factoria Digital.
> E-mail: [EMAIL PROTECTED]
> www.FactoriaDigital.com /
> Hosting.Factoriadigital.com
> Tfnos. : (+34) 977 24 88 89 / 667 821 551
> Fax: (+34) 977 22 98 27
>
------------------------------------------------------------------------
> -------
>
>
> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] En
> nombre de Raymond
> Irving
> Enviado el: jueves, 05 de diciembre de 2002 14:20
> Para: [EMAIL PROTECTED]
> Asunto: Re: [Dynapi-Help] Debugging help needed
>
>
> Hi,
>
> In dynapi 2.5 you can only call one function with DynAPI.onLoad.
> DynAPI 2.9 supports the loading of more than one functions
> at load time.
>
> Here's what the code should look like:
>
> DynAPI.onLoad=function() {
> lp = new LoadPanel();
> lp.setHTML("nada por aqui...");
>
> lp.setSize(480,280); // height will be overwritten
> by
> default
> lp.moveTo(175,260); // <-- NOTE: lp will overlap
> lp2
> lp.setZIndex(4);
>
> counter = 0;
> var el = new EventListener();
> el.onload = function(e) {
> status = 'got load event '+ counter++;
> }
>
> lp.addEventListener(el);
>
> DynAPI.document.addChild(lp);
>
> lp2 = new LoadPanel();
> lp2.setURL('images/empresa_r2_c1.jpg');
>
> lp2.setSize(758,185);
> lp2.moveTo(15,0); // <-- NOTE: lp will overlap lp2
> lp2.setZIndex(2);
>
> DynAPI.document.addChild(lp2);
> }
>
> NOTE: lp will overlap lp2
>
> As for the setURL() and image path everything looks
> ok
> to me. Make sure that the page to the image is
> correct.
>
> --
> Raymond Irving
>
> --- Webmaster <[EMAIL PROTECTED]> wrote:
> > Hi, i have this code and it gives me error on
> > Internet Explorer 6 as if
> > the objects weren't defined, i'm pretty lame on JS
> > so maybe it's a
> > syntax error or something, but i just don't see
> it,
> > here's the code:
> >
> >
>
--------------------------------------------------------------
> > <head>
> > <script language="Javascript"
> > src="src/dynapi.js"></script>
> > <script language="Javascript">
> DynAPI.setLibraryPath('src/lib/');
> > DynAPI.include('dynapi.api.*');
> > DynAPI.include('dynapi.event.*')
> > DynAPI.include('dynapi.gui.loadpanel.js');
> > </script>
> > <script language="Javascript">
> > DynAPI.onLoad=function() {
> > lp = new LoadPanel();
> > lp.setHTML("nada por aqui...");
> >
> > lp.setSize(480,280); // height will be
> overwritten
> > by default
> > lp.moveTo(175,260);
> > lp.setZIndex(4);
> >
> > counter = 0;
> > var el = new EventListener();
> > el.onload = function(e) {
> > status = 'got load event '+ counter++;
> > }
> >
> > lp.addEventListener(el);
> >
> > DynAPI.document.addChild(lp);
> > }
> > DynAPI.onLoad=function() {
> > lp2 = new LoadPanel();
> > lp2.setURL('images/empresa_r2_c1.jpg');
> >
> > lp2.setSize(758,185);
> > lp2.moveTo(15,0);
> > lp2.setZIndex(2);
> >
> > DynAPI.document.addChild(lp2);
> > }
> > //-->
> > </script>
> > </head>
> >
>
--------------------------------------------------------------
> > Thanks for help.
> >
> > Regards!
> >
> > PS: Also for loading an image setURL is ok or
> better
> > to use a dedicated
> > functions? Ah, and about paths, they are ok, this
> > script worked until i
> > added lp2 to it...
> >
> >
> >
> >
> >
>
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
>
>
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help