United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4747738 stddoclet: Window title shouldn't change when loading left frames (javascript)
JDK-4747738 : stddoclet: Window title shouldn't change when loading left frames (javascript)

Details
Type:
Bug
Submit Date:
2002-09-16
Status:
Resolved
Updated Date:
2002-09-28
Project Name:
JDK
Resolved Date:
2002-09-28
Component:
docs
OS:
other
Sub-Component:
doclet
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports

Sub Tasks

Description
Viewing the J2SE with 3 frames displayed, in IE, when clicking on links in 
the upper-left frame, the window title changes to whatever you click on,
which is mislleading, because they don't represent the document in the
main page.  The window title should correspond only to the document 
in the right-hand main frame.

                                    

Comments
PUBLIC COMMENTS

Fixed.  

First, I renamed printHeader(String) and its related overloads (which print the 
HTML file header) to printHtmlHeader, to rename them away from the unrelated 
printHeader(ClassDoc) (which prints headings on the page).

Added boolean parameter "includeScript" to the printHtmlHeader method 
to tell these cases to exclude this "onload" string from
the <BODY> tag of "navigation" files in the left-hand frames:
allclasses-frame.html, overview-frame.html and package-frame.html.

Also renamed the javascript function from the cryptic "asd()" to 
"windowTitle()".

Change affects these files:
com/sun/tools/doclets/standard/AbstractPackageIndexWriter.java
com/sun/tools/doclets/standard/AbstractPackageWriter.java
com/sun/tools/doclets/standard/PackageFrameWriter.java
com/sun/tools/doclets/standard/PackageIndexFrameWriter.java
com/sun/tools/doclets/standard/PackageIndexWriter.java
com/sun/tools/doclets/standard/PackageWriter.java
plus a bunch of other files where only printHeader was renamed.

###@###.### 2002-09-16
                                     
2002-09-16
EVALUATION

This bug is due to the Javascript routine asd() mistakenly being loaded 
with <BODY onload="asd()> in the left-hand "navigation" frames by
overview-frame.html, allclasses-frame.html and package-frame.html pages.  
###@###.### 2002-09-16
                                     
2002-09-16
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b03


                                     
2004-06-14



Hardware and Software, Engineered to Work Together