sanjanind / js-floating-table-headers

Automatically exported from code.google.com/p/js-floating-table-headers
0 stars 0 forks source link

No functionality in Mozilla 3.5 and limited functionality in IE7 #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Added THEAD tags around header row 
2. Placed js in place where web server could access
3. Included JS in webpage on Mozilla 3.5.30729 and IE 7.0.5730.11

What is the expected output? What do you see instead?
Expected floating header, got:
Mozilla: Nothing
IE:  Header floated but was stuck to the left side of the screen, however,
the actual table was centered.  So basically the header was picking up the
correct offset.

What version of the product are you using? On what operating system?
I got the version from the download area. Which ever that is.  I can't seem
to find a version number in the code.

Used on Windows XP SP3.

Please provide any additional information below.

Original issue reported on code.google.com by josephjb...@gmail.com on 11 Dec 2009 at 7:06

GoogleCodeExporter commented 8 years ago
One correction to my issue.  Mozilla doesn't actually have nothing happen.  It 
turns
out when I scroll to the very bottom of the table, glued to the bottom of the 
window
is the "floating" header.

Original comment by josephjb...@gmail.com on 11 Dec 2009 at 7:49

GoogleCodeExporter commented 8 years ago
I figured out how to correct the left justified issue.  Just add the following 
after
line 34:
this.header.style.left=this.getXY(this.table_obj.getElementsByTagName('THEAD')[0
]).x;

I think that there's something going on with my DIV's that are pushing the THEAD
elements to the bottom of the page on Mozilla.  I tested the code on a blank 
HTML
page and it floated just fine.  

Original comment by josephjb...@gmail.com on 13 Dec 2009 at 9:43

GoogleCodeExporter commented 8 years ago
Please find attached an updated version of the table_floating_header.js script.

It has been modified to work with multiple tables, and the floating headers now
update the style.left field so that they are not glued to the left side of the 
screen.

I've also added many comments to make it more readable.

Kudos Keith for laying the initial groundwork!!!
-Joe

Original comment by josephjb...@gmail.com on 14 Dec 2009 at 9:11

Attachments:

GoogleCodeExporter commented 8 years ago
P.S.  Feel free to close this issue as a non-issue.  I was able to see that my 
DIV's
messing it up in Mozilla and I corrected the issue with style.left in the above 
code.

Thanks again!

-Joe

Original comment by josephjb...@gmail.com on 14 Dec 2009 at 9:12