IMO, if the ajax is implemented correctly the links will look like:
<a href="some_script.php?page=2" class="some_class">product one</a>
No js handlers mixed with HTML. The only hook will be onready and even that I would prefer to see it as separate function call at the end of the HTML code so you don't bloat the page with js code the actual content.
The framework should have a modular structure so if js is off the server generates the full page on a link click. Otherwise the ajax retrieves from the server just the HTML to update in the page.
This is totally transparent to spiders.