点提交没事,点结果出错?

binb 2010-06-17 03:57:08
如下带代码,在点提交的时候,运行正确,在点结果的时候,出现错误,不知何故?
document.write('<table border=0 cellspacing=0 cellpadding=0 width=100% align=center bgcolor=#ffffff style="margin: 16px 0px 0px 0px;BORDER-LEFT: #fed428 2px double; BORDER-TOP: #fed428 2px double;BORDER-RIGHT: #fed428 2px double;BORDER-BOTTOM: #fed428 2px double;"><tr><td class=menu height=30 align=left>网站调查</td></tr><tr><td width="90%" bgcolor="9a0000" height="1"></td></tr><tr><td align=center height=40 bgcolor="#ffffff" ><table border=0 width=100% cellspacing=2 cellpadding=2><tr><td><table border=0 width=100% cellspacing=2 cellpadding=2><tr><td class=LeftContent> <img src="images/research.gif" border=0> 网上调查</td></tr><form action="researchresult.asp" target="newwindow" method=post name=research><tr><td valign=top class=LeftContent>');
document.write('<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=1>1.栏目组织得当。<br>');
document.write('<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=2>2.色彩比较合理。<br>');
document.write('<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=3>3.框架比较清晰明确<br>');
document.write('<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=4>4.内容丰富。<br>');
document.write('<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=5>5.功能强大,使用方便。<br>');
document.write('');
document.write('');
document.write('</td></tr><tr><td height=30 align=center>');
document.write('<input type=submit value="提交" id=submit1 name=submit1 class=submit> ');
document.write("<input onClick=open_window('researchresult.asp?Type=view','research','width=420,height=250') type=button value='结果' id=button1 name=button1 class=submit>");
document.write('</td></tr></form></table></td></tr></table></td></tr></table>');
...全文
84 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
一名程序员 2010-06-17
  • 打赏
  • 举报
回复
帮顶!
xyy7309 2010-06-17
  • 打赏
  • 举报
回复
看不出什么错误,帮顶!
beyond_me21 2010-06-17
  • 打赏
  • 举报
回复
你的文档中有没有存在一个名为"open_window"的javascript函数啊,没有这个函数当然点击这个按纽时没办法执行了。"open_window"这是个自定的函数,如果没有这个自定函数,你可以改为这样

<input onClick=window.open('researchresult.asp?Type=view','_blank','width=420,height=250') type=button value='结果' id=button1 name=button1 class=submit>

                                  
binb 2010-06-17
  • 打赏
  • 举报
回复
”-“显示友好的HTTP错误信息”这项已经取消
代码就是上面的,该js文件被主程序调用,为让大家看清楚,改写如下:

<table border=0 cellspacing=0 cellpadding=0 width=100% align=center bgcolor=#ffffff style="margin: 16px 0px 0px 0px;BORDER-LEFT: #fed428 2px double; BORDER-TOP: #fed428 2px double;BORDER-RIGHT: #fed428 2px double;BORDER-BOTTOM: #fed428 2px double;"><tr><td class=menu height=30 align=left>网站调查</td></tr><tr><td width="90%" bgcolor="9a0000" height="1"></td></tr><tr><td align=center height=40 bgcolor="#ffffff" ><table border=0 width=100% cellspacing=2 cellpadding=2><tr><td><table border=0 width=100% cellspacing=2 cellpadding=2><tr><td class=LeftContent> <img src="images/research.gif" border=0> 网上调查</td></tr><form action="researchresult.asp" target="newwindow" method=post name=research><tr><td valign=top class=LeftContent>
<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=1>1.栏目组织得当。<br>
<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=2>2.色彩比较合理。<br>
<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=3>3.框架比较清晰明确<br>
<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=4>4.内容丰富。<br>
<input style="background-color: #F6F6F6;border: 0" checked name=Options type=radio value=5>5.功能强大,使用方便。<br>
</td></tr><tr><td height=30 align=center>
<input type=submit value="提交" id=submit1 name=submit1 class=submit> 
<input onClick=open_window('researchresult.asp?Type=view','research','width=420,height=250') type=button value='结果' id=button1 name=button1 class=submit>
</td></tr></form></table></td></tr></table></td></tr></table>
sy_binbin 2010-06-17
  • 打赏
  • 举报
回复


我真是无语了

在IE上找“工具”-“internet选项”-“高级”-“显示友好的HTTP错误信息”这项给取消,然后把错误信息发出来

最好把代码也发出来!!
binb 2010-06-17
  • 打赏
  • 举报
回复
错误内容没有出现,点结果只是说网页上有错误
sy_binbin 2010-06-17
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 binb 的回复:]
点结果,没反应,程序没有运行,提示网页有错误,
但点提交,马上有反应。
[/Quote]

什么错误啊!!
binb 2010-06-17
  • 打赏
  • 举报
回复
点结果,没反应,程序没有运行,提示网页有错误,
但点提交,马上有反应。
binb 2010-06-17
  • 打赏
  • 举报
回复
点提交没有错误提示,好像没反应,但点提交,马上又反应
文盲老顾 2010-06-17
  • 打赏
  • 举报
回复
好多 .write 啊。。。。。
sy_binbin 2010-06-17
  • 打赏
  • 举报
回复
你不说什么错误信息
我也不知何故

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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