I am trying to consistently read a hidden Input field in a
Form located in a HTML that was opened with the
objExplorer.Navigate statement. Sometimes I can read the
field after the Submit button is clicked, sometimes I
can't and I get the error: "Object doesn't support this
property or method: 'myForm'"

Here is the VB script statement (external to the HTML
file):
Do While TRUE
strTemp = objDocument.myForm.bWaiting.value
If strTemp <> "TRUE" Then
Exit Do
End If
Loop

Help.......... Thanks in advance.

Russell-S


Russell-S

Re: Externally Reading a Form Input Field by Michael

Michael
Tue Oct 21 21:13:56 CDT 2003

Russell-S wrote:
> I am trying to consistently read a hidden Input field in a
> Form located in a HTML that was opened with the
> objExplorer.Navigate statement. Sometimes I can read the
> field after the Submit button is clicked, sometimes I
> can't and I get the error: "Object doesn't support this
> property or method: 'myForm'"
>
> Here is the VB script statement (external to the HTML
> file):
> Do While TRUE
> strTemp = objDocument.myForm.bWaiting.value


strTemp = objDocument.forms("myForm").bWaiting.value



> If strTemp <> "TRUE" Then
> Exit Do
> End If
> Loop
>
> Help.......... Thanks in advance.
>
> Russell-S
>
>
> Russell-S

--
Michael Harris
Microsoft.MVP.Scripting

Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en