As some background, I have tended to keep away from JavaScript in the past. The same holds true today, but at a lesser degree. The primary reason was cross browser compatibility and the fact that sometimes the JavaScript can get quite complex when you start to include all of the variations for past browsers and future ones.
One thing that has been winning me over is the JavaScript tools that are focused on prototype.js and the use of AJax. It also helps that the advanced features in CSS 2.0 and what will be coming with CSS 3.0 specifications will help reduce the need for scripting.
I have continuously been on the hunt for a good JavaScript based code set that allows table scrolling. I found a bunch of bad stuff out there. I found a few good ones too. One of which actually does work with AJax. I am wanting to post reviews and links to these tools for they are hard to find, and I think the information will be beneficial. The tool that works with AJax utilizes prototype.js which is great, but I have some enhancements that I am working on that will be increasing the performance by about a factor of 10 or greater (I think. Need to benchmark.) when dealing with rowsets greater than 1000 when the will be needing to deal with 40,000+, probably up to 100,000 rows... I know... I don't write the specs, just follow them :-(
For now I'll provide some links...
References:
http://www.sergiopereira.com/articles/prototype.js.html
- Excellent independent documentation on prototype.js!
- Using version 1.5.1
http://www.tetlaw.id.au/view/blog/table-sorting-with-prototype/
- Excellent! Uses prototype.js and the code is very clean and readable.
- Works with AJax
- Sluggish with 1000+ rows. I have some fixes in the pipeline that once I get them tested I'll see about getting the code changes adopted.
- Using version 1.0 with Prototype version 1.5.1 instead of 1.5.0_r
- Works great with IE5, IE6, IE7, FireFox v2 (Windows and Mac OSx), and Safari
- Low impact. Just call the function with passing the ID for your table and it does the rest.
- Problem? It does not work with AJax. Works great with static HTML tables. Honestly, the code is a bit cluttered since it does not utilize prototype.js so it has to handle so much more internally.
- Another problem appears to be that it was last updated in 2004.
- Sad, it has strong potential if it was not for the lack of AJax support.
No comments:
Post a Comment