CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2012
    Posts
    10

    Inet and WebBrowser control problems

    Hello!

    My operating system is Windows XP/SP3 with IE8.

    This link: http://adfoc.us/679079050323 works perfectly in Chrome, Opera and Internet Explorer 10.

    Internet Explorer 8 does not load anything. I understand that it is a relative URL address and IE8 doesn't know how to interpret the address.

    In my program I tried with Inet and WebBrowser control to load that address but nothing.

    So, please, there is another method to load the address in my program?

    Regards.

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Inet and WebBrowser control problems

    What happens if you insert "www" into the address? You might also try Winsock, or the Firefox browser control.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Oct 2012
    Posts
    10

    Re: Inet and WebBrowser control problems

    Quote Originally Posted by WizBang View Post
    What happens if you insert "www" into the address? You might also try Winsock, or the Firefox browser control.
    Please, be more specific with an example. Where exactly to insert?

    I tried with API Download to Url and nothing. Also tried Mozilla ActiveX, is loading page but unable to extract HTML. Missing (InnerText) command like WebBrowser control.

    Another method check attachment, don't work.

    I think the only method remaining, Winsock. How to use Winsock in this case?
    Attached Files Attached Files
    Last edited by nirolf; July 2nd, 2013 at 11:25 AM.

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Inet and WebBrowser control problems

    The Mozilla control may offer a different method for you to extract the HTML, though I've not looked into it.

    After looking at the URL, the main page is a frame, and the URL of that frame is:
    http://opendownloadmanager.com/campaign2/campaign.php?ID=adfocus&sub=adfocus

    It seems that the URL you posted uses some java scripting to direct the browser. I checked using Winsock, and got only that part. So you'll need to use something which is Javascript enabled in order to use the URL you posted.
    Last edited by WizBang; July 3rd, 2013 at 08:46 AM.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  5. #5
    Join Date
    Oct 2012
    Posts
    10

    Re: Inet and WebBrowser control problems

    Mozilla ActiveX instructions not found.

    Please, a point to start?
    Last edited by nirolf; July 3rd, 2013 at 10:42 AM.

  6. #6
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Inet and WebBrowser control problems

    Perhaps if you can explain what it is you want to do with the page content, a solution would be easier to find. There may be other ways to accomplish what you want to do.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  7. #7
    Join Date
    Oct 2012
    Posts
    10

    Re: Inet and WebBrowser control problems

    From the address http://adfoc.us/679079050323 i have to download the HTML content into a string variable. Then from string variable get another URL address and this is it.
    Last edited by nirolf; July 3rd, 2013 at 12:29 PM.

  8. #8
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Inet and WebBrowser control problems

    Write their email address, and ask how to parse the information!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  9. #9
    Join Date
    Oct 2012
    Posts
    10

    Re: Inet and WebBrowser control problems

    I know how to parse the information from HTML.

    Don't think I will be successful but I will write to adfocus to put a normal address for IE8 browsers.

    Thanks everyone!

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

Featured