twebbrowser

Rad Studio, Firemonkey ios TWebBrowser seems above all objects

五迷三道 提交于 2019-12-13 04:26:27
问题 I'm using Firmonkey (Rad Studio) for an IOS app. I'm using a TWebBrowser object but this seems to stay above all objects. I tried to right-click the TWebBrowser object and click Send to Back, but it did not. Does anyone know any solution? 回答1: Unfortunately, There are no solution for it. Because TWebBrowser is a native component, which is always on top of all controls. Thank you 来源: https://stackoverflow.com/questions/21352847/rad-studio-firemonkey-ios-twebbrowser-seems-above-all-objects

TWebBrowser - Trying to fix the “Invalid floating point operation” error

…衆ロ難τιáo~ 提交于 2019-12-13 01:29:35
问题 The TWebBrowser component has an error as described here [IE9] 'Floating point division by zero' occurs with WebBrowser. The solution is to call a procedure that will disable all division by zero exceptions. I am trying to fix this problem without having to call this procedure. So far, the best idea I had was to disable TWebBrowser scroll bars and try to simulate the same functionality using a TScrollBar . So far, it is working but that is the question: How can I synchronize the navigation in

Is TWebBrowser dependant on IE version?

柔情痞子 提交于 2019-12-12 16:05:46
问题 I am thinking about using the TWebBrowser component that comes within Delphi's default pallet of components in a project, but I wonder if it uses the IE version installed on the client machine? If yes: then I guess it would share its history, cookies, workoffline and stuff like that? Can I separate them somehow? Is there any webbrowser component that is free and is not shared with Internet Explorer on the client? 回答1: The current answer is not quite correct. It appears for compatibility

TwebBrowser Zoom/Gesture is not working for firemonkey/iOs in XE4 when open a pdf file

故事扮演 提交于 2019-12-12 14:05:07
问题 I want to display PDF within iOS application, so far the only way I find is open it in TwebBrowser. A.It is displaying in "fit to page width" zoom as default B.There is no "zoom" function WebBrowser1.Navigate(file://mypdf.pdf') How to I want to change the zoom after open the file (My solution encounter q#2) Make the zoom work (My solution encounter q#3) Make the gesture as work just like web page For #1: I chagne WebBrowser1.height/width in run-time, it will auto scale(zoom?) as "Fit to width

How can I find the ComServer for a TWebBrowser Asynchronous Pluggable Protocol

人走茶凉 提交于 2019-12-12 05:57:03
问题 I've currently implemented this demo code for an APP sucessfully, http://www.jasontpenny.com/blog/2010/03/23/custom-protocol-handler-in-delphi/, However it seems to only work if the application is a single form application. What I have found is that no Factory is returned for CoGetClassObject in: procedure NewProtocolHandler(const aProtocolName: String; aProtocolCallback: TProtocolCallback; aProtocollType: TGUID); var error : HRESULT; begin if _protocol <> '' then raise Exception.Create(

Delphi: How to check if webbrowser has successfully loaded the page?

旧巷老猫 提交于 2019-12-12 02:36:27
问题 I have a simple code: WebBrowser1.Navigate('www.foo.com'); But of course sometimes the browsing fails and the browser displays the error message. How can I catch when this happens? I want this so that I can make a some sort of a custom log. 回答1: I assume that the the OnNavigateError event handler is called when there is a problem. 来源: https://stackoverflow.com/questions/11568605/delphi-how-to-check-if-webbrowser-has-successfully-loaded-the-page

Suppress the “are you sure you want to leave this page” popup in the Delphi TWebbrowser control

こ雲淡風輕ζ 提交于 2019-12-11 22:20:58
问题 I have an Delphi application that uses TWebbrowser component to automate navigation to another web application we have. My problem is that sometimes IE shows the infamous 'Are you sure you want to leave this page' message and when this happens, my app can't navigate to another pages unless an user clicks on 'Leave this page' button. I can't edit the website code to remove this warning, unfortunately. This message is plaguing my app for weeks, and I could not reach to a proper solution anymore

How to set Delphi WebBrowser Base directory different that HTML location

寵の児 提交于 2019-12-11 14:08:51
问题 I have a Delphi program that creates HTML files. Later when a button is pressed a TWebBrowser is created and a WebBrowser.Navigate causes the html page to display. Is there anyway to set the WebBrowser "default directory" so it will always be the location of the Delphi executable not the HTML file? I do not want to set the Base value in the HTML to a hardcoded value because then when the HTML is ran from another Delphi exe they are not found. for example: if the exe is run from D:\data\delphi

Firemonkey Delphi TWebBrowser Get Text / HTML

岁酱吖の 提交于 2019-12-11 13:47:58
问题 How can i get text / html from a webpage on Firemonkey platform (Android/iOS). TWebBrowser Doesn't have anything for this... 回答1: With some test, I combine JAVAScript and Delphi code, there is a workground, please refer to my article: http://firemonkeylessons.blogspot.tw/2015/01/get-htmljson-from-twebbrowser.html 来源: https://stackoverflow.com/questions/22156463/firemonkey-delphi-twebbrowser-get-text-html

How do I open links from a TCppWebBrowser component in the systems default browser

不想你离开。 提交于 2019-12-11 09:52:10
问题 We are using a TCppWebBrowser Component in our program as a kind of chatwindow, but since the TCppwebrowser is using the IExplorerengine all links that are clicked is opening in IExplorer. One idea I have is to cancel the navigation in Onbeforenavigate2 an do a Shell.execute, but where hoping for a more elegant solution like a windowsmessage i could handle or an event or something. 回答1: Assuming that TCppWebBrowser is like TWebBrowser in Delphi, something like the code below should get you