Results 1 to 5 of 5
  1. #1
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused

    How to check if webpage is loaded or not.

    How to check if webpage is loaded or not.

    this doesnt fill in the form.

    Code:
    WebBrowser3.Navigate("https://www.*******.com/connect")
            If WebBrowser3.StatusText = ("Done") Then
                If WebBrowser3.Url.ToString = "https://www.*******.com/connect" Then
                    WebBrowser3.Document.GetElementById("addresses").SetAttribute("value", TextBox5.Text)
    Last edited by ppl2pass; 02-22-2010 at 10:41 PM. Reason: edit

  2. #2
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    uhh, wtf do we do with this? this is the basics of a fucking web browser


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  3. #3
    Erinador's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    224
    Reputation
    14
    Thanks
    111
    My Mood
    Bored
    [php]WebBrowser3.Document.GetElementById("addresses").S etAttribute("value", TextBox5.Text)[/php]

    Replace that with a msgbox just to test it actually gets to that part. If you don't see the msg box
    Check:
    [php] If WebBrowser3.Url.ToString = "https://www.*******.com/connect" Then
    [/php]
    to see if the url doesn't change

    Check:
    [php]If WebBrowser3.StatusText = ("Done") Then[/php]
    Try:
    [php]If WebBrowser3.ReadyState = True Then[/php]
    ^Dunno if it's correct all of this is done of the top of my head

  4. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed


    @mneep , he was asking for a resolution


    Document_Completed Event

    or

    Readystate=True
    Last edited by NextGen1; 02-23-2010 at 07:49 AM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  5. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Code:
     Do While webbrowser1.ReadyState <> WebBrowserReadyState.Complete
    
                Application.DoEvents()
    
            Loop



Similar Threads

  1. [Help]How to draw text from a file?
    By seeplusplus in forum Combat Arms Coding Help & Discussion
    Replies: 29
    Last Post: 10-05-2010, 04:47 PM
  2. [Help]VB Read text file[Solved]
    By mo3ad001 in forum Visual Basic Programming
    Replies: 3
    Last Post: 06-16-2010, 03:49 AM
  3. [TUT] Reading lines from a web document.
    By Jason in forum Visual Basic Programming
    Replies: 10
    Last Post: 06-08-2010, 01:42 AM
  4. [TUT]How to read and write to a text file
    By XORxHACK in forum Java
    Replies: 18
    Last Post: 02-26-2010, 04:41 PM
  5. How to read a text file from a website
    By ppl2pass in forum Visual Basic Programming
    Replies: 3
    Last Post: 02-13-2010, 09:19 PM