help with ms web activeX control

D

Daniel M

I have a form i need to load a web page in but i need the web page for
completely finish loading before i go to the next step. I have created this
sample code to test this and am unable to get it to work. Can anyone help
with this?

I created a dummy form for testing. It contains 1 command button and the
web control. here is the code.

Private Sub Command1_Click()
With Me.wbbWebsite
.Navigate URL:="www.microsoft.com"
Do While .Busy
DoEvents
Loop
End With

With Me.wbbWebsite
.Navigate URL:="www.google.com"
Do While .Busy
DoEvents
Loop
End With
MsgBox "done"
End Sub

Now what i would like to see is the first web page (microsoft) finish
loading before the second page loads (google). What happens is msgbox pops
up immediately. Then the second page loads. I never see the first page.

Thanks.
daniel.
 
I

Igor Tandetnik

Daniel M said:
I have a form i need to load a web page in but i need the web page for
completely finish loading before i go to the next step.

The right way to do this is to wait for DocumentComplete event after
each navigation.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
 
I

Igor Tandetnik

Daniel M said:
I am unformiliar with this event. can you help me with how to do this?

I assume you have searched MSDN library, found the description of this
event, read the documentation, and found it lacking. You further
searched the Internet, discovered approximately a million samples, but
none of them answered your questions.

After you've done all this, is there a specific issue you would like
some help with?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
 
D

Daniel M

Yes i have done all of this! My vb knowledge is pretty limited. What i need
is for someone to tell me how to get this to work. I need to load the first
page completely before the second page loads. right now i just see the
second page.

Private Sub Command1_Click()
wbbWebsite.Navigate URL:="www.microsoft.com"

wbbWebsite.Navigate URL:="www.google.com"

MsgBox "done"
End Sub
 
J

Jeanette Cunningham

Daniel,
I saw an answer to a very similar question on one of these access discussion
groups today or the day before.
They had posted some code which used an api call, I think it was called
something to do with sleep.
It made the code wait for a few seconds. Sorry I can't find it quickly now
that I am looking for it.


Jeanette Cunningham
 
I

Igor Tandetnik

Daniel M said:
Yes i have done all of this! My vb knowledge is pretty limited. What
i need is for someone to tell me how to get this to work.

Would you expect this someone to also collect your salary?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
 
D

Daniel M

I would expect this someone to not be a dick about answering a question! I
am not doing this for my job, it is a personal project to teach myself
access. If you cannot help or have nothing nice to say, go away!!!
 
D

Daniel M

Jeanette,

Thanks for the clues, i found the post. Although this is not the ideal
solution it does the job. Thanks!

dm.
 
G

Guest

Daniel M said:
I have a form i need to load a web page in but i need the web page for
completely finish loading before i go to the next step. I have created this
sample code to test this and am unable to get it to work. Can anyone help
with this?

I created a dummy form for testing. It contains 1 command button and the
web control. here is the code.

Private Sub Command1_Click()
With Me.wbbWebsite
.Navigate URL:="www.microsoft.com"
Do While .Busy
DoEvents
Loop
End With

With Me.wbbWebsite
.Navigate URL:="www.google.com"
Do While .Busy
DoEvents
Loop
End With
MsgBox "done"
End Sub

Now what i would like to see is the first web page (microsoft) finish
loading before the second page loads (google). What happens is msgbox pops
up immediately. Then the second page loads. I never see the first page.

Thanks.
daniel.
 
G

Guest

Daniel M said:
I have a form i need to load a web page in but i need the web page for
completely finish loading before i go to the next step. I have created
this sample code to test this and am unable to get it to work. Can anyone
help with this?

I created a dummy form for testing. It contains 1 command button and the
web control. here is the code.

Private Sub Command1_Click()
With Me.wbbWebsite
.Navigate URL:="www.microsoft.com"
Do While .Busy
DoEvents
Loop
End With

With Me.wbbWebsite
.Navigate URL:="www.google.com"
Do While .Busy
DoEvents
Loop
End With
MsgBox "done"
End Sub

Now what i would like to see is the first web page (microsoft) finish
loading before the second page loads (google). What happens is msgbox pops
up immediately. Then the second page loads. I never see the first page.

Thanks.
daniel.
 
M

Margaret

Please visit [email protected]/blog
I am starting up a business and need new customers. Any help that you could
give me, I would really appreciate it. Im not spaming anyone, so please let
me know if there are anyone you know who lives in the london area and would
be interested in the purchase of medical uniforms.

Im trying to get as many customers as i can. i need help tho. Please pass
this email on to whom ever you know who would be interested. I would really
appreciate it.

Here is a little about it:

We are a business that makes Medical Uniforms which are made for Nurse's,
Doctors, and any Medical team that there is out there like PSW's.

You can find more out about it at: [email protected]/blog

We have flexible plans to accommodate growth. All size's, styles and colors
that you can think of

We are located in London, Ontario

Thank you for your time.

Margaret
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top