为什么会IE上出现“完成,但网页上有错误”的信息(200分)

H

hxf

Unregistered / Unconfirmed
GUEST, unregistred user!
我使用DELPHI5试用INTERNET EXPRESS控件,使用ISAPI/NSAPI的WEBMODULE,在WEBMODULE中
放DATABASE、SESSION、QUERY、XMLBROKER、DATASETPROVIDER、MIDASPAGEPRODUCE控件。
在MIDASPAGEPRODUCE上打开Web Page Editor观察,为正常,编译成.dll文件也通过。但使用
IE浏览时,报“完成,但网页上有错误”。能显示数据的空的表及按扭,但不能显示数据。
用NETSCAP浏览时,自动会找XMLDOM.JS文件,并报不能找到该文件。不知何故
以下是DELPHI5自动生成的HTML文本。
<HTML>
<HEAD>
</HEAD>
<BODY>
<SCRIPT language=JavaScript type="text/javascript" SRC="xmldb.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="xmldisp.js"></SCRIPT>
<TABLE BORDER=1 CELLPADDING=4>
<TR><TD><P ALIGN=CENTER>Design-time Warnings<P>
<UL>
<LI>DataNavigator1.XMLComponent = nil
</UL>
</TD></TD>
</TABLE>
<FORM NAME=DataForm1>
<TABLE><TR><TD COLSPAN=2>
<TABLE><TR><TD COLSPAN=2><INPUT TYPE=BUTTON VALUE="|<" onclick='if(xml_ready).first();'>
<INPUT TYPE=BUTTON VALUE="<" onclick='if(xml_ready).up();'>
<INPUT TYPE=BUTTON VALUE=">" onclick='if(xml_ready).down();'>
<INPUT TYPE=BUTTON VALUE=">|" onclick='if(xml_ready).last();'>
<INPUT TYPE=BUTTON VALUE=" + " onclick='if(xml_ready).newRow();'>
<INPUT TYPE=BUTTON VALUE=" - " onclick='if(xml_ready).removeRow();'>
<INPUT TYPE=BUTTON VALUE="Undo" onclick='if(xml_ready).undo();'>
<INPUT TYPE=BUTTON VALUE="Post" onclick='if(xml_ready).post();'>
<INPUT TYPE=BUTTON VALUE="Apply Updates" onclick='if(xml_ready).Apply(, .postdelta);'>
</TR></TABLE></TD>
</TR><TR><TD COLSPAN=2>
<TABLE BORDER=1><TR>
<TH>BZID</TH>
<TH>BZ</TH>
<TH>PASSWD</TH>
<TH>FLG</TH>
<TH>ID</TH>
<TH>BZGH</TH>
<TH>*</TH>
</TR><TR><TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZ" SIZE=14 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_PASSWD" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_FLG" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_ID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZGH" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="StatusColumn" SIZE=1></DIV></TD>
</TR>
<TR><TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZ" SIZE=14 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_PASSWD" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_FLG" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_ID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZGH" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="StatusColumn" SIZE=1></DIV></TD>
</TR>
<TR><TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZ" SIZE=14 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_PASSWD" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_FLG" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_ID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZGH" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="StatusColumn" SIZE=1></DIV></TD>
</TR>
<TR><TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZ" SIZE=14 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_PASSWD" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_FLG" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_ID" SIZE=10 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="DataGrid1_BZGH" SIZE=6 onFocus='if(xml_ready)DataGrid1_Disp.xfocus(this);' onkeydown='if(xml_ready)DataGrid1_Disp.keys(this);'></DIV></TD>
<TD><DIV><INPUT TYPE=TEXT NAME="StatusColumn" SIZE=1></DIV></TD>
</TR>
</TABLE></TD>
</TR></TABLE></FORM>
<XML ID=XMLBroker1_Doc>
<#DATAPACKET XMLBROKER=XMLBroker1>
</XML>
<SCRIPT language=JavaScript type="text/javascript">
var XMLBroker1_RS = new xmlRowSet(XMLBroker1_Doc, null, null);
var DataForm1 =do
cument.forms['DataForm1'];
var DataGrid1_Names = new Array("BZID", "BZ", "PASSWD", "FLG", "ID",
"BZGH");
var DataGrid1_IDs = new Array(DataForm1.DataGrid1_BZID,
DataForm1.DataGrid1_BZ, DataForm1.DataGrid1_PASSWD,
DataForm1.DataGrid1_FLG, DataForm1.DataGrid1_ID,
DataForm1.DataGrid1_BZGH);
var DataGrid1_Disp = new xmlDisplay(XMLBroker1_RS, DataGrid1_IDs, DataGrid1_Names, DataForm1.StatusColumn);
xml_ready=true;
</SCRIPT>
</BODY>
</HTML>

请教各位错在何处。
 
那些JS HTM文件复制到同目录下
如果已经复制
那就请检查应用服务器是否有问题
 
把5个*.js 文件拷贝到你的IIS或者PWS的虚拟目录里面去。
D:/Program Files/Borland/Delphi5/Source/Webmidas/
 
检查JS的路径是否正确。(可以看是否正常显示)
 
把5个*.js 文件拷贝到你的IIS或者PWS中这个文件所在的虚拟目录里面去。*.js在
D:/Program Files/Borland/Delphi5/Source/Webmidas/
 
谢谢大家的帮助!!
 
顶部