I was getting annoyed at the number of beeps coming from IE7 in my forms, and tracked it down. Apparently if there are two TextBox's in a FormPanel, and the user hits Enter in one of them, IE7 beeps and does not submit the form. One TextBox, and IE submits. It's really annoying. Any ideas on how to fix the forms / supress the beeps? Adding keyboard listeners to do the submits doesn't help, it adds more beeping.
Here's the code to reproduce the beeps: /* Not necessary for this example to set any properties on the form. The beeps are repro'd with or without action/method/encoding present */ FormPanel fp = new FormPanel(); TextBox name1 = new TextBox(); name1.setName("name1"); TextBox name2 = new TextBox(); name2.setName("name2"); /* Having both of these widgets (name1, name2) will cause IE to beep instead of submit the form. Remove one of them, and the beep is gone, and IE submits the form: */ Grid g = new Grid(2,1); g.setWidget(0,0, name1); g.setWidget(1,0, name2); // remove this line, hit enter in 'name1' - submits fp.setWidget(g); fp.addFormHandler(new FormHandler(){ public void onSubmit(FormSubmitEvent event) { Window.alert("submitting"); } public void onSubmitComplete(FormSubmitCompleteEvent event) { } }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---