|
|
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
|
|
|
|
|
You can take any element and specify attribute dir=rtl.
|
|
|
|
|
This is excellent code for a scrollable HTML table. When I use it in my code, I encounter a little problem -- the cells in tHead are no more lined up with the cells in tBody. I only use the vertical scroll bar. Can anyone help? Thanks.
brian qing
|
|
|
|
|
Check out the comment above: (here). It happens when you use cols in your <table>, or as I've seen, colspan in any of your cell tags in the first row. This happens because the author calculates all the widths off the first row. Either put in an empty and invisible first row <tr style="display:none">, or change out any colspans with empty cells.
|
|
|
|
|
Is there way to scroll the table in the example using scrollBy or scrollTo methods? Or maybe is there any other way to scroll this table? How can I by clicking button (Last) get to last record or button (First) get to first record?
|
|
|
|
|
Can any one give one sample code for "vertical & horizontal" scrolling both without heading scrolling.
|
|
|
|
|
IT is a very good code, but you can do it excepcionally, if you implemment sort columns, and posibility to use in two diferents table in same page. Sorry for my English
|
|
|
|
|
I'm generating rows in the table based on a dynamic sql statement.
If there are no in the table a runtime error occures in function fixTableWidth. I have added the following line in the makescrollableTable function to check on the length of rows collection in the tbl.tBodies object.
function makeScrollableTable(tbl,scrollFooter,height){
var c, pNode, hdr, ftr, wrapper, rect;
if (typeof tbl == 'string') tbl = document.getElementById(tbl);
pNode = tbl.parentNode;
if (tbl.tBodies[0].rows.length == 0) return; // there are no rows in the table so jump out now
fixTableWidth(tbl);
|
|
|
|
|
|
If you are using this code on a window that has been opened from another window you need to add on a constant value in the function scrollbarWidth(). If you do not then the horizontal scroll bar is always displayed because the vertical scrollbar appears inside the table.
If you add this to the function:
w = document.body.offsetWidth - document.body.clientLeft - document.body.clientWidth;
if(window.opener)
w += 16;
the scrollbars will work properly.
|
|
|
|
|
another option is to allow horizontal scrolling (but the headers must scroll with the columns)... i did one a while ago, maybe i'll post it.
|
|
|
|
|
please do post then I'll be able to incorporate it's funcionality into this script.
|
|
|
|
|
Yes please, post it !!!
I mean, to allow horizontal scrolling
|
|
|
|
|
Hi,
Can u send me the code for this problem with the example.
Thanks and regards
glady
|
|
|
|
|
It's really nice, but i try it with Netscape 7, it didn't work...
mic .
|
|
|
|
|
Yes, for now it's only for IE5.5+.
I'm still working on porting it to NS6+, the problem is that for some reason I can't make 'overflow' work with 'SPAN' in NS6/7.
Wagner
|
|
|
|
|
Hi,
> overflow
The overflowX/Y CSS properties are not CSS2 compliant, it's an IE feature proposed to the W3 but not approved, so Netscape doesn't support it. However you can use the CSS2 property: overflow. It works great with SPAN, DIV...
MSDN - HTML and DHTML Reference
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp
Hope it helps!
JM
Web: http://goa.ifrance.com
|
|
|
|
|
For NS6+/Mozilla, just set the overflow CSS2 property of your TBODY and optionally set the height of the table and forego any JavaScript.
With the above example, remove all javascript and change the tbody element to:
<tbody style="overflow:auto;height:100px;">
-rw
|
|
|
|
|
Almost every hit counter log I've ever seen shows that non-IE browsers makeup only 2-3% of traffic. That figure includes Netscape, Lunix, Apple, Mozilla, etc. The numbers may vary if the site is a sourcforge or something techie specific.
However for general business the cost of developer time, extra network traffic, etc. to support non-IE browsers is, financially a losing proposition.
Microsoft has a paradigm of: embrace, extend, prioritize. Many technologies and companies have fallen to this modus operandi – Java , HTML , Stacker, Deskview (QEMM), WordPerfect, Norton (defrag utils, check disk), Netscape, ___ (insert company here).
Right, wrong, or indifferent this is reality.
While I can fight the machine, the best gain maybe some level of personal satisfaction - of which there are better means. Your mileage may vary.
|
|
|
|
|
The question is not about wasting your time/losing productivity. It is about sticking to the CSS2 specs. Till recently I too used IE. There was an announcement that IE is vulnerable and I am using Mozilla ever since( it even has this tabbed navigation window features which I like very much).
If say atleast 20% of people convert to Mozilla users following a security alert, a business shouldnt lose that 20% of its customers because the javascript developer didn't care about crossbrowser compatibility.
|
|
|
|
|
Sticking to specifications isn't a business model unto itself. If a specification say do X but 95% of my customers do Y the specification is meaningless. Appealing to the 5% does a disservice to the 95%. If you need specification, this is the Developer Bible.
I’m trying to build an ROI for cross-browser support and I cannot find one. Citing specifications and exploits is somewhat irreverent. I don’t know that Microsoft has ever met a specification and they have had numerous security flaws, but that hasn’t stopped them. Mozilla is probably no better, they just are under a 1000x smaller microscope.
I’m not necessarily pro MS or a proselyte, but without a realistic ROI…
Looking forward to XAML is even more daunting for cross-browser - anything.
Bill
|
|
|
|