For Programmers: Free Programming Magazines  


Home > Archive > VBScript > November 2004 > Simple question, but i can't resolve....









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Simple question, but i can't resolve....
Gabriel

2004-11-22, 3:55 pm

Hi !

I'm opening a web page using this way:


Set fso = CreateObject("Scripting.FileSystemObject")
oIE.Navigate2 "http://miintranet/page.asp"
oIE.Visible = True
WaitIe

Allllright!.... i'm accesing the values of the objects using:

oIE.Document.Geral.campo05.value="23112250818" 'This is a input box
oIE.Document.Geral.campo05a.value="1" 'THis is a
Radio button

//
This is the main HTML of the web:

<form METHOD="POST" ACTION="verifica1.asp" name="Geral" >
<INPUT TYPE="radio" NAME="campo05a" value="1" checked>
<INPUT TYPE="radio" NAME="campo05a" value="0">
<INPUT class=1 TYPE=TEXT SIZE=20 MAXLENGTH=20 NAME="campo05" value="">
<form>
//


But, i have a problem when i trying to access to de radio button value, i've
got this error:

"Object does not support this property or method (value)"

The rest of the fields (input text, check buttons works fine).....

Can you tell me where's my error?..

Thanxs a lot....... Gabriel.......




mayayana

2004-11-23, 3:56 pm

It seems like that should work. Maybe IE is seeing
"1" as numeric? I would try using a different value,
like maybe "one", "zero", etc. and see if that makes
a difference.

_____________________________

mayayXXana1a@mindYYspring.com
For return email remove XX and YY.
_____________________________
Gabriel <gsouth@hotmail.com> wrote in message
news:OpDI4zL0EHA.1524@TK2MSFTNGP09.phx.gbl...
> Hi !
>
> I'm opening a web page using this way:
>
>
> Set fso = CreateObject("Scripting.FileSystemObject")
> oIE.Navigate2 "http://miintranet/page.asp"
> oIE.Visible = True
> WaitIe
>
> Allllright!.... i'm accesing the values of the objects using:
>
> oIE.Document.Geral.campo05.value="23112250818" 'This is a input box
> oIE.Document.Geral.campo05a.value="1" 'THis is

a
> Radio button
>
> //
> This is the main HTML of the web:
>
> <form METHOD="POST" ACTION="verifica1.asp" name="Geral" >
> <INPUT TYPE="radio" NAME="campo05a" value="1" checked>
> <INPUT TYPE="radio" NAME="campo05a" value="0">
> <INPUT class=1 TYPE=TEXT SIZE=20 MAXLENGTH=20 NAME="campo05" value="">
> <form>
> //
>
>
> But, i have a problem when i trying to access to de radio button value,

i've
> got this error:
>
> "Object does not support this property or method (value)"
>
> The rest of the fields (input text, check buttons works fine).....
>
> Can you tell me where's my error?..
>
> Thanxs a lot....... Gabriel.......
>
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com