页面加载永不结束 [英] Page load never ends
问题描述
我有一个用javascript编写的相对简单的ASP页面,基本上
包含一个表格,一个由查询填充的下拉列表和一个按钮。
问题是,当第一次导航到此页面时,
IE中的进度条仅显示页面完成10%或20%,即使页面有
满载。
我最初混合了html / jscript / html(按此顺序),并尝试将
更改为html / jscript看看从静态到
动态转换为静态代码是否导致了问题,但是没有效果。
我已经运行了这个页面的输出通过两个或三个不同的html
验证器,其中没有一个显示最终代码有问题。
我在W2k服务器上使用IIS,并且客户端上的IE6或IE5.5。
tia任何指针,
Bob M ..
让我成为第一个o说:请发布相关代码。
-----原始消息-----
我有一个用
编写的相对简单的ASP页面javascript,基本上包含一个表,一个由查询填充的下拉列表,
和一个按钮。
问题是,当第一次导航到此页面时,
inIE中的进度条仅显示页面虽然页面已经加载了10%或20%完成,甚至是
。
我最初混合使用html / jscript / html(以
为单位),并尝试更改那个到html / jscript只是为了看看从静态动态到静态代码的
转换是否导致了问题,但是没有
效果。
我已经运行了这个页面的输出到两个或者三个
不同的htmlvalidators,没有一个显示最终
代码的问题。
我在W2k服务器上使用IIS,在客户端上使用IE6或IE5.5。
对于任何指针,
Bob M ..
。
" John Beschler" < GI *** @ geewhiz.com>在留言中写道
news:0c **************************** @ phx.gbl ... < blockquote class =post_quotes>让我成为第一个说:请发布相关代码。
< G>。
我打算去,但如果这是一个常见的问题,我不想浪费任何人的带宽。这是:
<%@ language =" JavaScript"%>
<!DOCTYPE HTML PUBLIC" - // W3C / / DTD HTML 4.01 Transitional // EN">
< html lang =" en">
< head>
< meta http-equiv =" Content-Type"含量=" text / html的; charset = ISO-8859-1">
<! - #include virtual =" /BTRC/Shared/Security/AuthenticateUser.asp" - >
<! - #include virtual =" /BTRC/Shared/Server/DbLibrary.asp" - >
< link REL =" stylesheet" TYPE =" text / css"
HREF =" /BTRC/Shared/Style/Style.css">
< link REL =" stylesheet" TYPE =" text / css"
HREF =" /BTRC/Shared/Style/BgStyles.css">
< link REL =" stylesheet" TYPE ="文本/ CSS" HREF =" Style / Style.css">
< / head>
< body leftmargin = 10 topmargin = 10>
< script language =" javascript" src =" scripts / titleband.js"
type = text / javascript>< / script>
< script language =''javascript''>
函数DoCarrierSelectChange(ASelect)
{
document.URL =" SaveCarrier.asp" + ASelect.value;
}
ClearTitleHtml();
AddTitleHtml("< span style =''position:absolute; left :10;''>更改
承运人< / span>");
< / script>
< center>
< table border =''0''cellpadding ='''''cellspacing =''0''>
< tr>
< td>
< table class =''inner''border =''0''cellpadding ='''''cellspacing ='''''>
< tr class =''SUB_HEADER_ONE''>
< td colspan ='''''>更改承运人
< ;%
var vCarrierName = String(Request.Cookies(" CarrierName"));
if(vCarrierName!="")
Response.write(" from" + vCarrierName);
%>
< / td>
< / tr>
< tr height =" 40" class =''data_light''>
< td>
< table height =''100%''>
< tr>
< td>选择一个运营商< / td>< td>
<%
Response.write( ''会话(" securitytoken")=''+会话(" SecurityToken")+
''< BR>'');
Response.write ("< select id =''CarrierSelect''> \ n");
ConnectDb();
BeginTrans();
vSQL =
''选择''+
''C.carrier_id为ID,C.carrier_name为CName''+
''来自''+
''security_token ST''+
''加入UC.user_id上的user_carrier UC ='ST.user_id''+
''在c.carrier_id = uc.carrier_id''加入运营商C'+
''其中''+
''st.security_token_id ='' +会话(SecurityToken)+''''+
''按顺序排列''
''C.carrier_name'';
vCarrierList = ExecSQL(vSQL);
if(vCarrierList!= null)
{
while(!vCarrierList.EOF)
{
Response.write(
"< option value =''?id =" +
vCarrierList.Fields(" ID")。Value +
"& name =" +
vCarrierList.Fields(" CName")。Value);
if(String(vCarrierList.Fields(" ID")。。Value) ==
String(Request.Cookies(" CarrierId")))
Response.write("''selected>");
else
Response.write("''>");
Response.write(vCarrierList.Fields(" CName")。Value) ;
Response.write("< / option> \ n");
vCarrierList.Move(1);
}
}
else
Response.write(''< option selected> gt; Debug:Null result set< / option>'');
提交();
DisconnectDb();
Response.write(''< / select> \ n'');
Response.write(''< / td> \ n'');
Response.write(''< / tr> \ n''' );
Response.write(''< / table> \ n'');
响应。写(''< / td> \ n'');
Response.write(''< / tr> \ n'');
Response.write(''< / table> \ n'');
Response.write(''< / td> \ n'');
Response.write(''< / tr> \ n'');
Response.write(''< tr>< td height =" 10">< ; / td>< / tr> \ n'');
Response.write(''< tr height =" 34"> \ n'');
Response.write(''< td colspan =" 2" class =" buttons"
align =" right"> \ n'');
Response.write(''< button id = OkButton
onclick =" DoCarrierSelectChange(CarrierSelect);"
style =" width:75; margin-right:5; margin-left:5"> Ok< / button> \ n'');
Response.write(''< / td> \ n'');
Response.write('' < / tr> \ n'');
Response.write(''< / table> \ n'');
Response.write( ''< / center> \ n'');
Response.write(''< / body> \ n'');
回应。写(''< / html> \ n'');
Response.End;
%>
>
" Bob Murdoch"写道:
...
Response.End;
那应该是Response.End(),虽然你可以放弃它。
你能发布最后几行生成的源代码吗?
-
戴夫安德森
未经请求的商业电子邮件将以
的成本阅读
I have a relatively simple ASP page written in javascript, that basically
contains a table, a dropdown list populated by a query, and a button.
The problem is that when first navigating to this page, the progress bar in
IE only shows the page as being 10 or 20% complete, even though the page has
fully loaded.
I originally had a mix of html/jscript/html (in that order), and tried
changing that to html/jscript just to see if the conversion from static to
dynamic to static code was causing a problem, but with no effect.
I have run the output of this page thru two or three different html
validators, none of which show a problem with the final code.
I''m using IIS on W2k server, and IE6 or IE5.5 on client.
tia for any pointers,
Bob M..
Let me be the first to say: Please post the relevant code.
-----Original Message-----
I have a relatively simple ASP page written in javascript, that basicallycontains a table, a dropdown list populated by a query, and a button.
The problem is that when first navigating to this page, the progress bar inIE only shows the page as being 10 or 20% complete, even though the page hasfully loaded.
I originally had a mix of html/jscript/html (in that order), and triedchanging that to html/jscript just to see if the conversion from static todynamic to static code was causing a problem, but with no effect.
I have run the output of this page thru two or three different htmlvalidators, none of which show a problem with the final code.
I''m using IIS on W2k server, and IE6 or IE5.5 on client.
tia for any pointers,
Bob M..
.
"John Beschler" <gi***@geewhiz.com> wrote in message
news:0c****************************@phx.gbl...Let me be the first to say: Please post the relevant code.
<G>.
I was going to, but didn''t want to waste anyone''s bandwidth if this was a
common problem. Here it is:
<%@ language="JavaScript"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!--#include virtual="/BTRC/Shared/Security/AuthenticateUser.asp" -->
<!--#include virtual="/BTRC/Shared/Server/DbLibrary.asp" -->
<link REL="stylesheet" TYPE="text/css"
HREF="/BTRC/Shared/Style/Style.css">
<link REL="stylesheet" TYPE="text/css"
HREF="/BTRC/Shared/Style/BgStyles.css">
<link REL="stylesheet" TYPE="text/css" HREF="Style/Style.css">
</head>
<body leftmargin=10 topmargin=10>
<script language="javascript" src="scripts/titleband.js"
type=text/javascript></script>
<script language=''javascript''>
function DoCarrierSelectChange(ASelect)
{
document.URL = "SaveCarrier.asp" + ASelect.value;
}
ClearTitleHtml();
AddTitleHtml("<span style=''position:absolute;left:10;''>Change
Carrier</span>");
</script>
<center>
<table border=''0'' cellpadding=''0'' cellspacing=''0''>
<tr>
<td>
<table class=''inner'' border=''0'' cellpadding=''2'' cellspacing=''1''>
<tr class=''SUB_HEADER_ONE''>
<td colspan=''2''>Change Carrier
<%
var vCarrierName = String(Request.Cookies("CarrierName"));
if (vCarrierName != "")
Response.write(" from " + vCarrierName);
%>
</td>
</tr>
<tr height="40" class=''data_light''>
<td>
<table height=''100%''>
<tr>
<td>Select a Carrier</td><td>
<%
Response.write(''Session("securitytoken")='' + Session("SecurityToken") +
''<BR>'');
Response.write("<select id=''CarrierSelect''>\n");
ConnectDb();
BeginTrans();
vSQL =
''select ''+
'' C.carrier_id as ID, C.carrier_name as CName ''+
''from ''+
'' security_token ST ''+
'' join user_carrier UC on UC.user_id = ST.user_id ''+
'' join carrier C on c.carrier_id = uc.carrier_id ''+
''where ''+
'' st.security_token_id='' + Session("SecurityToken") + '' '' +
''order by ''+
'' C.carrier_name'';
vCarrierList = ExecSQL(vSQL);
if (vCarrierList != null)
{
while (!vCarrierList.EOF)
{
Response.write(
"<option value=''?id=" +
vCarrierList.Fields("ID").Value +
"&name=" +
vCarrierList.Fields("CName").Value);
if (String(vCarrierList.Fields("ID").Value) ==
String(Request.Cookies("CarrierId")))
Response.write("'' selected>");
else
Response.write("''>");
Response.write(vCarrierList.Fields("CName").Value) ;
Response.write("</option>\n");
vCarrierList.Move(1);
}
}
else
Response.write(''<option selected>Debug: Null result set</option>'');
Commit();
DisconnectDb();
Response.write(''</select>\n'');
Response.write('' </td>\n'');
Response.write('' </tr>\n'');
Response.write('' </table>\n'');
Response.write('' </td>\n'');
Response.write('' </tr>\n'');
Response.write('' </table>\n'');
Response.write('' </td>\n'');
Response.write('' </tr>\n'');
Response.write('' <tr><td height="10"></td></tr>\n'');
Response.write('' <tr height="34">\n'');
Response.write('' <td colspan="2" class="buttons"
align="right">\n'');
Response.write('' <button id=OkButton
onclick="DoCarrierSelectChange(CarrierSelect);"
style="width:75;margin-right:5;margin-left:5">Ok</button>\n'');
Response.write('' </td>\n'');
Response.write('' </tr>\n'');
Response.write('' </table>\n'');
Response.write('' </center>\n'');
Response.write(''</body>\n'');
Response.write(''</html>\n'');
Response.End;
%>
"Bob Murdoch" wrote:
...
Response.End;
That should be Response.End(), though you could just leave this off.
Could you post the last few lines of generated source code?
--
Dave Anderson
Unsolicited commercial email will be read at a cost of
这篇关于页面加载永不结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!