Forum: Netzwerke
by toms,
7. Feb 2010
Vielleicht ist es ja nicht die 1. Form...
Falls die Form einen Namen hat (siehe Quelltext der Seite), kannst du die Form auch anhand seines Namens abschicken:
function WB_SubmitFrom(WebBrowser: TWebBrowser; const FormName: string): IHTMLFormElement;
var
forms: IHTMLElementCollection;
Doc2: IHTMLDocument2;
begin
if Assigned(WebBrowser.Document) and
Forum: Netzwerke
by toms,
7. Feb 2010
with WebBrowser1 do
begin
OleObject.Document.GetElementByID('username').Value := Edit1.Text;
OleObject.Document.GetElementByID('password').Value := Edit2.Text;
OleObject.Document.forms.item(1).submit();
end;