Results 1 to 18 of 18

Thread: Webpage Source not reloading

Threaded View

  1. #8

    Thread Starter
    Addicted Member messup000's Avatar
    Join Date
    Jun 2005
    Posts
    181

    Re: Webpage Source not reloading

    ok so i tried the code and it says that IHTMLElementCollection isnt defined so i changed it to HTMLElementColection

    after which it said that AutoLogin.WebBrowser20.Document.Body.All("Input")was an html element and couldnt be converted into an element collection.

    but i think that if i had a refenrence to IHTMLElementCollection it would recoginize the line of code AutoLogin.WebBrowser20.Document.Body.All("Input")

    and it might work? but i havent been coding for a very long time and was wondering if you knew the reference that would define IHTMLElementCollection.

    thx oh and also heres how i tried to fix it:

    VB Code:
    1. Do While i < j
    2.                 [U][B]objInputCol = AutoLogin.WebBrowser20.Document.Body.All("INPUT").All[/B][/U]
    3. 'The error is "null reference exception unhandled  object refernece not set to an instance of an object"
    4.  
    5.  
    6.                 ' Set Keywords
    7.                 objInputCol("keywords").InnerText = WordGet() & vbCrLf
    8.                 'If AutoLogin.WebBrowser20.Document.All(i).TagName = "INPUT" Then
    9.                 '    'k = AutoLogin.cmbSubscribe.SelectedIndex + 1
    10.                 '    Debug.Print(AutoLogin.WebBrowser20.Document.All(i).Name)
    11.                 '    If AutoLogin.WebBrowser20.Document.All(i).Name = "keywords" Then
    12.  
    13.                 '        AutoLogin.WebBrowser20.Document.All(i).Focus()
    14.                 '        My.Computer.Keyboard.SendKeys(WordGet() & vbCrLf, True)
    15.  
    16.                 '        AutoLogin.WebBrowser20.GoBack
    17.                 '    End If
    18.                 'End If
    19.                 i = i + 1
    20.             Loop

    I hope i dont sound too stupid im not a complete noob im just not very familiar with vb coding with html tags.
    Last edited by messup000; Jun 11th, 2005 at 01:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width