|
-
Jun 19th, 2001, 08:54 PM
#1
Thread Starter
Frenzied Member
Help! Doing an action if a webbrowser navigate fails..
If an error occurs in a webbrowser, like "Page cannot be displayed", "File Not Found", etc, how can i refresh the webbrowser?
Also, lets say i have the code:
-----------------------------------------------
Webbrowser1.Navigate website
do
doevents
loop until webbrowser1.busy = false
webbrowser1.document.links(12).click
do
doevents
loop until webbrowser1.busy = false
webbrowser1.Navigate website2
-----------------------------------------------
If any part of that code takes too long to load (20 seconds), how can i make it so it will redo that particular code? for example, if the link takes more than 20 seconds to load, it will reclick it.
This is a major problem with filling forms, because if youre in a loop to submit 5 or so forms, and it takes too long to submit to a site, the rest of the code gets very screwed up. Usually, the webbrowser just doesnt submit (locks) to a form if its moving too fast, and this can easily be fixed if the submit button is reclicked.
So, if anyone knows the solution to this dillemma, please reply
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|