473,394 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

url navigation in a while loop doesnt work

i am trying to load different pages and scanning some words out of the pages.
But my problem is that the readystate is never 4 except when i show a msgbox

example:

axWebbrowser.Navigate(sUrlPart1+ sUrl)

while axWebbrowser.Readystate <> SHDocVm.tagReEADYSTATE_COMPLETE
iReadystate = axWebbrowser.Readystate
end while
' this example will keep looping becuase Readystate stays 1

But when i do this:
axWebbrowser.Navigate(sUrlPart1+ sUrl)

while axWebbrowser.Readystate <> SHDocVm.tagReEADYSTATE_COMPLETE
MsgBox(axWebbrowser.Readystate)
iReadystate = axWebbrowser.Readystate
end while

The program works only problem are the msgbox popups.
I tried also to put a thread.sleep(10000) in the loop but did doesnt work either.
So whats going on here?
And how do i solve this?
Nov 21 '05 #1
3 3008
* dm******@home.nl (Danny) scripsit:
i am trying to load different pages and scanning some words out of the pages.
But my problem is that the readystate is never 4 except when i show a msgbox

example:

axWebbrowser.Navigate(sUrlPart1+ sUrl)


Use 'Navigate2' instead and add your other code to the webbrowser's
'DocumentComplete' event.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2


Sorry didnt work,
iReadystate is still 1 and doesnt change.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3
Danny,

Maybe this helps you,
\\\ eDocuments is an arraylist
Private Sub AxWebBrowser1_DocumentComplete(ByVal sender _
As System.Object, _ ByVal e As
AxSHDocVw.DWebBrowserEvents2 _ DocumentCompleteEvent) _
Handles AxWebBrowser1.DocumentComplete
Dim wb As SHDocVw.WebBrowser = _
DirectCast(e.pDisp, SHDocVw.WebBrowser)
eDocuments.Add(wb.Document)
End Sub

Cor
i am trying to load different pages and scanning some words out of the pages. But my problem is that the readystate is never 4 except when i show a msgbox
example:

axWebbrowser.Navigate(sUrlPart1+ sUrl)

while axWebbrowser.Readystate <> SHDocVm.tagReEADYSTATE_COMPLETE
iReadystate = axWebbrowser.Readystate
end while
' this example will keep looping becuase Readystate stays 1

But when i do this:
axWebbrowser.Navigate(sUrlPart1+ sUrl)

while axWebbrowser.Readystate <> SHDocVm.tagReEADYSTATE_COMPLETE
MsgBox(axWebbrowser.Readystate)
iReadystate = axWebbrowser.Readystate
end while

The program works only problem are the msgbox popups.
I tried also to put a thread.sleep(10000) in the loop but did doesnt work either. So whats going on here?
And how do i solve this?

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even...
0
by: Henke | last post by:
Hello, i redesign a Website to get rid of some tables. My Problem is: the navigation has a blue background and should be the same length as the content. i tried putting them in one parent...
10
by: RodBillett | last post by:
Using SmartNavigation. Windows2003 Server Framework 1.0 (3705) IIS6 and I have IIS configured to utilize the 1.0 framework. Any Ideas why I would be getting the following jscript error within...
2
by: Child | last post by:
I have a page which has a tabbstrip and a multipage. The tab strip works great, and navigates the multipage no problem. However, I have a situation where I would like to have a "hidden"...
2
by: davidwank | last post by:
Hi. Why is it practical to have the ASP.NET navigation controls based on XML? I would love to just use databinding and then be able to dynamically update the navgiation menu (e.g. for a ...
3
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
4
by: Jamey Shuemaker | last post by:
Howdy, Saw a couple threads from the past few years on this topic, but didn't really find any solutions. Here's one I found:...
5
by: fran7 | last post by:
Hi, I have set up a next navigation with this code <% Set NextLink = Server.CreateObject ("MSWC.NextLink") %> <A HREF="<%= NextLink.GetNextURL ("/links.txt") %>">Next Page </A> and a .txt...
16
by: crumbs12 | last post by:
hello friends, I am having a problem. This code works just fine when I print as soon as I assign the string to the pointer. Code: ptr->main = malloc(sizeof(detail)*(660)+1); ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.