Re: Posting to a Web Form and Displaying the Result in Normal Browser



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>
.



Relevant Pages

  • Re: Document Object Model and "Show Pictures"
    ... The DOM gives me a web browser application object, ... Document object is a property. ... access to the webpage. ... which has a Navigator property. ...
    (microsoft.public.scripting.vbscript)
  • Re: Look Up Missing Data on Web
    ... understanding of the WebBrowser control and especially the DOM = ... Document Object Model that web pages use. ... You can use the DOM to ...
    (microsoft.public.access.modulesdaovba)
  • Re: FAQ Topic - I get an error when trying to access an element by getElementById but I know it
    ... "An element cannot be accessed before it exists in the DOM" ... | 2.4 What is the DOM (Document Object Model)? ... or | 2.4 What is the Document Object Model? ... I don't see case-sensitivity issues, ...
    (comp.lang.javascript)
  • WebBrowser (loop automation)
    ... tasks on the webpage. ... Uri myUri = new Uri; ... Then for the webbrowser control I have the following method: ... I wrote the following code to perfom a loop (hoping to call sereval times ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Communicating Between VB6 and a HTML Document
    ... WebBrowser control from within a Visual Basic project. ... I then created a webpage called Page1.html, ... Launching the page via running the VB project will cause the webpage textbox ...
    (microsoft.public.scripting.vbscript)