:: Forum >> Version 2 >>

Class aw-xxxxx-undefined problem

I have a custom control

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

    
obj.defineTemplate("myfield", new AW.HTML.SPAN);
    
with (obj.getTemplate("myfield"))
    {
        
setId("text");
        
setClass("left-column");
        
setContent("");
    }
}
 
Something seems not be setting the item correctly. Then I had a previous post that I thought may have been the problem, redeclaring multiple items within the same object itself. So I tried

userInfo = new AW.HTML.userInfo;
userInfo.setId("usercontrol");
userInfo.getTemplate("myfield").setId("text");
 
But the style is still showing up as aw-left-column-undefined when I am assuming it should be aw-left-column-text? What other function am I supposed to be using to define the last part of the class??
Tony
Monday, January 16, 2006
Check this post:
http://activewidgets.com/javascript.forum.10038.1/how-do-i-define-a.html
Carlos
Monday, January 16, 2006
Thanks again Carlos. I guess when the documentation is complete I could have answered my own quesiton there. I don't see anywhere what the parameters.
Tony
Monday, January 16, 2006



This topic is archived.

Back to support forum

Forum search