// Set handler for setting pagination options via form
$("#setoptions").click(function(){
var opt = {callback: pageselectCallback};
// Collect options from the text fields - the fields are named like their option counterparts
$("input[@type=text]").each(function(){
opt[this.name] = this.className.match(/numeric/)?parseInt(this.value):this.value;
});
// extract maxitems
var maxitems = opt.maxitems;
delete opt.maxitems;
// Avoid html injections in this demo
var htmlspecialchars ={ "&":"&", "<":"<", ">":">", '"':"""}
$.each(htmlspecialchars, function(k,v){
opt.prev_text = opt.prev_text.replace(k,v);
opt.next_text = opt.next_text.replace(k,v);
})
$("#Pagination").pagination(maxitems, opt);
});
});
</script>
ovo je iz onog primjera sa tog sajta pa bi ti trebalo raditi valjda
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum