jsp - page pagination jquery -
I have tried a jquery to score on the page page. The following example is showing:
& lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "quickpager.jquery.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; / * & Lt ;! [CDATA [* / $ (document) .ready (function () {$ ("ul.paging"). QuickPager ($); $ ("ul.paging2"). QuickPager ({Pager Location: "Both"}); }); / *]] & Gt; * / & Lt; / Script & gt; & Lt; Body & gt; & Lt; H1 & gt; Simple page demo page & lt; / H1> & Lt; P & gt; & Lt; A href = "http://www.geckonewmedia.com/blog/2009/8/14/jquery-youtube-playlist-plugin---youtubeplaylist" & gt; Back to blog post & lt; / A & gt; & Lt; / P & gt; & Lt; Code & gt; & Lt; Pre & gt; $ ("Ul.paging") quickPager () .; & Lt; / Pre & gt; & Lt; / Code & gt; & Lt; Ul class = "paging" & gt; & Lt; Li & gt; 1 & lt; / Li & gt; & Lt; Li & gt; 2 & lt; / Li & gt; & Lt; Li & gt; 3 & lt; / Li & gt; & Lt; Li & gt; 4 & lt; / Li & gt; & Lt; Li & gt; 5 & lt; / Li & gt; & Lt; Li & gt; 6 & lt; / Li & gt; & Lt; Li & gt; 7 & lt; / Li & gt; & Lt; Li & gt; 8 & lt; / Li & gt; & Lt; Li & gt; 9 & lt; / Li & gt; & Lt; Li & gt; 10 & lt; / Li & gt; & Lt; Li & gt; 11 & lt; / Li & gt; & Lt; Li & gt; 12 & lt; / Li & gt; & Lt; Li & gt; 13 & lt; / Li & gt; & Lt; Li & gt; 14 & lt; / Li & gt; & Lt; Li & gt; 15 & lt; / Li & gt; & Lt; / Ul & gt;
This is showing every 10records in a page: # refrence: http://www.geckonewmedia.com/blog/2009/8/20/simplepager--- Jquery-paging-plugin - updated
I used it, but tried to get values from DB rather than hard coding, but not pointing to the page, only Without 20 records, the endorsement has been retrieved. Can I do this type of code?
& lt;% while (rs.next ()) {%> & Lt; Ul class = "paging" & gt; & Lt; Li & gt; & Lt;% = rs.getString ("customer_name")%> & Lt; / Li & gt; & Lt; / Ul & gt; & Lt;%} rs.close (); & Gt%;
It should be done this way ....
& lt; Ul class = "paging" & gt; & Lt;% while (rsnext ()) {%> & Lt; Li & gt; & Lt;% = rs.getString ("customer_name")%> & Lt; / Li & gt; & Lt;%} rs.close (); & Gt%; & Lt; / Ul & gt;
Comments
Post a Comment