DISQUS

DISQUS Hello! ProDevTips is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

ProDevTips

Mainly tutorials and tips relating to web development with PHP, Javascript, jQuery and Ruby
Jump to original thread »
Author

jQuery tablesorter - sorting tables is easy

Started by Henrik · 10 months ago

This is a continuation of the scrolling and toggling tutorial. Some of it’s content is discussed here, without much explanation.
We have now introduced sorting a table with the jQuery tablesorter plugin and scrolling the main window upwards to compensate for toggling a div off. In ... Continue reading »

5 comments

  • Where's the demo?
  • Coming up, in due time I will post the finished result. I'm currently using the Google reader but it lacks some functionality which I want and since I'm doing my own feed reader as a web app I will put it up here when it's finished. I'm too lazy to setup unfinished versions, be patient and subscribe and you won't miss out on anything.
  • I'm curious about the difference you mention when using dimensions.
    The plugin dimensions, slightly improves jQuery's function 'offset()' which is used by 'position()', tough I didn't saw any difference for now (in the new demo). What I mentioned before, about the option 'offset' being $().height() / 2, should be -$().height()/2. Note the '-'. Might that be the difference ?. You could also play with the option 'margin'. Try setting it to true, maybe that fixes it.
    Lastly, on the last release, I allowed some overloading, and you can replace:
    $.scrollTo( '....', {speed:500}); for $.scrollTo( '....', 500 );

    Well... hope that helps ;)
    Cheers.
  • The difference is that when I used dimensions I get a small margin to the top of the window from the element scrolled to. This might or might not be a bug in dimensions or my specific usage or something. I'm probably stupid for relying on this quirk if it is a bug.

    Anyway with the prior version of scrollto I was correctly scrolled to the top of the window, I'll play around with the new version of your scrollto and see what I can do. I'll also get some demo up when I get the time.

    Thanks for the tips and the new version!
  • thanks i search for this code over all the web, and finnaly found it her.

Add New Comment

Returning? Login