Results 1 to 6 of 6

Thread: webbrowser control again.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    Hiyas, I was just wondering something, about getting the source from the page the webbrowser control is at.

    I know how to get the source from the webbrowser control normally,

    exampe:

    Code:
    PageSource = WebBrowser1.Document.documentElement.innerHTML
    but I was just wondering how do get the source out of say a particular frame?

    thanx for your help.

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Try using the inet control and direct it to that frame to get the source:
    TExt1.TExt = iNet1.OpenURL("http://www.something.com/leftframe.php", icString)

    That's what i would suggest, or you could make the url a string and assing it to text2.Text so when a url is type into text2 the source shows up in text1.

    Hope that helped,
    D!m
    Dim

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    hiya dim thanx for replying, no I can't use the inet control for what I am doing, I made a program to check multiple html email accounts for new email. it used the inet control but for those who were connect slower than 44,000 bps, it would time out and not work, so I am making another version which uses the webbrowser control to do go to the page then get the source. So I can't use the inet control to download the data, I would use it if I had the choice but for this version I don't.

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I'm sorry but i can't seem to come up with a way to do it using the MS Internet Control. If you struggle with this, then i would suggest writing somekind of anti-time out code of some sort.

    Gl and sorry i wasn't much help,
    D!m
    Dim

  5. #5

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    Hi Mathew thanx for replying , I know how to get the frames url, but I need to get its source through the browser control, I can not just go to the frame src and get the source with the browser control because as soon as you open the page in just one page is automatically redirected to the frames page as soon as I try, and I can't use the inet control like stated above. but than for trying to help

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