Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
代码文件
下载信息 [文件大小: 下载次数: ] 点击浏览该文件:代码1.txt
function del(){
location="list.htm?page=" + table1.pagenumber + "&deloid=" +
table1.primarykey;
}
function edit(){
location="edit.htm?page=" + table1.pagenumber + "&oid=" + table1.primarykey;
}
代码是教案里面源代码
删除和编辑之前加一个验证条件。数量超过1000不能删除和编辑。求教。
httpRequest事件代码:
Select Case e.Path
Case "list.htm"
Functions.Execute("List",e) '分页显示
Case "edit.htm"
If e.PostValues.Count > 0 Then
Functions.Execute("Save",e) '保存表单数据
End If
Functions.Execute("Edit",e) '生成订单编辑页面
Case "checked.htm"
Functions.Execute("checked",e)
End Select
js
function del(){
var result = sendAjaxText(table1.primarykey,"checked.htm","",false);
if (result == "0") {
location="list.htm?page=" + table1.pagenumber + "&deloid=" + table1.primarykey;
}
else{
alert("数量超过1000不能删除");
}
}