Hey!
the createElement method does this:
if (is.ns4) {
lyr=new Layer(w,parent.elm)
lyr.captureEvents(Event.LOAD)
lyr.onload=function() {}
if (p) lyr.padding=p
}
but, where it is supposed that the id for the new Layer is initialized?
if i try this:
lyr.id = id;
i get the error: "lyr is read only"
and if i print the lyr.id, presto! it is a "_js_layer_XXX" like id.
i think that we cant change the id of a DynLayer, i am right?
something like this.changeID(lyr.id); //trying to overwrite the id for
NS4
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Abel Eduardo
Cantu Salas
Sent: Viernes, 26 de Enero de 2001 02:16 p.m.
To: [EMAIL PROTECTED]
Subject: [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-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help