Solved

datapagesize property is not working

Posted on 2008-10-27
6
551 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
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

696 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