Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]web中按钮点击后禁用该怎么处理

1楼
laipiwen 发表于:2024/1/8 18:30:00
参照示例
http://www.foxtable.com/mobilehelp/index.htm?page=0104.htm
添加按钮方法如下:
.Add("btn3", "按钮3", "submit").Fo rmAct ion = "accept.htm"

想要实现类似这样的功能 .Attribute="on click=""this.disabled=true;this.value='请稍后';my function()"""

.Fo rmAct ion 和 .Attribute 不能同时写,不报错,写了 Attribute  之后 Fo rmAct ion不可用。

请问老师,想要实现点击按钮之后就禁用该按钮,避免重复提交的效果 该怎么处理?


[此贴子已经被作者于2024/1/8 18:30:12编辑过]
2楼
有点蓝 发表于:2024/1/8 20:15:00
在my function函数里提交到accept.htm不就行了
3楼
laipiwen 发表于:2024/1/8 20:24:00
location= "accept.htm"   这样提交吗?
4楼
有点蓝 发表于:2024/1/8 20:28:00
http://www.foxtable.com/mobilehelp/topics/0101.htm
5楼
laipiwen 发表于:2024/1/8 20:39:00
           With wb.AddButtonGroup("form1","btngrp1",False)
               
.Add("btn1""按钮3""submit").FormAction = "accept1.htm"
               
.Add("btn2""按钮3""submit").FormAction = "accept2.htm"
               .Add("btn3""
按钮3", "submit").FormAction = "accept3.htm"
               
.Add("btn4""按钮3""submit").FormAction = "accept4.htm"
           End With
我是想多个按钮分别 提交到不同的.htm  ,而  示例中   是这样 wb.AddForm("","form1","handle.htm") '指定接收表单数据的的页面为handle.htm  ,请问这个该怎么处理呢
6楼
有点蓝 发表于:2024/1/8 20:46:00
              .Add("btn1""按钮3""button").Attribute="on click=""this.disabled=true;this.value='请稍后';myfunction('accept1')"""
               
.Add("btn2""按钮3""button").Attribute="on click=""this.disabled=true;this.value='请稍后';myfunction('accept2')"""

js
function myfunction(h){
form1.action = h + ".htm"
    var result = submitAjaxForm('form1','',false);
共6 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.