5

is somebody experience on using delphi embedded chrome? delphichromiumembedded. how to make get accessed to its HTML DOCUMENTS? like assign a value to Editbox

makes
  • 6,438
  • 3
  • 40
  • 58
XBasic3000
  • 3,418
  • 5
  • 46
  • 91

1 Answers1

9

See demos\guiclient directory for an example.

Update: an example to set text of an input field on the iGoogle page:

procedure TMainForm.actDomExecute(Sender: TObject);
var
  q: ICefDomNode;
begin
  crm.Browser.MainFrame.VisitDomProc(
    procedure (const doc: ICefDomDocument)
    var
      q: ICefDomNode;
    begin
      // "q" is the ID of the text input element
      q := doc.GetElementById('q');
      if Assigned(q) then
        q.SetElementAttribute('value', 'Hello, world');
    end
  );
end;
Ondrej Kelle
  • 36,941
  • 2
  • 65
  • 128
  • Nothing in there? Excuse me, what do you mean by that? There's source code, isn't there? Can't you see `TMainForm.actDomExecute` method in `main.pas`? – Ondrej Kelle May 12 '11 at 09:23
  • i cannot figure it out how to set value on it. It seems like you are just viewing what is inside. SetValue doesn't work or assigning a value does not reflect to the current page. any idea how? – XBasic3000 May 13 '11 at 02:44
  • @XBasic3000 See my example above. – Ondrej Kelle May 18 '11 at 07:38