Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

266
Vistas
twbspagination problem in displaying next set of pages

I am new to JavaScript and I face some issue in pagination. I am working on a project and I wish to display the pages in a set of 7 and it'll go to the next set when the 'Next' is clicked. For example, 1-7, 8-14,... It works well in the first 4 pages. First Set However, when it's at page 5, the '5' is displayed in the middle and the whole thing is shifted to the left by 1. Problem starts from page 5. Also, I wish the page 8, 15,... will be at the beginning of the successive set, not at the middle.

Below is a part of the code.

Pls: I am using twbspagination plugin.

...
$('#page_navigation').removeData("twbs-pagination");
$('#page_navigation').twbsPagination({
totalPages: 32,
visiblePages: 7,
first: '',
last: '',
prev: 'Prev',
pageClass: 'page-item',
activeClass: 'active',
startPage: 1,
onPageClick: function(event, page){
  ...// navigate model to display images
 
  },
})

I greatly appreciate your kind assistance! Thank you!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda