Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8568041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:01:05+00:00 2026-06-11T18:01:05+00:00

I have a situation where a rather clever website updates the latest information on

  • 0

I have a situation where a rather clever website updates the latest information on the site via Shockwave Flash through a TCP connection. The data received is then updated onto the page via JavaScript so in order to get the latest data a browser is required. If attempts are made to hit the website with continual requests then a) you get banned and b) you’re not actually getting the latest data, only the last updated base framework.

So I need to run a browser with scripts enabled.

My first question is, using the standard WPF WebBrowser in .NET I get the following warnings which I don’t get in standard IE, Chrome or Firefox. What is causing this and how do I supress/allow it but still allowing scripts for the site to be run?

enter image description here

My second question relates to is there a better way do to this or are there any better alternatives to the WebBrowser control that will

  • Allow scripts to run

  • can access the DOM or html and scripts returned in at least text format

  • is compatible with WPF

  • can hide the browser as I don’t actually want it displayed.

So far I’ve looked into WebKit.NET which doesn’t seem to allow access to the DOM and didn’t like WPF windows when I tested and also Awesomium but again didn’t appear to allow direct access to the DOM without javascript.

Are there any other options (apart from hacking their scripts)?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:01:06+00:00Added an answer on June 11, 2026 at 6:01 pm

    Ultimately I ended up keeping the WPF control and used this code to inject a JavaScript script to disable JavaScript errors. The Microsoft HTML Object Library needs to be added.

        private const string DisableScriptError =    @"function noError() { return true;} window.onerror = noError;";
    
        private void webBrowser1_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            InjectDisableScript();
        }
    
        private void InjectDisableScript()
        {
    
            HTMLDocumentClass doc = webBrowser1.Document as HTMLDocumentClass;
            HTMLDocument doc2 = webBrowser1.Document as HTMLDocument;
    
            IHTMLScriptElement scriptErrorSuppressed = (IHTMLScriptElement)doc2.createElement("SCRIPT");
            scriptErrorSuppressed.type = "text/javascript";
            scriptErrorSuppressed.text = DisableScriptError;
            IHTMLElementCollection nodes = doc.getElementsByTagName("head");
    
            foreach (IHTMLElement elem in nodes)
            {
                HTMLHeadElementClass head = (HTMLHeadElementClass)elem;
                head.appendChild((IHTMLDOMNode)scriptErrorSuppressed);
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m in the situation that I have to design and implement a rather big
I have this situation which is rather frustrating... I have some user controls where
I have a rather standard situation where I want to use a templated class
I have a rather bizarre situation, and it's not the first time I this
I'm having a rather silly problem. I'll simplify the situation: I have a table
I have a situation where elements are changed on the fly through a specific
I have a rather odd situation. I'm trying to automate the backup of a
I am faced with rather unusual situation I will have url in any of
The situation... I am creating a shopping cart for a asp.net site. I have
I have a rather strange situation, first of all, I don't ever specify anything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.