webbrowser

How to implement custom proxy server?

Ultimately, I want to block downloads in .NET WebBrowser control, effectively restricting it to displaying HTML, images, scripts and the like, but never, ever display a "Save as" dialog to the user. The solution proposed in an answer to that question was to hook up a custom proxy server that checks the responses and filters out anything...

How to make WebBrowser to save its content as an MHT file?

Internet Explorer can save its content as an MHTML file using the "Save As..." menu command. Is this feature exposed by its COM interface? ...

Servlet long processing cancelation when browser closes.

Hi, I have a servlet which processes a request for a long time. It suppose to keep doing stuff in the loop inside doPost and send data through response's out writer. Effectively that continuously appends data in the clients browser . But the problems accures when client just closes the browser. Inspite of the broken connection the respo...

Which webbrowsers use http/1.1 by default?

Anyone have an idea where can I look up that information? I'm pretty sure that IE 4 has the "Use HTTP 1.1" parameter on by default and the "Use HTTP 1.1 through proxy connections" off. Got this information from here. I assume the later versions would have "Use HTTP 1.1" on too. How about older versions of IE? How about Firefox, Opera, Sa...

Tracking actions in a browser component

Hi Guys, Im a c# developer and I believe that what I want to achieve is going to move out of the realms of some drop in .NET component so I am looking for advise on what I use externally which .NET can inter op with. My requirements are to have an embedded web browser control in a WPF/Winforms applciation BUT I will also need to keep...

Caching and re-using tree of HtmlElement objects

I am using the WebBrowser control in my project to display complex HTML documents that are generated/manipulated at runtime. I have noticed that constructing the DOM programmatically from C# by creating HtmlElement objects is about 3x slower than generating an HTML string and passing it to the WebBrowser, which in turn parses it to ge...

Removing HtmlElement objects programmatically using C#

In a WebBrowser control, how do I remove HtmlElement objects? There are no methods in the HtmlElement class to accomplish this. As a workaround, I can create a "dummy" HtmlElement (without inserting it into the HtmlDocument), into which I then insert (via AppendChild) the HtmlElement objects to be removed. This feels like a hack. Is ...

HTTP large file transfer

It is necessary to transmit large file using web browser interface. Standard <input type=”file”> or <asp:FileUpload> do not provide enough feedback for the user of the application. What are the realistic ways to improve feedback such as progress bar, animation, etc? Target users are users with IE, Firefox and Safari browsers. All I know ...

Gecko API for DOM

Does Gecko expose an API for working directly with its DOM? I'm looking for a class like HtmlElement that can be used to build/traverse trees of HTML content. I'm trying to host Gecko as a web browser control in a desktop application, and would prefer a direct API rather than going through COM. Thanks! ...

WebKit API for DOM

Does WebKit expose an API for working directly with its DOM? I'm looking for a class like HtmlElement that can be used to build/traverse trees of HTML content. I'm trying to host WebKit as a web browser control in a desktop application, and would prefer a direct API rather than going through COM. Thanks! Thanks! ...

Model View ViewModel in WPF with WebBrowser

Hi All Im writing an app in WPF using MVVM pattern, where Im restricted to binding to properties and commands exclusivley However, I want to use the WebBrowser control which can only take an html string for content as a parameter to a mthod, and not a property. I was going to create a new control derived from Webbrowser that has the r...

WPF WebBrowser Overwrite Javascript

Hi, I work with WPF WebBrowser control which different from WinForms and many recommendations from this excellent web site simply does not work in WPF. I try to find solution how I can overwrite particular javascript function btnSubmit_onclick() on a web page. This function generates confirm dialog (like "Are you sure?") which I want t...

How to get started building a web browser?

I decided to put some effort in building a web browser (from scratch), any recommendations on how to get started! not only coding, also design patterns, and best practices advices are highly appreciated. PS: I'm using C# .NET ...

Change view when using webBrowser to browse directories

Hello, imagine you are using webBrowser control to browse local file system, so it behaves like Explorer WebBrowser wb = new WebBrowser(); wb.Navigate(@"c:\"); Now it displays contents of c:\ directory. But I'd like it to programatically set the view mode to "Details" view and not to display whatever mode the logged-in user currently u...

What to use for trasfoming xml using xslt, js and css

I want to transform an xml file, display its treeview on a html. I have downloaded a example, it has xslt, js, css and also some images. I used xmlspy to do the transformation, but it didn't work. Could anyone please tell me how to do the transformation? ...

Building HtmlElement object trees

I'm using the MSIE WebBrowser control in a C# desktop application and am looking for a way to build and maintain trees of HtmlElement objects outside of this control. I am trying to quickly switch between multiple complex pages without incurring the overhead of re-parsing the HTML each time (and I don't want to maintain multiple control...

C# WebBrowser control -- Get Document Elements After AJAX?

Hello. I'm writing an application that uses the WebBrowser control to view web content that can change with AJAX that adds new content/elements. I can't seem to get at the new elements any way I've tried. BrowserCtl.DocumentText doesn't have the up-to-date page and of course it's not in "view source" either. Is there some way to get thi...

Delphi: TWebBrowser in background-thread

Is it possible to load a webpage in a TWebBrowser in a background thread? When the application loads, I want to download a page from the web into a TWebBrowser, but I don't want to block the gui-thread. Any suggestions? Some clarifications: The webbrowser-component is living on a form, and i want to display a page from the web. But I...

How to deliver a Java program locally through a browser

Hello, I want to write an application that runs entirely locally on one machine - there is no need for connection to the internet or to any external machines. I was thinking that it would be a good idea to use a web browser as the platform for this application so that I would not have to mess around with lots of UI stuff - I could just...

Future of Internet Explorer

It's been rumored that IE8 will be Microsoft's final release of IE (When I asked this question, someone pointed me to an article on Slashdot -- Yes, I know, it's Slashdot, but it cited an article on InfoWorld -- in any case, there seems to be some legitimate concern regarding Microsoft's continued support for IE, at least in its present ...