There is an acnowledged problem with
resizing in netscape.
Netscape always reloads the document
which makes for problems..
your resize code is trying to resize objects that
nmetscape has destroyed.

Doug Melvin
----- Original Message -----
From: "GORTSILAS ANDREAS" <[EMAIL PROTECTED]>
To: "Dynapi-Help Mailing List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, January 19, 2001 2:11 AM
Subject: [Dynapi-Help] Netscape problem


> I am trying the following code:
>
>   DynAPI.onResize = function() {
>     status="width="+DynAPI.document.getWidth()+"
> height="+DynAPI.document.getHeight();
>     CenterDynLayer(myLayer)
>   }
>
>   DynAPI.onLoad=function() {
>     DynAPI.document.setBgColor('white')
>
>     myLayer=new DynLayer(null,100,100,300,300,'#FFFF00')
>     myLayer.setHTML('<center><a id="lnkEnter"
> href="TasksMenu.html">Enter</a>')
>     this.document.addChild(myLayer)
>     CenterDynLayer(myLayer)
>   }
>
>   function CenterDynLayer(oDynLayer) {
>
>
oDynLayer.moveTo((oDynLayer.parent.getWidth()/2)-(oDynLayer.getWidth()/2),(o
> DynLayer.parent.getHeight()/2)-(oDynLayer.getHeight()/2))
>   }
>
> With IE there is no problem, but with Netscape the follwoing error is
> raised:
>
> JavaScript Error: dynacore/api/layer.js, line 198:
>
> this.elm has no properties.
>
> The Netscape is 4.7 on a linux mandrake through x-win32 v5.1.1
>
> Can anyone help me?
>
> Thanks
>
> Andreas
>
>
> _______________________________________________
> 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

Reply via email to