Ray, i tested your advice, doesn't work, it overflows everything as
before, do you recommend me to switch to 2.9? 

I only plan to have a central layer with content who changes using a
flash menu (that part already works) and that at the same time should
change the header (the lp2 on the script, removed now as i can't get it
to work) and a scroller (that doesn't work at all right now).

***Actual script using 2.5.6 (also added the resize script of netscape 4
so you know if that interferes or something).***

<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);
        lp.setClip(10,10,10,10);
        lp.setAutoResizeWidth(true);
        lp.setAutoResizeHeight(true);
        lp.getContentWidth();
        lp.getContentHeight();
        
        counter = 0;
        var el = new EventListener();
        el.onload = function(e) {
                status = 'got load event '+ counter++;
        }
        
        lp.addEventListener(el);
        
        DynAPI.document.addChild(lp);
}
//-->
</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] En nombre de Raymond
Irving
Enviado el: lunes, 09 de diciembre de 2002 14:51
Para: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Asunto: RE: [Dynapi-Help] New to DynAPI... should i start wih 2.5.6 or
2.9? (errors or missing something)



Try using setAutoResizeWidth(true)
and setAutoResizeHeight(true) and then use getWidth()
and getHeight() to get the with and height of the
content of the loadpanel.

PS. Most of my work has been done using the 2.9
version. I'm not very familliar with the workings of
2.5.6. Maybe a developer from the 2.5.x days would
like to answer these questions.

--
Raymond Irving

--- Webmaster <[EMAIL PROTECTED]> wrote:
> **** Using DynAPI 2.5.6 ****
> 
> I use getContentHeight() and getContentWidth()...
> Nothing happens, i'm
> using getURL to determine the content in layer,
> should i use
> setContent() for these two properties
> (getContentHeight,
> getContentWidth) to work?
> 
> Btw, one of the examples
> (dynapi.gui.scrollpane.html) doesn't work at
> all in IE 6 SP1 on Win XP (javascript error,
> 'scrollobj' is an undefined
> object) and the other example,
> dynapi.gui.pushpanel.html, crashes (or
> kind of, layers get grey and don't change) if you
> push a few times the
> labels (i.e. label 1, then 3, then 2... Greyed)
> 
> And about clipping property... Well, i don't see it
> with the code i'm
> using:
> 
> <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);
>       lp.setClip(10,10,10,10);
>       lp.getContentWidth();
>       lp.getContentHeight();
>       
>       counter = 0;
>       var el = new EventListener();
>       el.onload = function(e) {
>               status = 'got load event '+ counter++;
>       }
>       
>       lp.addEventListener(el);
>       
>       DynAPI.document.addChild(lp);
> }
> //-->
> </script>
> 
> PS: Now there is only one LP because when using two
> it gave error(as
> replied in previous mail), even with your code.
> 
>
------------------------------------------------------------------------
> -------
> 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: mi�rcoles, 04 de diciembre de 2002 15:18
> Para: [EMAIL PROTECTED]
> Asunto: RE: [Dynapi-Help] New to DynAPI... should i
> start wih 2.5.6 or
> 2.9?
> 
> 
> 
> --- Webmaster <[EMAIL PROTECTED]> wrote:
> > Hi, just tested 2.5.6 load layer function, seems
> > nice, but how do i
> > determine if the layer is scrollable if the
> content "overflows" the
> > layer size?
> 
> Try getContentHeight() and getContentWidth()
>  
> > And also what does exactly the clipping function
> in
> > dynapi? Same as in
> > normal DHTML (determine viewable size of an
> object)
> > or there is another
> > application i haven't thought of?
> 
> It's the same as the one used in DHTML
> 
>  
> PS. Please remember to use "Reply to All" when
> replying making a reply
> 
> 
> --
> Raymond Irving
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by: Microsoft Visual Studio.NET
> comprehensive development tool, built to increase
> your 
> productivity. Try a free online hosted session at:
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> 
> 
> 
>
-------------------------------------------------------
> 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




-------------------------------------------------------
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

Reply via email to