Object doesn't support this property or method 
Author Message
 Object doesn't support this property or method

Jon
    below is code that works for me to do this function:

Note that I had to insert a space in the "input" and "label" tags to keep OE
from actually rendering them in the message.

<i nput type="radio" id="rdoNarrs" value="Narrs" name="rdoRelated">

<l abel For="rdoNarrs">Narratives</label>

<i nput type="radio" id="rdoCPRs" value="CPRs" name="rdoRelated">

<l abel For="rdoCPRs">CPRs</label>

<i nput type="radio" id="rdoPPDs" value="PPDs" name="rdoRelated">

<l abel For="rdoPPDs">PPDs</label>

sub rdoNarrs_onclick()

' Do selection code for 1st radio button

end sub

sub rdoCPRs_onclick()

' Do selection code for 2nd radio button

end sub

sub rdoPPDs_onclick()

' Do selection code for 3rd radio button

end sub

Function rdoRelated_Value() ' Find which one is clicked

rdoRelated_Value = -1

If rdoNarrs.checked Then

rdoRelated_Value = "Narrs"

ElseIf rdoCPRs.checked Then

rdoRelated_Value = "CPRs"

ElseIf rdoPPDs.checked Then

rdoRelated_Value = "PPDs"

End If

End Function

Function rdoRelated_Set(value) ' Programmatically set which one is related

If Value = "Narrs" Then

rdoNarrs.checked = True

ElseIf Value = "CPRs" Then

rdoCPRs.checked = True

Else

rdoPPDs.checked = True

End If

End Function

HTH

Ron Lounsbury


Quote:
> I'm creating an HTA form that has an array of three option buttons. I want
> to retrieve the value of the selected option button but cannot. I've tried
> using name.value, name.checked(or selected), name.checked(or
> selected).value, name.tabindex.value,  name.tabindex().checked, etc. and
> nothing seems to work.

> Which one am I missing to make this work?  I can reference a drop down
list
> no problem through its name.value property, but I'd rather use the option
> buttons.

> TIA

> Jon



Tue, 03 May 2005 22:52:43 GMT  
 Object doesn't support this property or method
I'm creating an HTA form that has an array of three option buttons. I want
to retrieve the value of the selected option button but cannot. I've tried
using name.value, name.checked(or selected), name.checked(or
selected).value, name.tabindex.value,  name.tabindex().checked, etc. and
nothing seems to work.

Which one am I missing to make this work?  I can reference a drop down list
no problem through its name.value property, but I'd rather use the option
buttons.

TIA

Jon



Tue, 03 May 2005 22:37:29 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Object doesn't support this property or method : 'DTSGlobalVariables(...).Value.Open

2. Object doesn't support this property or method

3. Object doesn't support this property or method

4. Object doesn't support this property or method

5. Object doesn't support this property or method

6. Sample code: Object doesn't support this property or method

7. Object doesn't support this property or method

8. ASP Error on Session.Contents : Object doesn't support this property or method

9. Object doesn't support this property or method

10. Help!- 438- Object doesn't support this property or method

11. Object doesn't support this property or method

12. Object doesn't support this property or method

 

 
Powered by phpBB® Forum Software