WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: script not running correctly

for

From: Beranek, Nicholas
Date: Jan 17, 2017 1:44PM


Interesting! I am responding offline, Sharon.

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Terzian, Sharon
Sent: Tuesday, January 17, 2017 2:13 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] script not running correctly

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

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Terzian, Sharon
Sent: Tuesday, January 17, 2017 12:15 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [WebAIM] script not running correctly

Hi

I got this script a few years ago from someone on this forum. It allows a search that's complaint.


The issue is that though I have the default set to 10 to display (overall display, not the search part), it's suddenly displaying everything on the list, not 10 and having a menu below for the next page.


http://www.ric.edu/sherlockcenter/wwslist.html

Paul V. Sherlock Center on Disabilities - ric.edu<http://www.ric.edu/sherlockcenter/wwslist.html>;
www.ric.edu<;http://www.ric.edu>;
Adapted Literature and Lessons Adapted Lessons | Create Your Own | Resource Library Home Adapted Literature - Now Fully Searchable! Below is a list of Adapted ...





any help appreciated, I have no idea where to look especially since it's been so long since I set it up (and I'm so bad at scripting!!!)


thank,

sharon T.


The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.