到底错误在哪里呢?

zhousq00 2010-02-03 10:17:11

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>后台首页</title>
<link href="img/Style.Css" rel="stylesheet" type="text/css" />
<LINK href="img/admincpmain.css" type=text/css rel=stylesheet>
</head>
<body>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD>
<TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>后台主页</TD>
</TR>
</TBODY>
</TABLE>
<table width=100% border=0 cellpadding=0 cellspacing=0 class=tableborder>
<TR>
<TD height="40" colspan=4 width="50%" valign="top">
<script src="maincall/MainCall.asp?t=1"></script>
</TD>
</TR>
</table>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>

IE的报错提示是“缺少‘)’”
我实在找不到错误在哪
请帮我看看问题在哪
...全文
73 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
luhui436 2010-02-03
  • 打赏
  • 举报
回复
include是这么导入的<!--include file="文件名">
zhousq00 2010-02-03
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 ltnrain 的回复:]
Show=Show&" <td width=""10%"" class='css_top'> <div align=""center"">序号 </div> </td>"

楼主你的字符串变量里面有单引号。。
[/Quote]

谢谢,果然如你所说!
luhui436 2010-02-03
  • 打赏
  • 举报
回复
第一种: asp不应该用<script>导入,应该用iframe导入
第二种:将html代码放入jsp页面,用include导入
草根醉秋意 2010-02-03
  • 打赏
  • 举报
回复
Show=Show&" <td width=""10%"" class='css_top'> <div align=""center"">序号 </div> </td>"

楼主你的字符串变量里面有单引号。。
miaruk 2010-02-03
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 zhousq00 的回复:]
引用 5 楼 ghjlesse 的回复:
content="text/html; charset=GB2312"应为
content="text/html" charset="GB2312"


跟这个没关系.....汗.
luhui436 2010-02-03
  • 打赏
  • 举报
回复
楼上说得不对,应该是content="text/html; charset=GB2312"
zhousq00 2010-02-03
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 ghjlesse 的回复:]
content="text/html; charset=GB2312"应为
content="text/html" charset="GB2312"
[/Quote]

问题依然!
ghjlesse 2010-02-03
  • 打赏
  • 举报
回复
content="text/html; charset=GB2312"应为
content="text/html" charset="GB2312"
zhousq00 2010-02-03
  • 打赏
  • 举报
回复
我把maincall/MainCall.asp?t=1的代码也贴出来吧!

Case 1
Show=Show&"<table width=100% border=0 cellpadding=0 cellspacing=0 class=tableborder>"
Show=Show&"<TR class=header><td colspan=""3"" height=""40""><a href=""Savesms.asp"" target=""main"">后台短消息</a></td><td height=""40"" align=""right""><div align=""right""><a href=""Savesms.asp"" target=""main"">详情...</a>    </div></td></TR>"
Show=Show&"<tr class=""altbg1"">"
Show=Show&"<td width=""10%"" class='css_top'><div align=""center"">序号</div></td>"
Show=Show&"<td width=""10%"" class='css_top'><div align=""center"">发件人</div></td>"
Show=Show&"<td width=""50%"" class='css_top'><div align=""center"">标题</div></td>"
Show=Show&"<td width=""30%"" class='css_top'><div align=""center"">时间</div></td>"
Show=Show&"</tr>"
Set ShortInfo=Server.CreateObject("Adodb.recordset")
ShortInfo.open "Select Top 8 SendName,IsSendMark,Send_Del_Mark,Send_ForeverDel_Mark,ReceiveName,IsRead,Receive_Del_Mark,Receive_ForeverDel_Mark,Title,Content,SendTime From [Back_ShortInfo] Where [ReceiveName]='"&NickName&"' And Receive_Del_Mark=0 And Receive_ForeverDel_Mark=0",ConnStrbbs,1,1
If Not ShortInfo.Eof Then
i=1
Do While Not ShortInfo.Eof
Show=Show&"<tr>"
Show=Show&"<td width=""11%"" class='css_top'><div align=""center"">"&i&"</div></td>"
Show=Show&"<td width=""11%"" class='css_top'><div align=""center"">"&ShortInfo("SendName")&"</div></td>"
Show=Show&"<td width=""53%"" class='css_top'><div align=""center"">"&ShortInfo("Title")&"</div></td>"
Show=Show&"<td width=""12%"" class='css_top'><div align=""center"">"&ShortInfo("SendTime")&"</div></td>"
Show=Show&"</tr>"
i=i+1
ShortInfo.Movenext
Loop
Else
Show=Show&"<tr>"
Show=Show&"<td colspan=""4""><div align=""left"">还没有短消息!</div></td>"
Show=Show&"</tr>"
End if
ShortInfo.Close
Set ShortInfo=Nothing
Show=Show&"</table>"
Response.Write "document.write('"+Show+"');"
草根醉秋意 2010-02-03
  • 打赏
  • 举报
回复
确定js文件的编码与页面的是一致的,动态生成的js代码吧。。输出的时候什么啊
zhousq00 2010-02-03
  • 打赏
  • 举报
回复
我单独运行了maincall/MainCall.asp?t=1的呀
运行是正确的
结果也正确啊
所以才奇怪!
草根醉秋意 2010-02-03
  • 打赏
  • 举报
回复
<script src="maincall/MainCall.asp?t=1"></script>
在这个文件里面去找错误,调试下就知道在哪里出错了,这个是语法错误,(没闭合

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧