Countries and AJAX Pagination

Name Original Name Iso2 Iso3
sn Senegal Sénégal SN SEN
sg Singapore Singapore SG SGP
gs South Georgia South Georgia GS SGS
sh Saint Helena Saint Helena SH SHN
sj Svalbard And Jan Mayen Islands Svalbard og Jan Mayen SJ SJM
sb Solomon Islands Solomon Islands SB SLB
sl Sierra Leone Sierra Leone SL SLE
sv El Salvador El Salvador SV SLV
sm San Marino San Marino SM SMR
so Somalia Soomaaliya SO SOM
tc Turks And Caicos Islands Turks and Caicos Islands TC TCA
to Tonga Tonga TO TON
tm Turkmenistan Türkmenistan TM TKM
tk Tokelau Tokelau TK TKL
tj Tajikistan Тоҷикистон TJ TJK
th Thailand ประเทศไทย TH THA
tg Togo Togo TG TGO
td Chad Tchad TD TCD
st Sao Tome and Principe São Tomé e Príncipe ST STP
sr Suriname Suriname SR SUR

Page 6 of 13, showing 20 record(s) out of 250 total

Key Goals for the AJAX Pagination

  • Ajaxify all links in the "pagination-container" including pagination and sort links
  • As easy as possible
  • Fallback without AJAX (and JS) should be fully working
The fading is not necessary and only shows more clearly the beginning and end of the AJAX request. Note: Instead of the plugin one could also just use on() event and bind the pagination links to a click event.

How does it work

You only need
  • A "pagination-container" div and a separate ctp file of the "common" content for both AJAX and normal view
  • A few lines of custom (jQuery) JS on top
  • URL needs to be rewritten/updated to be in sync with current page - for a clean user experience

Send your feedback or bugreport!