[eluser]bl00dshooter[/eluser]
Just a off topic tip:
If you're using the JS function directly in the href, you're probably doing it wrong. Instead of that, use the normal codeigniter links. Then, with jQuery, select the onClick event of the <a>'s, do your ajax stuff using the attr jQuery function, and put return false or use prevent default jQuery function. By doing this, your pagination will still use ajax and normal page loads for who doesn't java JS enabled.