WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: script not running correctly

for

From: Terzian, Sharon
Date: Jan 17, 2017 12:12PM


Hi

I downloaded/changed my code referencing the new library, but it's still not right, I added in line 2 and 3 of this, as I didn't have that part

$(document).ready(function() {
$('#adlit').DataTable( {
"lengthMenu": [[25, 50, 75, -1], [25, 50, 75, "All"]]
} );
} );


I moved the script out of the head and into the body

it's still showing most of the entries, clicking on the 25/50, etc doesn't matter, but when do scroll to the end of the page, it shows more pages and claims to only have 69 entries (pretty sure we have more!)

and the search isn't working properly


Honestly, I have no idea what's up with this, it's been running fine for years


I know it's reading the .css as I referenced that out and it changed the way it looked, but I get the impression that the other scripts are not running correctly, so it must be something where I referenced it wrong...


though I do remember this website as having the info on it, I also remember there was a 'do it yourself' where you put in how many columns, etc. and it generated code for you to bring over.


I'm playing 'live' with http://www.ric.edu/sherlockcenter/wwslistnew.html


thanks

sharon t.


From: WebAIM-Forum < <EMAIL REMOVED> > on behalf of Beranek, Nicholas < <EMAIL REMOVED> >
Sent: Tuesday, January 17, 2017 12:20 PM
To: WebAIM Discussion List
Subject: Re: [WebAIM] script not running correctly

Hi Sharon,

It appears that you're using jQuery DataTables. Perhaps you can download the latest update from their website to fix this issue: https://datatables.net/. If you need additional help debugging, feel free to reach out to me directly.
DataTables Table plug-in for jQuery<https://datatables.net/>
datatables.net
Integrating React and DataTables Boris Kozorovitzky has written a detailed post showing how DataTables can be used inside React.




Nick