From: Webmaster <web...@fa...> - 2002-12-09 23:40:13
|
Tried with your ideas, weird effect, layers appear as they should (without scroll still) but whole page is resized i.e. if it fitted in 1024x768 without vertical scroll, now it needs vertical scroll, as is the unseen content occuped the space, any idea of how to solve that? Btw what's the difference between setClip([int]); and getClip(int); ?=20 Neither seems to work for me. Regards ------------------------------------------------------------------------ ------- Juan Carlos Celaya, Webmaster de Factoria Digital. E-mail: web...@fa... www.FactoriaDigital.com / Hosting.Factoriadigital.com=20 Tfnos. : (+34) 977 24 88 89 / 667 821 551 Fax: (+34) 977 22 98 27 ------------------------------------------------------------------------ ------- -----Mensaje original----- De: dyn...@li... [mailto:dyn...@li...] En nombre de Raymond Irving Enviado el: lunes, 09 de diciembre de 2002 20:51 Para: dyn...@li... Asunto: RE: [Dynapi-Help] New to DynAPI... should i start wih 2.5.6 or 2.9? (errors or missing something - reply) --- Webmaster <web...@fa...> wrote: > Ray, i tested your advice, doesn't work, it > overflows everything as > before, do you recommend me to switch to 2.9? Stick with 2.5.6 for now. The widgets will have to be convert to support the 2.9 format. I think I see what's going on here. You are trying to prevent the height (and/or width) of the LoadPanel for changing when the content changes, correct? If yes then set setAutoResizeWidth(false), setAutoResizeHeight(false) and remove getContentWidth() and getContentHeight() > ***Actual script using 2.5.6 (also added the resize > script of netscape 4 > so you know if that interferes or something).*** I think DynAPI 2.5.6 should handle the NS4 resize issue. let me know if the above works. -- Raymond Irving =20 > <script language=3D"Javascript" > src=3D"src/dynapi.js"></script> > <script language=3D"Javascript"> DynAPI.setLibraryPath('src/lib/'); > DynAPI.include('dynapi.api.*'); > DynAPI.include('dynapi.event.*') > DynAPI.include('dynapi.gui.loadpanel.js'); > </script> > <script language=3D"Javascript"> > DynAPI.onLoad=3Dfunction() { > lp =3D new LoadPanel(); > lp.setHTML("nada por aqui..."); > =09 > lp.setSize(480,280); > lp.moveTo(175,260);=09 > lp.setZIndex(4); > lp.setClip(10,10,10,10); > lp.setAutoResizeWidth(true); > lp.setAutoResizeHeight(true); > lp.getContentWidth(); > lp.getContentHeight(); > =09 > counter =3D 0; > var el =3D new EventListener(); > el.onload =3D function(e) { > status =3D 'got load event '+ counter++; > } > =09 > lp.addEventListener(el); > =09 > DynAPI.document.addChild(lp); > } > //--> > </script> >=20 > <script language=3D"JavaScript" > type=3D"text/JavaScript"> > <!-- > function MM_reloadPage(init) { //reloads the window > if Nav4 resized > if (init=3D=3Dtrue) with (navigator) {if > ((appName=3D=3D"Netscape")&&(parseInt(appVersion)=3D=3D4)) { > document.MM_pgW=3DinnerWidth; > document.MM_pgH=3DinnerHeight; > onresize=3DMM_reloadPage; }} > else if (innerWidth!=3Ddocument.MM_pgW || > innerHeight!=3Ddocument.MM_pgH) > location.reload(); > } > MM_reloadPage(true); > //--> > </script> >=20 > ------------------------------------------------------------------------ > ------- > Juan Carlos Celaya, Webmaster de Factoria Digital. > E-mail: web...@fa... > www.FactoriaDigital.com / > Hosting.Factoriadigital.com > Tfnos. : (+34) 977 24 88 89 / 667 821 551 > Fax: (+34) 977 22 98 27 > ------------------------------------------------------------------------ > ------- >=20 >=20 > -----Mensaje original----- > De: dyn...@li... > [mailto:dyn...@li...] En > nombre de Raymond > Irving > Enviado el: lunes, 09 de diciembre de 2002 14:51 > Para: dyn...@li... > CC: dyn...@li... > Asunto: RE: [Dynapi-Help] New to DynAPI... should i > start wih 2.5.6 or > 2.9? (errors or missing something) >=20 >=20 >=20 > 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. >=20 > 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. >=20 > -- > Raymond Irving >=20 > --- Webmaster <web...@fa...> wrote: > > **** Using DynAPI 2.5.6 **** > >=20 > > 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? > >=20 > > 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) > >=20 > > And about clipping property... Well, i don't see > it > > with the code i'm > > using: > >=20 > > <script language=3D"Javascript" > > src=3D"src/dynapi.js"></script> > > <script language=3D"Javascript"> > DynAPI.setLibraryPath('src/lib/'); > > DynAPI.include('dynapi.api.*'); > > DynAPI.include('dynapi.event.*')=20 > > DynAPI.include('dynapi.gui.loadpanel.js'); > > </script> > > <script language=3D"Javascript"> > > DynAPI.onLoad=3Dfunction() { > > lp =3D new LoadPanel(); > > lp.setHTML("nada por aqui..."); > > =09 > > lp.setSize(480,280); > > lp.moveTo(175,260);=09 > > lp.setZIndex(4); > > lp.setClip(10,10,10,10); > > lp.getContentWidth(); > > lp.getContentHeight(); > > =09 > > counter =3D 0; > > var el =3D new EventListener(); > > el.onload =3D function(e) { > > status =3D 'got load event '+ counter++; > > } > > =09 > > lp.addEventListener(el); > > =09 > > DynAPI.document.addChild(lp); > > } > > //--> > > </script> > >=20 > > PS: Now there is only one LP because when using > two > > it gave error(as > > replied in previous mail), even with your code. > >=20 > > > ------------------------------------------------------------------------ > > ------- > > Juan Carlos Celaya, Webmaster de Factoria Digital. > > E-mail: web...@fa... www.FactoriaDigital.com / > > Hosting.Factoriadigital.com > > Tfnos. : (+34) 977 24 88 89 / 667 821 551 > > Fax: (+34) 977 22 98 27 > > > ------------------------------------------------------------------------ > > ------- > >=20 > >=20 > > -----Mensaje original----- > > De: dyn...@li... > > [mailto:dyn...@li...] > En > > nombre de Raymond > > Irving > > Enviado el: mi=E9rcoles, 04 de diciembre de 2002 > 15:18 > > Para: dyn...@li... > > Asunto: RE: [Dynapi-Help] New to DynAPI... should > i > > start wih 2.5.6 or > > 2.9? >=20 =3D=3D=3D message truncated =3D=3D=3D __________________________________________________ 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 Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help |