Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4747738
Votes 0
Synopsis stddoclet: Window title shouldn't change when loading left frames (javascript)
Category doclet:tbd
Reported Against 1.4
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 16-SEP-2002
Description
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.

 xxxxx@xxxxx  2002-09-16Viewing 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.
Work Around
N/A
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.  
 xxxxx@xxxxx  2002-09-16
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang