DHTMLX Docs & Samples Explorer

Index
dhtmlxForm
API Methods

# dhtmlXForm(parentObj, listData)

Constructor. Creates a new dhtmlxForm instance.

- parentObj - an id or an object that will be used as parent container;
- listData - items if object init is used (optional)
- connector - url to the connector (optional)

    var dhxForm = new dhtmlXForm("parentId");

    var dhxForm = new dhtmlXForm("parentId", "some.php");
    dhxForm.load(someID);

    var listData = [
            {type:"radio", name:"color", value:"r", checked:true, label:"Red"},
            {type:"radio", name:"color", value:"g", label:"Green"},
            {type:"radio", name:"color", value:"b", label:"Blue"}
        ];
    var dhxForm = new dhtmlXForm("parentId", listData);

    var dhxForm = new dhtmlXForm("parentId", listData , "some.php");
    dhxForm.load(someID);