Solved

datapagesize property is not working

Posted on 2008-10-27
6
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javascript and jquery question 4 44
javascript delete path 7 41
Woo-commerce gallery not working properly 12 32
Sticking text to shapes in Raphael.js 6 35
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

731 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