Page Source - With Ajax Functioning

<div class='paginate'>
        <div class="pagination"><span class="previous_page 
disabled">&#8592; Previous</span> <em class="current">1</em> <a 
rel="next" href="/tickets?page=2">2</a> <a href="/tickets?page=3">3</a> 
<a href="/tickets?page=4">4</a> <a href="/tickets?page=5">5</a> <a 
class="next_page" rel="next" href="/tickets?page=2">Next 
&#8594;</a></div>
</div>

It does appear that the previous button is disabled on page load, and 
the first page is not a link.

After changing the page number, :


Page Source - Page 2 - With Ajax

<div class='paginate'>
        <div class="pagination"><span class="previous_page 
disabled">&#8592; Previous</span> <em class="current">1</em> <a 
rel="next" href="/tickets?page=2">2</a> <a href="/tickets?page=3">3</a> 
<a href="/tickets?page=4">4</a> <a href="/tickets?page=5">5</a> <a 
class="next_page" rel="next" href="/tickets?page=2">Next 
&#8594;</a></div>
</div>

The first page link still shows the "current" class, the "Next" button 
stays linked to page #2, and the previous is disabled.

(Without Ajax, the will_paginate was fully functional, including the 
"Previous and Next" buttons)

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to