Solved

datapagesize property is not working

Posted on 2008-10-27
6
540 Views
Last Modified: 2012-05-05
The following code will not increase the number of records in the table staffTable:
The table ID is "staffTable" with an attribute of datapagesize="3". Trying to increase the size of the table to include all the records in a table. The functions staffTable.firstPage() works, but not setting the property datapagesize=999999.

 <p>
        <button onclick="staffTable.datapagesize=999999;
                           staffTable.firstPage()">Show All</button>
        <button onclick="staffTable.datapagesize=3">Show Pages</button>
</p>
0
Comment
Question by:jbotts
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:bluV11t
ID: 22819648
Could you try alert dataPageSize first? BTW do you get a JavaScript error?

<button onclick="alert(staffTable.dataPageSize); staffTable.datapagesize=999999;
                           staffTable.firstPage()">Show All</button>
0
 
LVL 7

Accepted Solution

by:
bluV11t earned 250 total points
ID: 22819650
Try changing datapagesize to dataPageSize...
0
 

Author Comment

by:jbotts
ID: 22823559
bluV11t:
Neither of the suggestions worked.
jbotts
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 7

Expert Comment

by:bluV11t
ID: 22843712
How many records are there? Have you tried setting it to f.ex. 20? Maybe you cannot set it higher than max number of records...
0
 
LVL 7

Expert Comment

by:bluV11t
ID: 22843825
You could also try

document.getElementById('staffTable').datapagesize=999;
0
 

Author Closing Comment

by:jbotts
ID: 31510617
Actually I tried this again and it worked.
Thanks,
Jim Botts
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now