getting a complete load of wed page in web browser control
Author |
Message |
Dan Hayma #1 / 6
|
 getting a complete load of wed page in web browser control
Hi folks, If I am not mistaken, the question (or at least my question) is really centered around the issue of not getting a complete load of the page into the web control before it returns data to the code which called it. I issue the "control.navigate URL" syntax, the control returns what is on the page immediately w/o waiting for the entire page to load (there may be some CGI on the page, etc.) thereby enabling a complete set of items through which to loop. One would think that the Document event would fire when the entire doc is loaded, but in my case, this event NEVER gets fired off and only part of the web page is loaded by the control--certainly NOT what is displayed on a web screen w/ the same URL entered into IE. I have even tried a "DO while NOT control.ReadyStateComplete, DoEvents, Loop" to no avail... Any help on this would be appreciated. Dan
|
Sat, 21 Sep 2002 03:00:00 GMT |
|
 |
Thomas Gans #2 / 6
|
 getting a complete load of wed page in web browser control
Perhaps I'm nitpicking: "navigate" is on the interface of IE3. Did you ask for the correct interfaces ? Navigate2 is for IE4 (Unless you are working from the container, if I remember correctly...) Another tip: Automate IE at first: If it works from there, check WebBrowser. I guess the pages in question can be loaded in a "normal" session ? HTH Thomas
Quote: > Hi folks, > If I am not mistaken, the question (or at least my question) is really > centered around the issue of not getting a complete load of the page into > the web control before it returns data to the code which called it. > I issue the "control.navigate URL" syntax, the > control returns what is on the page immediately w/o waiting for the entire > page to load (there may be some CGI on the page, etc.) thereby enabling a > complete set of items through which to loop. > One would think that the Document event would fire when the entire doc is > loaded, but in my case, this event NEVER gets fired off and only part of the > web page is loaded by the control--certainly NOT what is displayed on a web > screen w/ the same URL entered into IE. > I have even tried a "DO while NOT control.ReadyStateComplete, DoEvents, > Loop" to no avail... > Any help on this would be appreciated. > Dan
|
Sat, 21 Sep 2002 03:00:00 GMT |
|
 |
Ross M. Greenber #3 / 6
|
 getting a complete load of wed page in web browser control
(I'm finding a number of control events don't fire if instigated within a FORM_LOAD. If you're at the "but that should work!" point, try putting the code within a SUB Main() or a FORM_Activate and see if that works?) )
Quote: > Perhaps I'm nitpicking: > "navigate" is on the interface of IE3. > Did you ask for the correct interfaces ? > Navigate2 is for IE4 > (Unless you are working from the container, > if I remember correctly...) > Another tip: > Automate IE at first: > If it works from there, check WebBrowser. > I guess the pages in question can be loaded > in a "normal" session ? > HTH > Thomas
> > Hi folks, > > If I am not mistaken, the question (or at least my question) is really > > centered around the issue of not getting a complete load of the page into > > the web control before it returns data to the code which called it. > > I issue the "control.navigate URL" syntax, the > > control returns what is on the page immediately w/o waiting for the entire > > page to load (there may be some CGI on the page, etc.) thereby enabling a > > complete set of items through which to loop. > > One would think that the Document event would fire when the entire doc is > > loaded, but in my case, this event NEVER gets fired off and only part of > the > > web page is loaded by the control--certainly NOT what is displayed on a > web > > screen w/ the same URL entered into IE. > > I have even tried a "DO while NOT control.ReadyStateComplete, DoEvents, > > Loop" to no avail... > > Any help on this would be appreciated. > > Dan
|
Sun, 22 Sep 2002 03:00:00 GMT |
|
 |
Dan Hayma #4 / 6
|
 getting a complete load of wed page in web browser control
Hi and thanks for your reply. Actually, I have tried both Navigate and Navigate2 and I get the same result each time. Yes, if you were to plug in the URL I am working with into IE, you would get or "see" the result I am looking for. However, that same result does not show up when using the web browser control. VERY odd. Now, on other pages, say a VERY simple page such as my company's home page (www.accomplishments.com), indeed, I get the same result in the browser control as I do in IE. I believe its because the page I am trying to work with is a "search page" which executes some CGI to come up with the result which the user sees when the same URL is entered into IE. HOWEVER, if the control (or my code) was working right, this should not matter. I should be able to load the entire content into my control...this is a VERY simple search page w/ no frames, etc. The data, when it is returned comes across in HTML tags (in other words, "nothing up my sleeve...") Thanks & any other ideas would be helpful. Just in case anybody wants to test the URL I am working with it is: "www.qrz.com/callsign.html?callsign=KA6NMB" Or to further test, try other search keys (after the "=" sign in the URL) such as "N6JID" or "KD6COY" Cheers. Dan 303-692-1122 x1
Quote: > Perhaps I'm nitpicking: > "navigate" is on the interface of IE3. > Did you ask for the correct interfaces ? > Navigate2 is for IE4 > (Unless you are working from the container, > if I remember correctly...) > Another tip: > Automate IE at first: > If it works from there, check WebBrowser. > I guess the pages in question can be loaded > in a "normal" session ? > HTH > Thomas
> > Hi folks, > > If I am not mistaken, the question (or at least my question) is really > > centered around the issue of not getting a complete load of the page into > > the web control before it returns data to the code which called it. > > I issue the "control.navigate URL" syntax, the > > control returns what is on the page immediately w/o waiting for the entire > > page to load (there may be some CGI on the page, etc.) thereby enabling a > > complete set of items through which to loop. > > One would think that the Document event would fire when the entire doc is > > loaded, but in my case, this event NEVER gets fired off and only part of > the > > web page is loaded by the control--certainly NOT what is displayed on a > web > > screen w/ the same URL entered into IE. > > I have even tried a "DO while NOT control.ReadyStateComplete, DoEvents, > > Loop" to no avail... > > Any help on this would be appreciated. > > Dan
|
Sun, 22 Sep 2002 03:00:00 GMT |
|
 |
Greg Silva #5 / 6
|
 getting a complete load of wed page in web browser control
On Tue, 04 Apr 2000 15:30:49 GMT, "Dan Hayman" Quote:
>Hi folks, >If I am not mistaken, the question (or at least my question) is really >centered around the issue of not getting a complete load of the page into >the web control before it returns data to the code which called it. >I issue the "control.navigate URL" syntax, the >control returns what is on the page immediately w/o waiting for the entire >page to load (there may be some CGI on the page, etc.) thereby enabling a >complete set of items through which to loop. >One would think that the Document event would fire when the entire doc is >loaded, but in my case, this event NEVER gets fired off and only part of the >web page is loaded by the control--certainly NOT what is displayed on a web >screen w/ the same URL entered into IE. >I have even tried a "DO while NOT control.ReadyStateComplete, DoEvents, >Loop" to no avail... >Any help on this would be appreciated. >Dan
Monitor the WebBrowser's "ProgressChange" event. The document is complete when Progress = "-1" Regards, Gregory Silvano http://www.codehound.com Free Internet Search Engine for VB Developers
|
Sun, 22 Sep 2002 03:00:00 GMT |
|
 |
Thomas Gans #6 / 6
|
 getting a complete load of wed page in web browser control
Dan, I've no problem with by WebBrowser ... Navigating and getting a documentComplete... Sometimes (espeially on fast lines) IE5 hangs, if I try to connect via my WebBrowser. Perhaps that is it ? (remedy: get online via ras and surf away...) HTH Thomas
Quote: > Hi and thanks for your reply. > Actually, I have tried both Navigate and Navigate2 and I get the same result > each time. > Yes, if you were to plug in the URL I am working with into IE, you would get > or "see" the result I am looking for. However, that same result does not > show up when using the web browser control. VERY odd. Now, on other pages, > say a VERY simple page such as my company's home page > (www.accomplishments.com), indeed, I get the same result in the browser > control as I do in IE. I believe its because the page I am trying to work > with is a "search page" which executes some CGI to come up with the result > which the user sees when the same URL is entered into IE. HOWEVER, if the > control (or my code) was working right, this should not matter. I should be > able to load the entire content into my control...this is a VERY simple > search page w/ no frames, etc. The data, when it is returned comes across in > HTML tags (in other words, "nothing up my sleeve...") > Thanks & any other ideas would be helpful. Just in case anybody wants to > test the URL I am working with it is: > "www.qrz.com/callsign.html?callsign=KA6NMB" Or to further test, try other > search keys (after the "=" sign in the URL) such as "N6JID" or "KD6COY" > Cheers. > Dan > 303-692-1122 x1
> > Perhaps I'm nitpicking: > > "navigate" is on the interface of IE3. > > Did you ask for the correct interfaces ? > > Navigate2 is for IE4 > > (Unless you are working from the container, > > if I remember correctly...) > > Another tip: > > Automate IE at first: > > If it works from there, check WebBrowser. > > I guess the pages in question can be loaded > > in a "normal" session ? > > HTH > > Thomas
> > > Hi folks, > > > If I am not mistaken, the question (or at least my question) is really > > > centered around the issue of not getting a complete load of the page > into > > > the web control before it returns data to the code which called it. > > > I issue the "control.navigate URL" syntax, the > > > control returns what is on the page immediately w/o waiting for the > entire > > > page to load (there may be some CGI on the page, etc.) thereby enabling > a > > > complete set of items through which to loop. > > > One would think that the Document event would fire when the entire doc > is > > > loaded, but in my case, this event NEVER gets fired off and only part of > > the > > > web page is loaded by the control--certainly NOT what is displayed on a > > web > > > screen w/ the same URL entered into IE. > > > I have even tried a "DO while NOT control.ReadyStateComplete, DoEvents, > > > Loop" to no avail... > > > Any help on this would be appreciated. > > > Dan
|
Sun, 22 Sep 2002 03:00:00 GMT |
|
|
|