473,378 Members | 1,470 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,378 software developers and data experts.

Limit in jQuery/DOM/Browser of 65540

I am looking at jQuery as an alternative to an ASP.net Gridview for use in paging data to reduce database calls (I looked into ObjectDataSources as an alternative, but it seemed to take longer than the default paging due to the need to run the Row_Number function on each row before selecting the rows needed).

I am using the plugin found here: http://plugins.jquery.com/project/pagination

The dataset I am trying to load has about 198k records.
I am placing the rows into a table with display:none and cloning them into the SearchResult table.

If I only use the first 65,540 rows, it works like a dream, but if I try to use 65,541 rows, it does not work and does not report any errors.

Since this number is just slightly above the 16 bit limit, it seems unlikely that a variable limit is responsible, but then again, it is so close that it makes me wonder. Perhaps a browser limitation? I am using IE and Chrome with the same results.

Here is the javascript I am using to display different pages, for the plugin script, follow the link above.
Expand|Select|Wrap|Line Numbers
  1.     <script>
  2.  
  3.         function pageselectCallback(page_index, jq) {
  4.             $('#Searchresult').empty();
  5.             for(i=page_index * 500;i<(page_index * 500)+500;i++)
  6.             {
  7.                 var new_content = jQuery('#row_' + i).clone();
  8.                 $('#Searchresult').append(new_content);
  9.             }
  10.             return true;
  11.         }
  12.  
  13.         function initPagination() {
  14.             // count entries inside the hidden content
  15.             var num_entries = jQuery('#hiddenContent tr').length;
  16.             // Create content inside pagination element
  17.             $("#Pagination").pagination(num_entries, {
  18.                 callback: pageselectCallback,
  19.                 items_per_page: 500,
  20.                 load_first_page: true
  21.             });
  22.         }
  23.  
  24.         // When document is ready, initialize pagination
  25.         $(document).ready(function() {
  26.             initPagination();
  27.         });
  28.  
  29.  
  30.     </script>
  31.  
Thanks in advance for any help you may be able to provide.
Jun 23 '11 #1
0 1146

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

Similar topics

11
by: hawkon | last post by:
Hi all, I have an important question to ask about how to trap events when the user close the browser window. I'm a ASP programmer and I have s MSSQL database with a user table where I'm able to...
2
by: | last post by:
I am working on an ASP.NET application that seems to be limiting browser histories to only one entry. I am not using SmartNavigation on any of the pages, and that is the only thing that I have...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
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"))
2
by: thj | last post by:
Hi. I've got this form that I'm trying to validate: <form id="periodForm" action="" method="post"> <p> Periode: <input id="startDate" name="startDate" type="text" size="7" value="<%=...
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...
2
by: souporpower | last post by:
Hi All I am trying to print some HTML using JQUERY. I am posting the code. I don't see the alert. It seems as though the function is not registered when the document is loaded. Can someone...
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...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
0
ilya Kraft
by: ilya Kraft | last post by:
Hello, I faced following problem. I have a div on a page which echoes out information from database. I want that div to refresh every 2 seconds, I found jQuery function that does this. but the...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.