Questions tagged [tembeddedwb]

20 questions
4
votes
1 answer

TEmbeddedWB.ExecScriptEx not working with JavaScript

Put a TMemo, a TEmbeddedWB and a TButton on a Delphi VCL form. This is the code from the form unit: procedure TForm1.Button1Click(Sender: TObject); var vResult: OleVariant; Para1: string; begin Para1 := '5'; // edPara.Text; vResult :=…
user1580348
  • 5,721
  • 4
  • 43
  • 105
3
votes
0 answers

EmbeddedWB inserting HTML at cursor position

I use TEmbeddedWB and TEditDesigner to add HTML to page which is in edit mode. It is as simple as EditDesigner->InsertHTML("1234");. The problem is because the HTML is not always inserted at the cursor position. If I place this code on a button it…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
2
votes
2 answers

Delphi XE - read style property of HTML objects

I am using the class TEmbeddedWB to Access HTML elements in an embedded Web Browser in a Delphi program. After much googling I can't come up with a solution for the following issue: How to directly read style properties of objects? I…
Liglo App
  • 3,719
  • 4
  • 30
  • 54
1
vote
1 answer

Determining OnBeforeNavigate2 source

OnBeforeNavigate2 event occurs multiple times for a single document. The document I am loading contains iframe so that triggers OnBeforeNavigate2 event multiple times. What I want to do is to figure out which frame triggered it and cancel the…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
1
vote
1 answer

How to get all cookie details with TEmbeddedWB?

In a Delphi XE8 VCL Form Aplication, with TEmbeddedWB I get the cookies with this method: CookieStr := EmbeddedWB1.Cookie; CodeSite.Send('CookieStr', CookieStr); This is the result (for example): name1=value1; name2=value2; name3=value3 However,…
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
vote
1 answer

How to suppress ActiveX warning dialogs in TEmbeddedWB?

In a Delphi XE8 VCL Form project using TEmbeddedWB, in EmbeddedWB1 for security reasons I set both DontExecuteActiveX and DontDownloadActiveX properties to True: I have also disabled dialog-boxes in EmbeddedWB1 by setting…
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
vote
1 answer

Inserting in Internet Explorer design mode

I use this code to insert tag. EmbeddedWB.Doc2.body.insertAdjacentHTML('afterBegin',''); Ignore for a second that is obsolete. I am working with it because in IE6 it works. But nothing is present in the…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
0
votes
2 answers

Disable keyboard on TWebBrowser in Delphi

I want Disable Keyboard for TWebBrowser and avoid copying information inside it using Ctrl+C. but I couldn't find any option for disable keyboard in TWebBrowser properties. Is there a way to do this? EDIT: I saw this solution but it doesn't…
Behdadsoft
  • 77
  • 9
0
votes
1 answer

Using TEmbeddedWB in C++ Builder

I am having little difficulty compiling a test app using TEmbeddedWB for RAD Studio Rio 10.3.3 from https://github.com/7even11/Delphi-EmbeddedWB I just drop the a EmbeddedWB component on the form and compile. It compiles fine in Delphi. In C++…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
0
votes
1 answer

Why doesn't QueryService get called for IHttpSecurity when using TEmbeddedWB?

TEmbeddedWB contains an event for extending support for additional services, called OnQueryService. According to MSDN, this function will be called to allow me to return an IHttpSecurity reference, so I can handle certificate errors my way. However,…
Marc Durdin
  • 1,675
  • 2
  • 20
  • 27
0
votes
1 answer

Need help for displaying HTML5 form elements into webbrowser in delphi

I am working on adding new form elements from HTML5 like input type email, URL etc into webbrowser. I am able to save these controls into HTML file in a proper way. However, while loading that HTML file back into webbrowser, I am not getting that…
manasee
  • 11
  • 3
0
votes
0 answers

Delphi7 - TWebBrowser does not load web, IE or Chrome correct

Using Delphi 7 on Win7, all updates. The TWebBrowser component (or TEmbeddedWebBrowser) does not load http://www.sreality.cz correctly. Until recently, everything was ok. I think it happened after deploying multilingual websites. However, in IE or…
0
votes
2 answers

TWebbrowser / TEmbeddedWb : hide all messageboxes

I have an application that uses TEmbeddedWb to automate data scrapping tasks. Some web-sites show messages / popup boxes when my app navigates to it, and these makes the process slower. I want to block any messagebox that TWebbrowser could show. I'm…
delphirules
  • 6,443
  • 17
  • 59
  • 108
0
votes
0 answers

TEmbeddedWB repeats copy action when program closes

I execute the following code to copy the whole text from a TEmbeddedWB to the clipboard: EWBH.ExecWB(OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT); EWBH.ExecWB(OLECMDID_COPY, …
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

Set TEmbeddedWB to ViewOnly mode?

Is it possible to set TEmbeddedWB to a ViewOnly mode? I.e., the user cannot click on links, the mouse pointer does not change when hovering over a link, etc.
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
2