> Normally to do this you need to use Javascript (DHTML etc) and trap the
> enter/return key and then make this do a submit.

Java has nothing to do with this. I have a little test page here with a
simple form in it. Enter key works fine when I am using IE and does not work
at all when TWebBrowser used.

> -----Original Message-----
> From: Alex Kouznetsov [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 6 July 2001 4:44 p.m.
> To: Multiple recipients of list delphi
> Subject: [DUG]: TWebBrowser and Enter key
>
>
> When using TWebBrowser and filling some web page form, pressing Enter key
> does not submit data entry.
>
> Say I go to www.anzwers.com.au and using IE type 'Delphi' and then press
> enter. It'll go to search for Delphi.
>
> If I do exactly the same thing using the simplest possible Delphi
> application with TWebBrowser in it, pressing enter key does nothing, I
have
> to click the search (or submit) button with the mouse.
>
> All I have in my application is a basic form with TWebBrowser in it and
this
> code under "Go" button (not "default").
>
> Flags := 0;
> WebBrowser1.Navigate(WideString('www.whatever.com'), Flags, Flags, Flags,
> Flags);
>
> Is there something I am missing ?
>
> Regards
> Alex
>
>
>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to