XFormsSubmission.prototype = new XFormsElement; function XFormsSubmission (strParentId, strAction, strAdd, strEncoding, strId, strMediaType, strMethod, strRef, strReplace, strResultRef, strTag, strType) { if (!strId) { return; } XFormsElement.call(this, strParentId, strId, strTag); // Property this.attribute = new Hashtable(); this.attribute["action"] = strAction; this.attribute["add"] = strAdd; this.attribute["encoding"] = strEncoding; this.attribute["id"] = strId; this.attribute["mediatype"] = strMediaType; this.attribute["method"] = strMethod; this.attribute["ref"] = strRef; this.attribute["replace"] = strReplace; this.attribute["resultref"] = strResultRef; this.attribute["tag"] = strTag; this.attribute["type"] = strType; this.attribute["function"] = ""; this.m_refresh = false; }; XFormsSubmission.create = function (strParentId, clAttribute) { var strAction = ""; var strAdd = ""; var strEncoding = ""; var strId = ""; var strMediaType = "application/x-www-form-urlencoded"; var strMethod = "post"; var strRef = ""; var strReplace = ""; var strResultRef = ""; var strType = ""; var strUserDefineAttrib = ""; for (var i=0; i