DHTMLX Docs & Samples Explorer

Enable/Disable

Source
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxform_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxform.js"></script>
    <script src="../../codebase/ext/dhtmlxform_item_upload.js"></script>
    <script src="../../codebase/ext/swfobject.js"></script>
    <script>
var myForm,
formData;
function doOnLoad() {
    formData = [{
        type: "checkbox",
        label: "Enable/Disable",
        checked: true,
        position: "label-right",
        list: [{
            type: "fieldset",
            label: "Uploader",
            list: [{
                type: "upload",
                name: "myFiles",
                inputWidth: 330,
                url: "php/dhtmlxform_item_upload.php",
                swfPath: "../../codebase/ext/uploader.swf",
                swfUrl: "../../samples/07_uploader/php/dhtmlxform_item_upload.php"
            }]
            }]
        }];
    myForm = new dhtmlXForm("myForm", formData);
}
</script> <div id="myForm"></div>