IonicWind Software

IWBasic => General Questions => Topic started by: Junner2003 on August 08, 2007, 07:03:42 AM

Title: ATTACHEDBROWSER - am I stupid?
Post by: Junner2003 on August 08, 2007, 07:03:42 AM
Hmmm,
not sure if I just missunderstand it but I thought if the url is not reachable because of no internet connection or so it should give out the message defined?:

If Attachbrowser(wb,"http://www.ionicwind.com/forums/index.php") = -1
    Messagebox wb, "Couldn't create browser control","Error"
    End
Endif


However, it does not - why? The window just keeps loading!
Title: Re: ATTACHEDBROWSER - am I stupid?
Post by: Ionic Wind Support Team on August 08, 2007, 08:40:15 AM
No.  Attachbrowser only fails if the WebBrowser control itself can't be cretaed, such as if the user has completely removed IE from their system, out of memory conditions, etc.

If you wish to check for a web page not loading you will need to process messages from the control.  @IDNAVCOMPLETE should be of use for this purpose.
Title: Re: ATTACHEDBROWSER - am I stupid?
Post by: Junner2003 on August 08, 2007, 08:58:38 AM
Quote from: Paul Turley on August 08, 2007, 08:40:15 AM
No.  Attachbrowser only fails if the WebBrowser control itself can't be cretaed, such as if the user has completely removed IE from their system, out of memory conditions, etc.

If you wish to check for a web page not loading you will need to process messages from the control.  @IDNAVCOMPLETE should be of use for this purpose.

Thanks! So, I am stupid! ;) - Just misunderstood it!
After your explanation it looks clear to me!