browser

How to call the OnChange event of “Select” ? (Delphi - WebBrowser)

戏子无情 提交于 2019-12-31 04:05:53
问题 I'm using Delphi and WebBrowser componenet to navigate a html page . the page have a Combobox . is there any way to call the OnChange event ? The ComboBox is like this : <select name="comboname" onchange="Some Javascript codes"> Also , i have used this code : function TFrmMain.SetComboboxValue(WB: TEmbeddedWB; SelectName, ItemName: string): Boolean; var iForms, iFormItems, iSelectItems: Word; FormItem: OleVariant; begin Result := false; for iForms := 0 to WB.OleObject.Document.Forms.length -

“The connection was reset” on web browsers when trying to connect to a localhost socket server

 ̄綄美尐妖づ 提交于 2019-12-31 03:54:33
问题 I am trying to make a server in python using sockets that I can connect to on any web browser. I am using the host as "localhost" and the port as 8888. When I attempt to connect to it, the stuff I want to be shown shows up for a split-second, and then it goes away with the browser saying "The connection was reset". I've made it do something very simple to test if it still does it, and it does. Is there a way to stop this? import time import socket HOST = "localhost" PORT = 8888 def function

Are there any arbitrary restrictions on maximum image pixel size in IE and Webkit mobile?

☆樱花仙子☆ 提交于 2019-12-31 03:38:06
问题 A recent project made use of very pixel-large (~5e3px2) but still byte-small (~100kb — GIF) images, which both IE8 and iOS Safari refused to render. Both seem aware of the image size, but simply do not render them. A practical solution is to slice the image, but are there any documented arbitrary restrictions on maximum image pixel size for these browsers? 回答1: Mobile Safari has a 3-megabit buffer for non JPG images. Anything larger than that will not display. Calculate size = w * h * 8 for

Access Intranet via SSL using WebBrowser Winforms Control

放肆的年华 提交于 2019-12-31 03:37:08
问题 I have a .Net 2.0 app that is used internally and we want to use the WebBrowser control to access some Web resources. We want to add encryption to these sites using SSL using self signed certificates. My question is if there is way to disable all the warnings about the SSL keys coming from an untrusted source? I would like to avoid to have to install the keys in each of the workstations running the app. Any other suggestions on how to do this are welcome. 回答1: I do not believe there is a work

Need help changing from stock android browser to webview

南楼画角 提交于 2019-12-31 03:00:36
问题 Ok, so I've got my app done, and I'm working on minor tweaks for it, and one thing is I would prefer my web links to launch in webview instead of the stock browser... I've tried so many things and I keep getting errors and eclipse keeps launching the debug perspective and I'm stuck.. // XXXX.edu Button Button XXXX_Button = (Button)findViewById( R.id.XXXX_Button ); XXXXXX_Button.setOnClickListener( new View.OnClickListener() { public void onClick(View v) { Uri uri = Uri.parse( "http://www

Webbrowser control ignores FEATURE_BROWSER_EMULATION reg entry

给你一囗甜甜゛ 提交于 2019-12-31 02:17:06
问题 Im developing a custom browser solution with .net's Webbrowser control. To disable the IE-Compatibilty View, I set the registry entry Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION: [Sreenshot regedit] http://zbirk.mirk.at/browserreg.png "Screenshot" i tried to use the values: dword=8000,dword=8888,dword=9000, but the webbrowser control seems to ignore these reg entries. Maybe someone had this problems too and may help me. 回答1: The WebBrowser control

Limit on mail body when posting a mailto: form

爱⌒轻易说出口 提交于 2019-12-31 01:47:11
问题 I've got a HTML form with a lot of input fields, which I use to populate an email. I learned today that using the GET-method will limit the size of what's posted. But from what I can tell, there is no limit when using POST. Well, there probably is since I believe that this is probably my problem. My emails aren't opening in the email client when they have reached a certain size (or if I've used too many input fields?) The users will not be able to have a constant internet connection, and the

CSS Style window background beyond page on Mac possible?

本秂侑毒 提交于 2019-12-31 00:50:35
问题 Is it possible to style or color the window pane background of the browser? When scrolling beyond the edge in Chrome and Safari on Mac, the whole page is pulled a bit down and/or sideways. It shows a basic canvas style of texture, is it possible to style that region (with CSS) ? Edit: i found a (crude) way to prevent the overscrolling entirely, but i'm looking for a way to set a color or texture, to match the overall design. Prevent "overscrolling" of web page 回答1: probably this is not needed

webBrowser.Navigate synchronously

孤街醉人 提交于 2019-12-31 00:01:35
问题 i want to call webBrowser.Navigate(string urlString) synchronously where webBrowser is windows forms control. I do this in such way ... private delegate void NavigateDelegate(string s); ... private void Function() { NavigateDelegate navigateDelegate = new NavigateDelegate(this.webBrowser1.Navigate); IAsyncResult asyncResult = navigateDelegate.BeginInvoke("http://google.com", null, null); while (!asyncResult.IsCompleted) { Thread.Sleep(10); } MessageBox.Show("Operation has completed !"); } but

How to hide JDialog from JApplet when user switch browser tab?

╄→гoц情女王★ 提交于 2019-12-30 22:59:56
问题 Problem: user starts long operation from applet; JDialog with progress bar is displayed. User open/switch to another browser tab - JDialog is still displayed (and annoys user). JDialog should be hidden when user switch to another tab; and displayed again, when user switch back. Note: I saw question with similar problem, where solution was add windowActivated/deactivated listener. It doesn't work for me, because there are multiple frames in window, and one of them contains applet. When user