如何解决传统的ASP对象所需的错误 [英] how to solve object required error in Classic ASP

查看:257
本文介绍了如何解决传统的ASP对象所需的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决对象所需checkMultiple错误。
任何想法如何当checkMultiple被选中禁用cmdButton7和使用VBScript总和= 100时启用它。

 子disableButton()
    如果checkMultiple.value = 1,则
        document.form1.cmdButton7.enabled =假
    elseif的总和= 100然后
        document.form1.cmdButton7.enabled =真
    万一
结束小组<输入类型=复选框NAME =checkMultipleID =多的onclick =disableButton>多< /输入>


解决方案

您甚至没有告诉我们,如果这是ASP.NET或经典ASP,或者是什么。

但我猜你需要使用ID而不是名称。尝试把它称为多而不是checkMultiple。

How to solve the object required "checkMultiple" error. any idea how to disable the cmdButton7 when checkMultiple is checked and enable it when sum = 100. using VBSCRIPT.

Sub disableButton()
    If checkMultiple.value = 1 Then
        document.form1.cmdButton7.enabled = False
    ElseIf sum = 100 Then
        document.form1.cmdButton7.enabled = true
    End If 
End Sub

<input type="checkbox" name="checkMultiple" id="Multiple" onclick="disableButton">Multiple</input>

解决方案

You didn't even bother to tell us if this is ASP.NET or Classic ASP, or what.

But I'd guess you need to use the ID instead of the name. Try calling it "Multiple" instead of "checkMultiple".

这篇关于如何解决传统的ASP对象所需的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆