Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6426928

focus lost within text item after applet is shown again

XMLWordPrintable

    • b01
    • x86
    • windows_2000

      test case attached.

      Steps to run the tescase
      -------------------------
      1. Extract the contents of the zip file to a directory.
      2. Load the file indusfocus.html on IE.
      3. You will see a page with an applet loaded with a text item. The focus is in the text item.
      4. Now click on the link called "Views". The applet is hidden.
      5. Then click on the link called "BannerForms". The applet is shown.

      On JDK 1.5, you will see that the focus remains inside the text item when the applet is shown again after step 5.
      On JDK 1.4, you will see that the focus is not present in the text item after the applet is shown again after step 5.

      Basically, the fix (for 1.5 but doesn't work in 1.4.2) for the bug is this :
      1. The forms applet should be given a name i.e. in basejpi.html, the tag ID=<some_name> should be added to the <OBJECT> tag.
      2. In the javascript function changebannerforms() present in indusfocus.html, the lines

                 if (oFormsFrame != null) {
                          oFormsFrame.height = 600;
                 }

      must be changed to

                 if (oFormsFrame != null) {
                          oFormsFrame.height = 600;
                          top.bannerforms.formsapplet.focus();
                 }

            kbalasubsunw Kannan Balasubramanian (Inactive)
            msusko Mark Susko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: