method addDHTMLDOMObject

bool addDHTMLDOMObject(string name,value value);

Argumente

Zurückgegebener Wert

This method adds an existing object to the DOM of the DHTML box. This allows the user to reference this object from anywhere else the associated box is available.
function SetupDHTMLControl(someGadget)
{
    var dhtmlBox = someGadget.getPartById("dhtmlItem");

    if (dhtmlBox)
    {
        var item = new UserObject();
        dhtmlBox.execCmd("respectVisibility", 0, true);
        dhtmlBox.execCmd("disableEditFocus", 0, true);
        dhtmlBox.mshtmlExtensions = true;
        dhtmlBox.charset = "utf-8";

        // disable videos in the control.
        dhtmlBox.enableFeature("videos", false);

        dhtmlBox.addDHTMLDOMObject("userItem", item);

        var mshtmlValue = dhtmlBox.mshtmlExtensions;
        if (mshtmlValue)
        {
            // MORE SETUP HERE
        }
    }
}