Direct Link to Sorted Tables
Posted by Sean Forman on August 13, 2009
Shane Victorino Batting Statistics and History - Baseball-Reference.com
People want to share what they find and we want them to as well. We have added an option to the list of options above all of the stats tables (not sitewide until we re-run the entire site) after CSV (comma-separated values) and PRE (pre-formatted text) called LINK. Clicking this updates the URL address bar (where you type www.baseball-reference.com) and brings up a popup that gives a url (the http: thingie) that will automatically guide another user to that particular table with the same sorting that you are presently looking at. So for example if you want to show a user that Victorino had a ton of infield hits last year. Sort on infield hits, click the LINK option and send them the link that shows up.
This happens with a bit of javascript, so you'll need that enabled (it probably already is) for it to work.
A couple of gotchas that we are still working out:
IE is a little funky in the url it presents in the popup, but if you use right click save shortcut it works.
The styling of the popup needs work and it should be shifted left if possible.
The use of the hash value puts you below the table header in Firefox, so the table header is not visible when sent via a direct link. This is not an issue in IE.