我已将webmidias下的所有*.js文件到考到虚拟web目录下了,且执行许可也设为
脚本和可执行文件。可是仍然只显示datanavigator的按钮而datagrid显示不出来。
点击datanavigator按钮提示datagrid1_disp未定义。
看ie浏览窗口的源码是:
<HTML>
<HEAD>
</HEAD>
<BODY>
<SCRIPT language=JavaScript type="text/javascript" SRC="../xmldb.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="../xmldisp.js"></SCRIPT>
<FORM NAME=DataForm1>
<TABLE><TR><TD COLSPAN=2>
<TABLE><TR><TD COLSPAN=2><INPUT TYPE=BUTTON VALUE="|<" onclick='if(xml_ready)DataGrid1_Disp.first();'>
<INPUT TYPE=BUTTON VALUE="<<" onclick='if(xml_ready)DataGrid1_Disp.pgup();'>
<INPUT TYPE=BUTTON VALUE="<" onclick='if(xml_ready)DataGrid1_Disp.up();'>
<INPUT TYPE=BUTTON VALUE=">" onclick='if(xml_ready)DataGrid1_Disp.down();'>
<INPUT TYPE=BUTTON VALUE=">>" onclick='if(xml_ready)DataGrid1_Disp.pgdown();'>
<INPUT TYPE=BUTTON VALUE=">|" onclick='if(xml_ready)DataGrid1_Disp.last();'>
<INPUT TYPE=BUTTON VALUE=" + " onclick='if(xml_ready)DataGrid1_Disp.newRow();'>
<INPUT TYPE=BUTTON VALUE=" - " onclick='if(xml_ready)DataGrid1_Disp.removeRow();'>
<INPUT TYPE=BUTTON VALUE="Undo" onclick='if(xml_ready)DataGrid1_Disp.undo();'>
<INPUT TYPE=BUTTON VALUE="Post" onclick='if(xml_ready)DataGrid1_Disp.post();'>
<INPUT TYPE=BUTTON VALUE="Apply Updates" onclick='if(xml_ready)XMLBroker1_RS.Apply(Submit_XMLBroker1, Submit_XMLBroker1.postdelta);'>
</TR></TABLE></TD>
</TR><TR><TD COLSPAN=2>
<TABLE BORDER=1><TR>
</TR><TR></TR>
<TR></TR>
<TR></TR>
<TR></TR>
</TABLE></TD>
</TR></TABLE></FORM>
<FORM NAME=Submit_XMLBroker1 ACTION="/test/project1.exe/XMLBroker1" METHOD="POST"> <INPUT TYPE=HIDDEN NAME="XMLBROKER" VALUE="XMLBroker1">
<INPUT TYPE=HIDDEN NAME="postdelta">
<INPUT TYPE=HIDDEN NAME="PRODUCER" VALUE="MidasPageProducer1">
<INPUT TYPE=HIDDEN NAME="REDIRECT" VALUE="http://81.16.16.36/test/project1.exe/manage">
</FORM>
<XML ID=XMLBroker1_Doc>
<DATAPACKET Version="2.0"><METADATA><FIELDS><FIELD attrname="BoardID" fieldtype="i4" SUBTYPE="Autoinc"/><FIELD attrname="BoardName" fieldtype="string" WIDTH="50" SUBTYPE="FixedChar"/><FIELD attrname="BoardMaster" fieldtype="string" WIDTH="50" SUBTYPE="FixedChar"/><FIELD attrname="BoardPwd" fieldtype="string" WIDTH="10" SUBTYPE="FixedChar"/><FIELD attrname="SiteId" fieldtype="i4" required="true"/><FIELD attrname="BoardType" fieldtype="string" WIDTH="20" SUBTYPE="FixedChar"/><FIELD attrname="DefAuthority" fieldtype="string" WIDTH="50" SUBTYPE="FixedChar"/></FIELDS><PARAMS DEFAULT_ORDER="1" PRIMARY_KEY="1" LCID="0"/></METADATA><ROWDATA><ROW BoardID="1" BoardName="布置" BoardMaster="中心" BoardPwd="1234" SiteId="1" BoardType="布置" DefAuthority="LR"/><ROW BoardID="3" BoardName="交流" BoardMaster="中心" BoardPwd="1234" SiteId="1" BoardType="交流" DefAuthority="ALR"/><ROW BoardID="4" BoardName="讲话" BoardMaster="llj" BoardPwd="llj" SiteId="3" BoardType="布置" DefAuthority="L"/></ROWDATA></DATAPACKET>
</XML>
<SCRIPT language=JavaScript type="text/javascript">
var XMLBroker1_RS = new xmlRowSet(XMLBroker1_Doc, null, null);
var Submit_XMLBroker1 = document.forms['Submit_XMLBroker1'];
xml_ready=true;
</SCRIPT>
</BODY>
</HTML>