[jQuery] <base> tag breaks jquery pagination
I have jQuery pagination working in my search results, however, I hit a snag
when trying to view the next page's results, because of my <base url>
integrating this into my page and the pagination is showing up, but the
links are broken because I am using a <base> tag. For example:
Normally the pagination links (previous, 1,2,3, next) to this:
search-results.php#
But with the base url implemented on the page, it looks links to this:
http://localhost/project/#
So now when I click the pagination to get the next page or results, it
changes the results, then a second later, the page redirects to my root
directory because of the <base> tag.
Can I modify the javascript? How can I fix this?
Here is a sample of the jQuery pagination script:
jQuery.fn.pagination = function(maxentries, opts){
opts = jQuery.extend({
items_per_page:10,
num_display_entries:10,
current_page:0,
num_edge_entries:0,
link_to:"#", /* can i inject something here? */
prev_text:"Prev",
next_text:"Next",
ellipse_text:"...",
prev_show_always:true,
next_show_always:true,
callback:function(){return false;}
},opts||{});
Here is the full jQuery pagination script:
http://d-scribe.de/webtools/jquery-pagination/lib/jquery_pagination/jquery.pagination.js
Here is a working version of the pagination script:
http://d-scribe.de/webtools/jquery-pagination/demo.htm
--
View this message in context: http://www.nabble.com/%3Cbase%3E-tag-breaks-jquery-pagination-tp21318362s27240p21318362.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.