Re: Parse HTML DOM document in console application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Williams (johnwilliams_esquire_at_NOhotmailSPAM.com)
Date: 10/05/04


Date: Tue, 5 Oct 2004 16:49:08 +0100


"Charles Law" <blank@nowhere.com> wrote in message
news:uFhi$$sqEHA.3744@TK2MSFTNGP10.phx.gbl...
> Hi John
>
> I have made a simple console app that demonstrates the loading of HTML
from
> a url, based on the thread you found below. It works on my m/c, but gives
an
> unrelated error about being unable to set focus. Just ignore the error and
> it will continue normally.
>
> Let me know if you have problems getting the zip file and I will mail it
> instead.
>
> HTH

Charles, thanks for your reply and the sample code. Your code works fine
when run in the VS IDE, however when run from a command window it sits in
the loop:
Do Until objDocument.readyState = "complete"

Application.DoEvents()

Loop

because readyState is "loading", then "uninitialized", never "complete". If
I comment out Application.DoEvents(), readyState stays "loading". I don't
understand this!

Thanks.



Relevant Pages

  • Re: Runaway loop with the current git.
    ... than loading a 5:1 driver which will never exist as a module. ... The loop is detected and terminated. ... The boxes of the reporters hang! ... There is no cheap way out of the problem, it's a kernel bug, and we ...
    (Linux-Kernel)
  • Re: Html download challenge
    ... >> Here is some sample code. ... You will see me loading from 2 urls. ... > Tomcat and got the following: ... > Evidently the Java classes you're using are setting these defaults ...
    (comp.lang.java.programmer)
  • Re: Error accessing frames in Internet Explorer
    ... Loading then from local is faster. ... I use a script similar to the following: ... > ' Find the link within the frame which we want to follow ...
    (microsoft.public.scripting.wsh)
  • Re: Runaway loop with the current git.
    ... than loading a 5:1 driver which will never exist as a module. ... The loop is detected and terminated. ... diagnostics and in many case the setup just dying silently. ... It's obviously more useful than not to boot up. ...
    (Linux-Kernel)
  • RE: Redirect
    ... Can you provide some sample code that would ... demonstrate loading forms once and reusing them. ... make them singletons and only load them once. ...
    (microsoft.public.pocketpc.developer)