Question : WebBrowser and JavaScript

I am trying to grab the content of a web page that is using JavaScript to write out content.  I started with an HttpWebRequest but the raw HTML is not sufficient as I need the JavaScript to actually run in order to obtain the correct content.

I am currently trying to use a WebBrowser control but I still cannot get the JavaScript to execute (my code is below) - can somebody please help?
1:
2:
3:
4:
5:
6:
WebBrowser wb = new WebBrowser(); 
            wb.ScrollBarsEnabled = false; 
            wb.ScriptErrorsSuppressed = true; 
            wb.Navigate(TargetUrl); 
            while (wb.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); }
            return wb.DocumentText;

Answer : WebBrowser and JavaScript

I'm afraid currently this can't be done. As HFS file-systems are apple stuff and copyrighted by them, and since they don't publish it's workings to the others, there won't be a solution to this until apple changes it's position, or someone reverse engineers things.
Random Solutions  
 
programming4us programming4us