Link to home
Start Free TrialLog in
Avatar of E=mc2
E=mc2Flag for Canada

asked on

HTML file with JQuery to be able to choose more than 100 entries

I am using a Powershell script to pull data from a CSV file to save it to an .html file.

In my script it is using the following below.
It produces a drop down with Show ... Entries.. and I can choose from 10, 25,50,100.
I would like it to show all entries if possible and not limit me to 100.
Or at least for me to specific how many entries I want to see.

Since the next item it lists is a Search box, where I would like to search for specific text but not limited to 100 entries..

Is this possible?


<script charset="utf8" type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js"></script>
<script charset="utf8" type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.3/jquery.dataTables.min.js"></script>
<script type="text/javascript">$(document).ready(function () {$('.enhancedhtml-dynamic-table').dataTable();} );</script>

Open in new window

Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

// Note 1: you no longer need to specify the language
<script>
// Note 2: shorthand version of $(document).ready(function
$(function () {
   // Note 3: add paging: false when you create the table
   $('.enhancedhtml-dynamic-table').dataTable({
      paging: false
   });
})
</script>

Open in new window

Avatar of E=mc2

ASKER

Thanks very much Julian
Sorry I don't have much experience with this jquery
How would you rewrite this script in its entirety?
Does the solution you provide all me to have a drop down which will show 'all' lines?
Avatar of E=mc2

ASKER

Julian I tried replacing the last line of script with yours but it's still only showing an option for up to 100 and not all..
Do I need to modify the script further?
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial