twebbrowser

Chrome/ Firefox Alternative to TWebBrowser Control

故事扮演 提交于 2019-12-03 07:19:42
I have a Delphi app that shows a group of webpages in a TWebBrowser control. Its a kiosk type app so a user touches a button on the side and it shows a particular webpage in a tab. I am having some problems with certain sites and getting IE javscript errors. I would like to know if there is a way I can embed a chrome or firefox browser in a tab or on a form from Delphi? This question seems to answer the issue I had with getting javascript errors. I should have googled first. Found this http://code.google.com/p/delphichromiumembedded/ Took a little bit of fiddling, but seems to work good. 来源:

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

OLE Control window handle error with WebBrowser and Delphi 2007

a 夏天 提交于 2019-12-02 08:18:05
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. I've been trying basically anything to figure it out, but the debugger does not provide too much

Delphi, EmbeddedWB/TWebbrowser - jQuery not executing

社会主义新天地 提交于 2019-12-02 07:16:03
问题 I am using EmbeddedWB (A TWebbrowser extension) to do like a "live preview" of some dynamically generated content. I am trying to add jQuery into the mix, so I can get some fancy effects going on, however since IE9 always asks "Allow blocked content" for each and every damn page, a dynamically generated one (Webbrowser.LoadFromString) certainly wont be allowed to have fun. To put it simple: It wont allow Javascript execution. I tried adding a SecurityManager to my TEmbeddedWB, however that

Fill a field on a web page in TWebBroswer Delphi 7

浪子不回头ぞ 提交于 2019-12-02 01:49:38
问题 I'm making a small program to place orders on our supplier's web site. I need to fill 3 fields in the page. Don't even need to "submit" it. Is there any simple way or any component that could do that (preferably free) Thank you! 回答1: Suppose you have an input field with name 'name' and type 'text', you can call WebBrowser1.OleObject.Document.GetElementByID('name').setAttribute('value', 'somename'); 来源: https://stackoverflow.com/questions/10568608/fill-a-field-on-a-web-page-in-twebbroswer

Fill a field on a web page in TWebBroswer Delphi 7

北城余情 提交于 2019-12-02 00:19:55
I'm making a small program to place orders on our supplier's web site. I need to fill 3 fields in the page. Don't even need to "submit" it. Is there any simple way or any component that could do that (preferably free) Thank you! Suppose you have an input field with name 'name' and type 'text', you can call WebBrowser1.OleObject.Document.GetElementByID('name').setAttribute('value', 'somename'); 来源: https://stackoverflow.com/questions/10568608/fill-a-field-on-a-web-page-in-twebbroswer-delphi-7

how to use the TWebbrowser on a diffent cache?

Deadly 提交于 2019-12-01 12:57:25
I want to build an Internet Browser just like any other web browser or Internet Explorer except that each window should use a unique name for cache. Any ideas? Or any third party components? I would recommend that you ditch TWebBrowser, and find out if TEmbeddedWB (alternative IE/shelldocview wrapper ) provides you with the ability to specify a different cache per instance. if not, then I recommend you ditch IE completely, and look for a webkit based browser control for Delphi, such as the Chromium-for-delphi wrappers. 来源: https://stackoverflow.com/questions/4980359/how-to-use-the-twebbrowser

how to use the TWebbrowser on a diffent cache?

不想你离开。 提交于 2019-12-01 10:20:40
问题 I want to build an Internet Browser just like any other web browser or Internet Explorer except that each window should use a unique name for cache. Any ideas? Or any third party components? 回答1: I would recommend that you ditch TWebBrowser, and find out if TEmbeddedWB (alternative IE/shelldocview wrapper ) provides you with the ability to specify a different cache per instance. if not, then I recommend you ditch IE completely, and look for a webkit based browser control for Delphi, such as

How to detect Print command has finished in TWebBrowser?

家住魔仙堡 提交于 2019-12-01 08:41:15
procedure TForm1.Button1Click(Sender: TObject); var vaIn, vaOut: OleVariant; begin WebBrowser1.Navigate('http://www.google.com'); while WebBrowser1.ReadyState < READYSTATE_COMPLETE do Application.ProcessMessages; WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, vaIn, vaOut); // HOWTO: WAIT until print <strike>job</strike> dialog is done or canceled // UPDATE (1): WebBrowser1.Enabled := False; WebBrowser1.OnCommandStateChange := WebBrowser1CommandStateChange; end; procedure TForm1.WebBrowser1CommandStateChange(Sender: TObject; Command: Integer; Enable: WordBool); begin Memo1.Lines