gbirke/jquery_pagination — Issue #20: link_to : '#' is a bad default
Author: rizen
Created: 2011-11-14 02:17:50+00:00
State: open

I'd like to make a recommendation that the default link_to be 'javascript:void(0)' rather than '#'. There are two reasons for this:

1) '#' actually causes the page to scroll

2) If you're using jQuery pagination with a URL fragment writer like jQuery BBQ then it overwrites the fragment with just '#', which can be difficult to debug to understand why that is happening.

If you decide not to do this (which I understand), then I'd recommend adding a note in the docs for users to set it to 'javascript:void(0)' when doing URL fragment rewriting.

Anyway, thanks for an amazing pagingator! Oh, and per your request at the bottom of the docs, I'll be using jQuery pagination on sirishouldsay.com and probably eventually on thegamecrafter.com.