If you are wanting the DynLayer reference use:
DynAPI.document.all["JSDynLayer1"]

or

DynAPI.getDocument("DynDocument1").all["JSDynLayer1"] if you were
using frames.


-- 
// Robert Rainwater

On 1/26/2001, 3:16:21 PM EST, Abel wrote about "[Dynapi-Help] Get Div elements":

> Hi there!
> im having serious problems getting references to dynamically created
> layers... Somebody knows how to get a reference to a DynLayer object knowing
> only its id (for instance "JSDynLayer1")?.

> in IE i used this code:
> document.all["JSDynLayer1"];    //So easy!!

> but i just cant find a way of doing this in NS 4 +...

> document.layers, document.layers[idx].layers, etc; are reporting layers with
> ids like this: _js_layer_238, _js_layer_121, etc...

> And having in mind that the page only has the DynLayer objects i created in
> the onload event, i supose that the problem is that in NS, the DynLayers are
> lossing their ids or something like that.

> somebody knows whats going on?




> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


----------------------
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
DynAPI Homepage: http://dynapi.sourceforge.net/



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to