3.2.0

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
January 15,
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
January 15,
Perfect! That makes sense. Thanks for the tip.
Tony
January 15,

This topic is archived.

See also:


Back to support forum