3.2.0

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
January 16,
Check this post:
http://activewidgets.com/javascript.forum.10038.1/how-do-i-define-a.html
Carlos
January 16,
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
January 16,

This topic is archived.

See also:


Back to support forum