|
first : THANKS You
the file contains:
"// To enable the sorting, simply include this javascript source file and
// add an onLoad event to the like below:
//
// "
¿This code will sort the columns?
sorry, i don't know english
|
|
|
|
|
Can you please change your scrip so it will support Firefox.
I love the script, it works great! I'll be happy to contribute financially - about $100.
|
|
|
|
|
For mozilla support, add style="overflow: auto; height:380px;" in e.g
Change height accordingly.
|
|
|
|
|
This is working great in Explorer for me, but in Mozilla I'm not getting a scrollbar to appear - has anyone else come across this problem - and if so, did they manage to solve it?
|
|
|
|
|
For mozila support, add
style="overflow: auto; height:380px;" in the
|
|
|
|
|
The problem i was getting was using this in page showing in a frame.
also, i read another post solving a problem about this not working in an opened window, so here it is the changed function scrollbarWidth():
----------------------------------------------------------------------
function scrollbarWidth(){
...
if (document.body.currentStyle.overflowY == 'visible' || document.body.currentStyle.overflowY == 'scroll'){
w = document.body.offsetWidth - document.body.clientLeft - document.body.clientWidth;
var quirksMode = (top == self);
if((window.opener)|| !quirksMode)
w += 16;
}else
...
----------------------------------------------------------------------
hope it helps
anyway, great job Wagner !!!! thankx!
Boneripper
Boneripper
|
|
|
|
|
Thanks! I was using IFrame and had the same issue. Thanks for sharing.
|
|
|
|
|
The scrollable table works great! Thank you so much.
My only problem is that the page resizing is not working correctly -- the table resizes smaller even if I resize the page bigger. Am I supposed to implement the onResizeHandler? Has anyone done this already?
|
|
|
|
|
Hi, I have a page with a complex table structure used to present the page with graphical elements, when I put your code into it using images in my table elements, I can only get the header and the footer elements to display, but not the images in the table body. I even pasted your sample demo page table into my page and have the same results, no data only footers and headers. You can email me and I can give you a url to see the page in action if that will help. I presume it is something else in the page that is inhibiting the behavior
Peter Black
pblack@taracom.com
|
|
|
|
|
I just found the solution, it is much simpler to dump the entire jscript code, and just wrap your table with the following, and it works perfectly for vertical scrollbars. I haven't yet tried it with horizontal but it should work if you set the width value properly. Here is the code
Somedata or images here | Somedata or images here | Somedata or images here | Somedata or images here | Somedata or images here |
Thanks for the code anyway, it is always interesting to see how people find solutions to problems.
Peter Black
pblack@taracom.com
|
|
|
|
|
hi,
i want a horizantal scrollbar as well as vertical scrollbar in scrollable table.
Amita
|
|
|
|
|
|
Hi,
How do I disable horizontal scroll and only allow vertical scroll? Also I get a blank space between the thead and the tbody, any clues on how to get rid of that?
Thanks in advance,
-Akshay
|
|
|
|
|
That was the same thing I was looking for, i can't find it anywere
|
|
|
|
|
for this question
>> How do I disable horizontal scroll and only allow vertical scroll
I think you should check this code
container[c].style.width = tbl.clientWidth + 2 * tbl.clientLeft + scrollbarWidth();
with this code, the width of this container is OK for your table.
If the horizontal scroll is showed, then because of somes reasons, for exemple, margin of you table > 0
hope it helps
Hai NGUYEN
|
|
|
|
|
how does one print just that table?
|
|
|
|
|
I plan to re-render the page in "printable" format by simply leaving on the onload call.
--mke
|
|
|
|
|
This is a great script! I was just wondering why my column headings are not aligned properly with my table data. I'm not using the 'width' property but is anything else causing this weirdness?
TIA,
Andy
|
|
|
|
|
Nevermind... It works fine after removing 'COLS' from
Thanks again for this great code!
Andy
|
|
|
|
|
It does not work if you have one or more cells in table header with colspan.
One way to avoid is to add a blank row, now border, transparent background at the top of the table header.
Brajagopal Bhar
|
|
|
|
|
|
I have found a real bug in this scrollable table, if you put any input's inside the table, then the data is doubled, with the inial value and the value you entered in, if you can fix that it would be great.
|
|
|
|
|
I had the same problem, but it appears only to happen (for me) if i have input fields in the footer. Haven't tested the header yet. Otherwise, this bit of code worked really well for me, absolutely love it. Thanks!
|
|
|
|
|
Hi. I have populated my table dynamically from a database. This has caused the scrollable portion of the table to appear with blank lines at the top of the table and the user has to scroll down to see the first table entry.
Can you tell me if there is any way to get the table to display correctly?
|
|
|
|
|
Hi,
I implemented something like this a different way. It was for a very wide table (wider than the screen width); the data included many rows.
Unfortunately, to scroll the table data a user needed to get to the scrollbar on the right. Do you know of any way to put the scrollbar on the left side of the table, or both on the left and right? I couldn't find a way to do that.
Thanks for any help you may be able to provide - Bill C
Bill C
|
|
|
|