:: Forum >>

setId not working

I have the following code

AW.HTML.userInfo = AW.System.Control.subclass();
AW.HTML.userInfo.create = function()
{
var obj = this.prototype;
obj.setTag("DIV");
obj.setId("usercontrol");
}


Although obj.setId is not changing the id for the DIV rendered. It will just use the default naming convention of id="aw8" or something to that effect.
Tony
Sunday, January 15, 2006
Tony, that's normal, prevents to define more than one userInfo control with same ID (you can asign it for every new userInfo defined).

AW.HTML.userInfo = AW.System.Control.subclass();
AW.HTML.userInfo.create = function()
{
var obj = this.prototype;
obj.setTag("DIV");
}

var MyUIcontrol = new AW.HTML.userInfo ;
MyUIcontrol.setId("usercontrol");


Carlos
Sunday, January 15, 2006
Perfect! That makes sense. Thanks for the tip.
Tony
Sunday, January 15, 2006

This topic is archived.


Back to support forum

Forum search