history.back()和表单的问题 用cookie把!把你的页面1中的东西都存在cookie中,就不会丢失了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不是这个原因吧!!!代码如下,并不存在楼主所说的问题<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>New Page 1</title></head><body>form1<form method="POST" action="http://www.google.com"><input type="text" name="T1" size="20"><input type="text" name="T1" size="20"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></form>form2<form method="POST" action="http://www.csdn.net"><input type="text" name="T1" size="20"><input type="text" name="T1" size="20"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></form></body></html> try:<style>input{behavior:url(#default#saveHistory)}</style> zhaoweiwei(轩辕大侠) 的方法太麻烦了点。 我也很关心这个问题,我想你也在做报表系统类的东西吧我这样考虑,直接在本页面处理,不通过 可以用JS的alart(错误)通 过 跳转到成功页面共同研究! QQ:12122291 但是JS用得不太熟,而且功能也不强大,有些检测做不到,比如说要求输入的内容为中文等,所以想在后台检测(ASP),检测不合格就输出window.alert();history.back() JK还未理解题意。!---------------------------------真的给弄糊涂了,大家似乎都已明白楼主在说什么,就剩JK还不知道 文件一:file1.asp<form action="file2.asp" method="post"><input type="text" name="input1"><input type="text" name="input2"><input type="text" name="input3"><input type="text" name="input4"><input type="text" name="input5"><input type="text" name="input6"><input type="text" name="input7"><input type="text" name="input8"><input type="text" name="input9"><input type="text" name="input10"><input type="text" name="input11"><input type="text" name="input12"><input type="button" name="button1" value="submit"></form>文件2 file2.asp<%if xxxxxxxx thenresponse.write "<script>window.alert('对不起,输入不完整,返回重输');history.back();</script>"response.endend if%>------------------问题:当file1.asp文件中的input个数太多时,history.back();返回后原来输入的内容全部清空,当input数只有几个时,histroy.back();返回后原来输入的内容都还在。????为什么?如何实现有很多input时,返回时仍然有原来的内容在,而不必再输一遍???? JK刚才做测试,有五千个input,也没有出现问题!!!不知道楼主的页面有多少个input 如何在javascript前台遍历后台数据访问层得到的list集合 关于检测ActiveX是否被禁用 在javascript中如何屏蔽Crtl+Alt+Del键? 求一个匹配除04068以外的5位数字的正则表达式,请高手们帮帮忙,先谢谢了 求浮动广告的代码 JS素数问题 用Javascript统计“.”的个数,我怎么统计不出来呀? 怎样判断含有INPUT,RADIO的值是否填写??急急急!!!!!!!!!!!!!! 一个关于keyCode的问题 如何将Iframe值 传给 父frame 一样这里没有过的iframe难题,是高手请进! 怎么用JS控制Excel表格中单元格的宽度(急,在线等!)
代码如下,并不存在楼主所说的问题
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Page 1</title>
</head><body>
form1
<form method="POST" action="http://www.google.com">
<input type="text" name="T1" size="20"><input type="text" name="T1" size="20"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2">
</form>
form2
<form method="POST" action="http://www.csdn.net">
<input type="text" name="T1" size="20"><input type="text" name="T1" size="20"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2">
</form></body></html>
<style>
input{behavior:url(#default#saveHistory)}
</style>
不通过 可以用JS的alart(错误)
通 过 跳转到成功页面
共同研究! QQ:12122291
真的给弄糊涂了,
大家似乎都已明白楼主在说什么,
就剩JK还不知道
<form action="file2.asp" method="post">
<input type="text" name="input1">
<input type="text" name="input2">
<input type="text" name="input3">
<input type="text" name="input4">
<input type="text" name="input5">
<input type="text" name="input6">
<input type="text" name="input7">
<input type="text" name="input8">
<input type="text" name="input9">
<input type="text" name="input10">
<input type="text" name="input11">
<input type="text" name="input12">
<input type="button" name="button1" value="submit">
</form>文件2 file2.asp
<%
if xxxxxxxx then
response.write "<script>window.alert('对不起,输入不完整,返回重输');history.back();</script>"
response.end
end if
%>
-------
-----------
问题:
当file1.asp文件中的input个数太多时,history.back();返回后原来输入的内容全部清空,
当input数只有几个时,histroy.back();返回后原来输入的内容都还在。????
为什么?
如何实现有很多input时,返回时仍然有原来的内容在,而不必再输一遍????
不知道楼主的页面有多少个input