webbrowser-control

What's a good browser-based terminal emulator? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-02 22:12:01
We have several curses style applications which we'd like to provide access to through a browser-based interface. We have an application from another vendor which ostensibly provides this based on an old version of the JTA (Java Telnet App) but that applet doesn't handle things like resizing well, and has relatively poor support for scroll-back buffers and copy/paste. In this day of Ajax-based interfaces, I'm curious if there are any good, free solutions. Thanks to this web site, I saw references to Reflection's web-based terminal emulator, but that's probably too expensive for our needs. Some

How should an array be passed to a Javascript function from C#?

此生再无相见时 提交于 2019-12-02 20:59:25
I use a WebBrowser object from WPF and I'm calling some Javascript code in the page loaded in the browser like this: myWebBrowser.InvokeScript("myJsFunc", new object[] { foo.Text, bar.ToArray<string>()}); Now, the js function is supposed to iterate over the elements of the second parameter (an array of strings) and do stuff accordingly. The only issue is that the parameter seems not to be passed as a js array. For example, alert(typeof theArray); alerts "Unknown". What is the proper way to pass an array as a parameter when invoking a js function from CSharp? Maybe pass it as a json string

WebBrowser control set Document Mode

杀马特。学长 韩版系。学妹 提交于 2019-12-02 19:56:09
问题 So I know about FEATURE_BROWSER_EMULATION, but either it isn't working for me, or it only controls the Browser Mode and not the Document Mode. I have a lot of info specific to my case below, but the general question that I think/hope should have an easy answer that applies to lots of people is: How do I get the WebBrowser control to render exactly like whatever version of IE the user has installed? I think this comes down to control over the "Document Mode" I'm trying to get the WebBrowser

OLE Control window handle error with WebBrowser and Delphi 2007

梦想与她 提交于 2019-12-02 19:34:44
问题 I have run into an issue a couple of weeks ago that appear to have no logical explanation. I'm building an application with Delphi 2007 using AlphaControls and a WebBrowser component placed on a form. The TWebBrowser fetches a banner from the web and displays it into the UI. bad thing is that as soon as the form with the banner is displayed, I get the " Could not obtain OLE Control window handle ", while the browser is being displayed outside of the form, in the top left corner of the desktop

Webbrowser control File Download dialog Bypass

只愿长相守 提交于 2019-12-02 17:56:31
问题 Actually I want to download a file from website using Webbrowser Control, but because of File download Dialog box, I am not able to automate downloading process. For Bypass it I want to use webclient and need to transfer all session and cookies to webclient from WebBrowser Control or I need set all custom header from webbrowser control to WebClient. Please Help me I am in very bad situation. Thanks In Advance..... 回答1: Actually i want to download a file from website using Webbrowser Control,

Best Way to Render HTML in WinForms application? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-02 17:39:38
I have a WinForms application, running on .net 3.5. This Application generates HTML on the fly, which includes the complete document, and also an inline-CSS-Stylesheet (inside the head element). I am using the WebBrowser control and setting browser.DocumentText to my generated HTML, but that does not seem to properly apply styles on the body element (I've set background-color to #000000 in the CSS, but the background is still white). I wonder if a) there are some alternatives to render relatively simple HTML in C# (i.e. a completely managed HTML renderer) or b) what would be the best way to

Difference between F5, CTRL + F5 and click on refresh button?

冷暖自知 提交于 2019-12-02 16:07:45
Hello I have often experienced while developing my web applications that pressing F5 or refresh doesn't produce or refresh the proper result. But when we hit CTRL + F5 it generates the correct result. What is the basic difference between simple F5 and CTRL + F5 ? I have often also experienced that pressing simple F5 and pressing the refresh button on browser also generate different results. Can any body tell me what is the basic difference among all these requests. Alex CTRL + F5 Reloads the current page, ignoring cached content and generating the expected result. Pavel Podlipensky I did small

WebBrowser Control - No CSS applied

谁都会走 提交于 2019-12-02 09:43:50
问题 I need to host an online payment gateway in a Browser control in Framework 4.5 and have come across the problem where the CSS is not applied correctly or indeed at all. I have been through all of the options here with no luck and have tried to use the Navigate override detailed here and shown below where the page renders properly but is popped in a new browser window. browser.Navigate(url, "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">"); What I'm looking to do is make

Why does backgroundworker lags or freezes for a bit when waiting for page to load on webbrowser?

岁酱吖の 提交于 2019-12-02 09:01:48
I'm running a backgroundworker for my webbrowser on a winform, it works and all, but why does the UI lags or freezes for a moment to wait for the page to load when I want it to load in the background so that the UI is fully functional? Private Property pageready As Boolean = False Public Sub WaitForPageLoad() AddHandler WebBrowser1.DocumentCompleted, New WebBrowserDocumentCompletedEventHandler(AddressOf PageWaiter) While Not pageready Application.DoEvents() End While pageready = False End Sub Public Sub PageWaiter(ByVal sender As Object, ByVal e As WebBrowserDocumentCompletedEventArgs) If

Un-Share Session Cookies of webbrowser control

隐身守侯 提交于 2019-12-02 08:51:54
I have more than one webbrowser controls on my program, and it seams they all share session cookies. What i want is that they DONT share the session cookies. I have different webbrowser controls that opens the same website with different accounts, or open the same web-page that store different data in session. Anyone has any idea? The WebBrowser control is essentially an instance of Internet Explorer's renderer and HTTP logic, including cookie and session handling. The cookies are stored in the standard IE cookie directory. You'll have to switch to HttpWebRequest or WebClient if you want to