Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Jquery Pagination

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Cozmika



Joined: 15 Aug 2007
Posts: 292
Location: Somewhere in my World

PostPosted: 30.05.2008 13:07    Post subject: Jquery Pagination Add user to your forum ignore list Reply with quote

http://plugins.jquery.com/project/pagination

Uopće ne kužim kaj trebam sve stavit u kod, može li malo pojašnjenje?

Pozz i tnx

_________________
www.cozmika.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger Twitter profile
Jabba



Joined: 10 Dec 2007
Posts: 326
Location: Rijeka

PostPosted: 30.05.2008 18:53    Post subject: Add user to your forum ignore list Reply with quote

Code:
<link rel="stylesheet" href="lib/jquery_pagination/pagination.css" />
        <script type="text/javascript" src="lib/jquery/jquery-compressed.js"></script>
        <script type="text/javascript" src="lib/jquery_pagination/jquery.pagination.js">
        </script>
        <script type="text/javascript">
           
         function pageselectCallback(page_id, jq){
                   $('#Searchresult').text("Showing search results "+((page_id*10)+1)+"-"+((page_id*10)+10));
                    }
         
            $(document).ready(function(){
            // Create pagination element
                $("#Pagination").pagination(300, {
               num_edge_entries: 2,
               num_display_entries: 8,
                    callback: pageselectCallback
                });
            
            // 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 ={ "&":"&amp;", "<":"&lt;", ">":"&gt;", '"':"&quot;"}
               $.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

_________________
{COMING SOON!} BenPixel | deviantART | behanceNET
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group