Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6726109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:53:15+00:00 2026-05-26T09:53:15+00:00

I am having a strange problem with my GWT app when running in IE8.

  • 0

I am having a strange problem with my GWT app when running in IE8. If I hit the enter key anywhere on the app the app acts like the user has logged out and the user is returned to the login page.

This does not happen in Firefox, IE7 or IE8 running in compatibility mode.

The fact that I get returned to the login page implies that the browser has lost the session information, is making a server request and is then redirected to the login page.

If I intercept the keydown event in a widget and call preventDefault then this stops the behaviour.

Any ideas what may be causing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:53:16+00:00Added an answer on May 26, 2026 at 9:53 am

    It seems that with IE8 if you do not specify the button type the button gets created as a submit button. In FF this is not the case. HTML4 standard states that if the button type is not specified it should default to being a submit button (+1 for IE!)

    In IE8 if you put a submit button on a page IE8 seems to create a pseudo/hidden/secret form component at the document level.

    Now, if you put any other components on the page they are treated as though they belong to the form and hitting enter in that component will fire the click event on the submit button.

    This behaviour can be demonstrated with the following simple HTML.

    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>IE8 Test</title>
    </head>
    
    <body>
    
    <button id="b2" type="button" value="button">Button type</button>
    
    <button id="b1">No type</button>
    
    <button id="b3" type="submit" value="submit">Submit type</button>
    
    <input type="text" value="text!">
    
    <script>
        document.getElementById('b1').onclick = function (e) {
            alert("You Clicked Button Number 1");
        };
    
        document.getElementById('b2').onclick = function (e) {
            alert("You Clicked Button Number 2");
        };
    
        document.getElementById('b3').onclick = function (e) {
            alert("You Clicked Button Number 3");
        };
    
    </script>
    </body>
    </html>
    

    My fix is to simply specify the button type in the GWT ui.xml file as type=”button”. This is in line with the HTML4 standard which recommends always specifying a button type to ensure compatibility across all browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a strange problem where a user can enter the following text Test
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
i am having a strange problem, i have a static class like this public
Having a strange problem with a page set to 100% fluid width which has
I'm having a strange problem with Android 1.6 I have an application that has
I'm having a strange problem with my app - A have a Fragment Activity
i am having strange problem, when i change the default app pool to use
I'm having a strange problem with MySQL and would like to see if the
I'm having a strange problem. I have to use GetPostBackEventRefence to force a Postback,
I'm having a strange problem in Visual Studio 2008 where my Pending Checkins window

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.