Einzelnen Beitrag anzeigen

Benutzerbild von F.W.
F.W.

Registriert seit: 28. Jul 2003
Ort: Zittau
636 Beiträge
 
#6

Re: IWebBrowser2 + Frames + Form

  Alt 13. Aug 2005, 14:00
Ich habs selbst rausgefunden! Es gibt ja noch weißgott andere Schnittstellen als IHTMLDocument2 und IHTMLElement

Delphi-Quellcode:
var
 Doc: IHTMLDocument2;
 EForm: IHTMLFormElement;
 EInput: IHTMLInputElement;
begin
 Doc := (IE.Document as IHTMLDocument2);

 EForm := (Doc.forms.item('form1', '') as IHTMLFormElement);

 EInput := (EForm.item('username', '') as IHTMLInputElement);

 EInput.value := Username.Text;
 EInput.form.submit;
end;
So könnte man z.B. das "Editfeld" >username< im Formular >form1< ausfüllen und absenden.
  Mit Zitat antworten Zitat