Re: Posting to a Web Form and Displaying the Result in Normal Browser
- From: Tom van Stiphout <no.spam.tom7744@xxxxxxx>
- Date: Thu, 05 Apr 2007 18:24:04 -0700
On Thu, 05 Apr 2007 18:11:23 -0500, "David W. Fenton"
<XXXusenet@xxxxxxxxxxxxxxxxxxx> wrote:
In cases where I had to poke values into a webpage, I would use the
WebBrowser control, and use the DOM (document object model).
Example:
If WebBrowser1.LocationURL = URL_PHOENIX_LIBRARY_REFERENCE_USA And
WebBrowser1.Document.getElementsByName("cardnum").length > 0 Then
WebBrowser1.Document.All("cardnum").innerText =
LIBRARY_CARD_NUMBER
WebBrowser1.Document.All("cardname").innerText =
LIBRARY_CARD_NAME
WebBrowser1.Document.Forms(0)("Submit").Click
Else
MsgBox "This button only works when you are on the Login
page.", vbInformation
End If
<clip>
.
- Follow-Ups:
- Re: Posting to a Web Form and Displaying the Result in Normal Browser
- From: David W. Fenton
- Re: Posting to a Web Form and Displaying the Result in Normal Browser
- References:
- Posting to a Web Form and Displaying the Result in Normal Browser
- From: David W. Fenton
- Posting to a Web Form and Displaying the Result in Normal Browser
- Prev by Date: Re: recurring corruption
- Next by Date: Re: '!' vs. '.'
- Previous by thread: Posting to a Web Form and Displaying the Result in Normal Browser
- Next by thread: Re: Posting to a Web Form and Displaying the Result in Normal Browser
- Index(es):
Relevant Pages
|