社区
ASP
帖子详情
simple problem and high scores
IamScout
2003-07-29 05:01:50
very simple,我都不好意思问,可是不会没办法。用submit按钮提交前检查输入数据类型onsubmit="checkinput()" ,若想在数据类型不正确的情况下返回页面怎么做。我经常是检查出数据类型不正确但照样提交。我用vbscript.
...全文
32
8
打赏
收藏
simple problem and high scores
very simple,我都不好意思问,可是不会没办法。用submit按钮提交前检查输入数据类型onsubmit="checkinput()" ,若想在数据类型不正确的情况下返回页面怎么做。我经常是检查出数据类型不正确但照样提交。我用vbscript.
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yuankun
2003-07-29
打赏
举报
回复
用变量控制也可以的
很久没用vbs了
开头的时候设置一个变量
然后做一系连判断 如果不符合就把这个变量赋值为false 否则就是true
然后再sub的最后一行
if 变量 = true then
form.submit
end if
就可以了
wsj
2003-07-29
打赏
举报
回复
对于return的问题,可以象这样解决:
<SCRIPT LANGUAGE="VBScript">
Function GetRefTest()
GetRefTest = False
End Function
Set Window.Onload = GetRef("GetRefTest")
</SCRIPT>
IamScout
2003-07-29
打赏
举报
回复
非常感谢,你用java脚本,但vb脚本里没有return
cqfeng
2003-07-29
打赏
举报
回复
给你个js的参考一下
<script language="javascript">
function checkLogin(form){
var yhm,mm;
yhm = form.yhm.value;
mm = form.mm.value;
if(yhm == ""){
alert("对不起,请填写登录用户名");
form.yhm.focus();
return false;
}
if(mm == ""){
alert("对不起,请填写登录密码");
form.mm.focus();
return false;
}
return true;
}
</script>
<form method="post" action="login.asp?temp=<%=now()%>" onsubmit="return checkLogin(this);">
用户名:
<input type="text" name="yhm" size="12" maxlength="16" class="border">
密 码:
<input type="password" name="mm" size="12" maxlength="16" class="border">
<p align="center">
<input type="submit" class="buttons02" name="Submit" value="登录">
<input type="reset" class="buttons02" name="Submit2" value="取消">
</form>
cqfeng
2003-07-29
打赏
举报
回复
给你个javascript的:
<script language="javascript">
function checkLogin(form){
var yhm,mm;
yhm = form.yhm.value;
mm = form.mm.value;
if(yhm == ""){
alert("对不起,请填写登录用户名");
form.yhm.focus();
return false;
}
if(mm == ""){
alert("对不起,请填写登录密码");
form.mm.focus();
return false;
}
return true;
}
</script>
<form method="post" action="login.asp?temp=<%=now()%>" onsubmit="return checkLogin(this);">
用户名:
<input type="text" name="yhm" size="12" maxlength="16" class="border">
密 码:
<input type="password" name="mm" size="12" maxlength="16" class="border">
<p align="center">
<input type="submit" class="buttons02" name="Submit" value="登录">
<input type="reset" class="buttons02" name="Submit2" value="取消">
</form>
IamScout
2003-07-29
打赏
举报
回复
vb脚本,没有return
danjingwu
2003-07-29
打赏
举报
回复
还是给你完整代码吧
function check(theForm)
{
copyValue();
if(theForm.title.value=="")
{
alert("对不起,标题不能为空!");
theForm.title.focus();
return false;
}
if(theForm.EditorValue.value=="")
{
alert("对不起,内容不能为空!");
return false;
}
return true;
}
danjingwu
2003-07-29
打赏
举报
回复
return false
源码Deep Learning with Theano
a
simple
, well-known and historical example which has been the starting proof of superiority of deep learning algorithms. The initial
problem
was to recognize handwritten digits. Chapter 3, Encoding ...
The Princeton Companion to Mathematics
IV.26
High
-Dimensional Geometry and Its Probabilistic Analogues 670 Part V Theorems and
Problem
s V.1 The ABC Conjecture 681 V.2 The Atiyah-Singer Index Theorem 681 V.3 The Banach-Tarski Paradox 684 V...
HDOJ 4974 A
simple
water
problem
A
simple
water
problem
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 173 Accepted Submission(s): 112
Problem
Description Drago
[2023CVPR]
Simple
Net A
Simple
Network for Image Anomaly Detection and Localizations
Simple
Net A
Simple
Network for Image Anomaly Detection and Localizations 文章链接:
Simple
Net GitHub: https://github.com/DonaldRR/
Simple
Net Tags: CVPR Year: 2023 摘要 We propose a
simple
and application...
Approaching (Almost) Any Machine Learning
Problem
原文:...Abhishek Thakur, a Kaggle Grandmaster, originally published this posthereon July 18th, 2016 and...
ASP
28,391
社区成员
357,059
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章