我有以下代码,它适用于 IE,但不适用于 Chrome:
<object id="WorkFlowGraph" name="WorkFlowGraph" width="800px" height="600px" classid="clsid:1E595677-765C-4B01-9B60-59AEE2BFAB2C" codebase="../../CAM/Scripts/WFDesigner3.ocx#Version=-1,-1,-1,-1"></object>
然后在Javascript中:
document.WorkFlowGraph.NextStepID = document.frmProcess.hidNextStepID.value;
document.WorkFlowGraph.ComponentsXML = FixupString(document.frmProcess.hidComponentXML.value);
document.WorkFlowGraph.WorkflowXMLIn = FixupString(document.frmProcess.hidWorkflowXML.value);
document.WorkFlowGraph.IsWorkflowAllowRevision = document.frmProcess.hidIsAllowRevision.value.toString() == 'true' ? true:false;
document.WorkFlowGraph.RedrawWorkflow();
我在 document.WorkFlowGraph.RedrawWorkflow() 上遇到错误;
它抛出这个错误:
未捕获的类型错误:对象 # 没有方法“RedrawWorkflow”
我已经搜索和搜索,无法弄清楚。请帮忙。