123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- XFormsObject.prototype = new XFormsControl;
- function XFormsObject (strParentId, strAlert, strHelp, strHint, strAccesskey, strClass, strClassId, bDisabled, strId, nNavindex, strStyle, strTag, strVisibility, strUserDefineAttrib)
- {
- if (!strId)
- {
- return;
- }
-
- XFormsControl.call(this, strParentId, strAlert, strHelp, strHint, strAccesskey, strClass, bDisabled, strId, nNavindex, strStyle, strTag, strVisibility, strUserDefineAttrib);
-
- /**
- * attribute
- */
- this.attribute["clsid"] = strClassId;
- };
- XFormsObject.prototype.init = function ()
- {
- XFormsControl.prototype.init.call(this);
-
- // TODO Chrome, FireFox에서 flash 동작이 안되서 추가시킴 2011.03.08. 박현우
- if (!is_ie)
- {
- var heControl = this.m_heControl;
- var strValuePath = "";
- for (var i=0; i<heControl.childNodes.length; i++)
- {
- var heChild = heControl.childNodes.item(i);
- strValuePath = heChild.getAttribute("value");
- if ("" != strValuePath)
- {
- break;
- }
- }
-
- var heEmbedTag = document.createElement("embed");
- heEmbedTag.src = strValuePath;
- heEmbedTag.width = heControl.style.width;
- heEmbedTag.height = heControl.style.height;
-
- this.m_heControl.appendChild(heEmbedTag);
- }
-
-
- this.resizeControl();
- eval(this.id + "= "+this.id+".m_heControl;");
- };
- XFormsObject.prototype.setAttribute = function (strAttribute, strValue)
- {
- XFormsControl.prototype.setAttribute.call(this, strAttribute, strValue);
- switch (strAttribute)
- {
- case "clsid" :
- {
- break;
- }
- }
- };
- XFormsObject.createAttribute = function (xnHtmlNode, clAttribute)
- {
- xnHtmlNode = XFormsControl.createAttribute(xnHtmlNode, clAttribute);
- return xnHtmlNode;
- };
|