jquery pagination

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    jquery pagination

    using asp code with jquery pagination is it possible i can get the result next & previous page with number of pages ?

    asp code is
    Code:
    <%
    
    Dim arrPhotoNames, I
    
    arrPhotoNames = Array("09922491", "09999118", "10047069", "19079112", _
                          "19124507", "19151069", "19297986", "22474694", _
                          "22475208", "24231229", "30423914", "31931795")
    
    %>
    <table border="1" cellspacing="0"><tr>
    <%
        For I = LBound(arrPhotoNames) To UBound(arrPhotoNames)
    %>
    <td valign="top" ><img src="photos/<%= arrPhotoNames(I) %>.jpg"><br></td>
    <%
            If I Mod 2 = 1 Then
                Response.Write "</tr><tr>" & vbCrLf
            End If        
        Next 'I
    %>
    </tr></table>
    RESULT HTML LIKE THIS
    Code:
    <table border="1" cellspacing="0">
    <tr>
    <td><img src="photos/09922491.jpg" ></td>
    <td><img src="photos/09999118.jpg" ></td></tr><tr>
    <td><img src="photos/10047069.jpg" ></td>
    <td><img src="photos/19079112.jpg" ></td></tr><tr>
    <td><img src="photos/19124507.jpg" ></td>
    <td><img src="photos/19151069.jpg" ></td></tr><tr>
    <td><img src="photos/19297986.jpg" ></td>
    <td><img src="photos/22474694.jpg" ></td></tr><tr>
    <td><img src="photos/22475208.jpg" ></td>
    <td><img src="photos/24231229.jpg" ></td></tr><tr>
    <td><img src="photos/30423914.jpg" ></td>
    <td><img src="photos/31931795.jpg" ></td></tr><tr>
    </tr>
    </table>
  • danp129
    Recognized Expert Contributor
    • Jul 2006
    • 323

    #2
    jQuery questions would be better off in the javascript forum.

    I have not used jQuery pagination, I assume it is this plugin: http://plugins.jquery.com/project/jquery-pagination

    The demo for that plugin uses a DIV with an ID and inside the DIV he uses Paragraphs (P). So... I would ditch the table and use Divs and Paragraphs like the examples.

    I would view the source on one of the examples linked from that page, save it and modify it to work the way you want it with pictures. After it behaves the way you want, add the code to build the html that needs to be dynamic.

    Comment

    Working...