http://bugs.winehq.org/show_bug.cgi?id=32375
Bug #: 32375 Summary: Submit form by code fails Product: Wine Version: 1.5.18 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: mshtml AssignedTo: wine-bugs@winehq.org ReportedBy: ocean04@suomi24.fi Classification: Unclassified
I use this kind of code to submit form. Submit actually works, but it displays OLE error message box.
procedure TForm1.Button2Click(Sender: TObject); var forms: IHTMLElementCollection; doc2: IHTMLDocument2; Form: IHTMLFormElement; begin doc2:=Webbrowser1.document as IHTMLDocument2; forms:=doc2.forms as IHTMLElementCollection; form:=forms.Item('testform','') as IHTMLFormElement; form.submit; end;
http://netikka.net/dev/submit.exe
Click button "submit".
Terminal: err:mshtml:HTMLFormElement_submit Submit failed: 804b0002