On 26 juin, 00:35, Johan  Lundberg <[email protected]> wrote:
> Merci Thomas
>
> Unfortunately I only got this working in Fire Fox again.
>
> Results on Vista:
> FireFox shows Window.alert and offers to store username and password
> Chrome 2 shows Window.alert
> Safari 4 shows Window.alert
> IE8 does not even show Window.alert
>
> This is my test code:
[...]
> public class LoginDialog extends DialogBox {
>
>         public LoginDialog() {
>                 FormPanel form = FormPanel.wrap(Document.get().getElementById
> ("login"), false);
>                 form.setAction("javascript:__gwt_login()");
>                 injectLoginFunction();
>                 setText("Logga in för att registrera vattenförbrukning");
>                 setWidget(form);

You're removing the form from the page to add it in a dialogbox.

Having the form in the initial HTML markup is not enough, you also
must not move it along!

If you want it to display as a "popup", you should use CSS only
(eventually changed using JS/GWT; but do not detach your form from the
page, never ever).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to