Re: Getting HTML source code
...so noone knows how to get the source code for a webpage using the firefox control
Re: Getting HTML source code
Looks like you need to register the firefox control first :)
Re: Getting HTML source code
Why don't you use Inet (MS Internet Transfer Control) to get the source? :confused:
VB Code:
Dim source As String
source = Inet1.OpenURL("http://www.blablabla.com")
Re: Getting HTML source code
Cool site gavio :thumb: ;)
Re: Getting HTML source code
@gavio: last line of the post... i cannot use another control to access the page as the way i access this page is to go to one page, sign in, and then go to another page, and just loading the page direct with inet gives me the code for the sign-in page. theres probably a long-winded way of doing it using inet but it has to repeat this a lot so i want to take as short a time as possible
Re: Getting HTML source code
and the component is registered, as everything else works, it loads pages and acts as a browser fine. this is the line that causes the error:
VB Code:
strSourceCode = WebBrowser1.document.body.innerHTML
Re: Getting HTML source code
You said in post one you were using the Firefox control because of other reasons....what are the other reasons as I have used the Webbrowser control to get the source of a page without any problems?
Re: Getting HTML source code
yea getting source from the ie webbrowser control was no problem at all, however for some reason ie webbrowser kept getting errors on every page that i either had to click yes "continue running scripts" or set silent=true and then it didnt render the web page correctly
Re: Getting HTML source code
Quote:
Originally Posted by Arachnid13
however for some reason ie webbrowser kept getting errors on every page
Are you sure the java scripts errors were on every page? Do you have an example of a site that gives the error?