assignElement...
is this a replacment for findLayers in the inline.js extension?
If so, it's about time..
I've already modified my copy of findLayers to index only those inline
layers which had not been made into DynLayers yet..
IE; so I can call findLayers more than once.. But I found that even then,
there was a LOT of CPU time spent whenever I
wanted to get any new inline layers (those written dynamically as HTML after
the initial rendering of the page)
the CPU jumped to 100% and actually 'blocked' (prevented from use) the
application for 2 - 10 seconds
depending on the computeer it was running on.

A method which allows you to a a specific HTML layer to the DynAPI object
model would be kickass..
please tell me this is the case..

----- Original Message -----
From: "Quang Nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 7:59 PM
Subject: Re: [Dynapi-Dev] Question about DynAPIObject


> Sorry for my last messy post. Here is a much better version:
>
>
> I tried the following code, but the layer 'myLayer' didn't get hidden. Any
> idea
> what I do to make it hidden?
>
> <div id='mylayer'></div>
> <script>
> d = new DynLayer();
> d.setID('mylayer');
> d.assignElement(is.ie?document.all.mylayer:document.layers.mylayer);
> d.setVisible(false) //This doesn't work
> </script>
>
>
>
> ----Original Message Follows----
> From: Dan Steinman <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] Question about DynAPIObject
> Date: Sat, 10 Nov 2001 00:37:26 -0500
>
> The reason for DynAPI to create the layer/div is to make it easier.
There's
> nothing stopping you from creating your layers manually, and then
attaching
> them to a DynLayer afterwords like so:
>
> <div id='mylayer'></div>
> <script>
> d = new DynLayer();
> d.setID('mylayer');
> d.assignElement(is.ie?document.all.mylayer:document.layers.mylayer);  //
> assignElement is re-introduced in 2.6
> </script>
>
> In the current paradigm, creation works similarly to Java does.  You
create
> a GUI object, and add that to some other object.  Dynlayer needs to know
> what object to be created in, be it another layer, or the document.  It
> wouldn't be a good idea for the constructor to create the browser element
> (during "new DynLayer()") because it would have to be created again when
you
> add it to another layer (nesting).  And things have been optimized so that
> the layer is only created when all it's size/location/color has been
> finalized so to reduce unneeded processing.
>
> Regards,
> Dan Steinman
>
>
> On Fri, Nov 09, 2001 at 11:32:31PM +0000, Quang Nguyen wrote:
>  > I guess we create a DynAPI object to make sure the Dynapi.js and any
> library
>  > needed have been loaded.
>  > However, what are the technical reason why we need DynAPI to create a
> layer,
>  > like the following:
>  >
>  >
>  > ...
>  > DynAPI.onLoad = function()
>  > {
>  > myLayer = new DynLayer()
>  > myLayer.setSize(100,100)
>  > myLayer.setBgColor('#c0c0c0')
>  > myLayer.moveTo(100,100)
>  > DynAPI.document.addChild(myLayer)
>  > }
>  > ...
>  >
>  >
>  >
>  > In short, why does the layer myLayer not appear if you write like this:
>  >
>  > ...
>  > myLayer = new DynLayer()
>  > myLayer.setSize(100,100)
>  > myLayer.setBgColor('#c0c0c0')
>  > myLayer.moveTo(100,100)
>  > ...
>  >
>  > _________________________________________________________________
>  > Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>  >
>  >
>  > _______________________________________________
>  > Dynapi-Dev mailing list
>  > [EMAIL PROTECTED]
>  > http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/
>


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to