473,382 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

jquery pagination

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

asp code is
Expand|Select|Wrap|Line Numbers
  1. <%
  2.  
  3. Dim arrPhotoNames, I
  4.  
  5. arrPhotoNames = Array("09922491", "09999118", "10047069", "19079112", _
  6.                       "19124507", "19151069", "19297986", "22474694", _
  7.                       "22475208", "24231229", "30423914", "31931795")
  8.  
  9. %>
  10. <table border="1" cellspacing="0"><tr>
  11. <%
  12.     For I = LBound(arrPhotoNames) To UBound(arrPhotoNames)
  13. %>
  14. <td valign="top" ><img src="photos/<%= arrPhotoNames(I) %>.jpg"><br></td>
  15. <%
  16.         If I Mod 2 = 1 Then
  17.             Response.Write "</tr><tr>" & vbCrLf
  18.         End If        
  19.     Next 'I
  20. %>
  21. </tr></table>
  22.  
RESULT HTML LIKE THIS
Expand|Select|Wrap|Line Numbers
  1. <table border="1" cellspacing="0">
  2. <tr>
  3. <td><img src="photos/09922491.jpg" ></td>
  4. <td><img src="photos/09999118.jpg" ></td></tr><tr>
  5. <td><img src="photos/10047069.jpg" ></td>
  6. <td><img src="photos/19079112.jpg" ></td></tr><tr>
  7. <td><img src="photos/19124507.jpg" ></td>
  8. <td><img src="photos/19151069.jpg" ></td></tr><tr>
  9. <td><img src="photos/19297986.jpg" ></td>
  10. <td><img src="photos/22474694.jpg" ></td></tr><tr>
  11. <td><img src="photos/22475208.jpg" ></td>
  12. <td><img src="photos/24231229.jpg" ></td></tr><tr>
  13. <td><img src="photos/30423914.jpg" ></td>
  14. <td><img src="photos/31931795.jpg" ></td></tr><tr>
  15. </tr>
  16. </table>
  17.  
Jun 16 '10 #1
1 3463
danp129
323 Expert 256MB
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.
Oct 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: shalini jain | last post by:
Hi, I want to know how can we do pagination using XSL. There are number of tutorials available on pagination using PHP but nothing with XSL. i am really stuck with my code. Below is the code that...
1
by: DuaneMoraes | last post by:
A new book on jQuery, the powerful JavaScript library, has been announced by Packt In Learning jQuery, Karl Swedberg and Jonathan Chaffer, creators of the popular jQuery learning resource...
1
by: mikeh3275 | last post by:
I'm new to developing in jQuery, so I'm probably doing this wrong. I'm loading a form into a modal dialog box and I'm trying to assign a click event to the button in the form, but I can't seem to...
20
by: Aaron Gray | last post by:
There does not seem too be anyway to test if two jQuery references are the same element. Given :- ... <div id="1"></div .... Then :- alert( $("#1") == $("#1"))
26
by: RobG | last post by:
Do some of the regulars here need to re-think their (sometimes strident) opposition to libraries? Both Microsoft and Nokia have announced support for jQuery. It seems to have gained quite a bit...
16
by: gnawz | last post by:
I have a pagination function I am using in a file called functions.php as below<? //Pagination functions function getPagingQuery($sql, $itemPerPage = 10) { if (isset($_GET) && (int)$_GET > 0) ...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
25
pradeepjain
by: pradeepjain | last post by:
<html> <head> <script src="jquery.js" type="text/javascript"></script> <script src="jquery.rating.js" type="text/javascript" language="javascript"></script> <link...
1
by: spyderfusion02 | last post by:
Hey, I'm trying to get my pagination numbers to update when the user uses the filter options at the side. Here is what I'm talking about: When you click the color - Yellow - you should only get 1...
1
by: spyderfusion02 | last post by:
Hi there, I am trying to get the class names dynamically for the script below. I am using the Pagination plugin. I have different class names that are created through PHP so need to get them using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.