webbrowser postdat and after in vb6
Hello World.
building an application that posts cXML invoices and awaits success or fail cXML data.
To post invoice:
WebBrowser1.Navigate URL, Flags, TargetFrame, PostData, Headers
Where PostData is a cXML invoice document.
Navigate works great, a few seconds later the web browser refreshes with the following:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE cXML (View Source for full doctype...)>
- <cXML xml:lang="en-US" timestamp="2011-05-13T18:52:49+00:00" version="1.2.020">
- <Response>
<Status text="OK" code="200">Successful TEST</Status>
</Response>
</cXML>
My question is: How do I access this xml reply from the server, in particular, the <Status text=........... line?
Thanks,
John C
Re: webbrowser postdat and after in vb6
Try
Dim ReturnData As String
ReturnData = WebBrowser1.Document.body.innerHTML
Re: webbrowser postdat and after in vb6
Quote:
Originally Posted by
jmsrickland
Try
Dim ReturnData As String
ReturnData = WebBrowser1.Document.body.innerHTML
Thanks, that got me close.
text1.text = WebBrowser1.Document.documentElement.outertext got me what I was looking for.
Re: webbrowser postdat and after in vb6
Quote:
Originally Posted by
JohnCollett
Thanks, that got me close.
text1.text = WebBrowser1.Document.documentElement.outertext got me what I was looking for.
I was just guessing.
Re: webbrowser postdat and after in vb6
I appreciated the guess!
I've been frustrated finding any doc on the properties available to webbrowser.document.
Re: webbrowser postdat and after in vb6
Quote:
Originally Posted by
JohnCollett
I appreciated the guess!
I've been frustrated finding any doc on the properties available to webbrowser.document.
There is a very good thread of examples of using the WebBrowser in the Code Bank
http://www.vbforums.com/showthread.php?t=384076