WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: script not running correctly

for

Number of posts in this thread: 5 (In chronological order)

From: Terzian, Sharon
Date: Tue, Jan 17 2017 10:15AM
Subject: script not running correctly
No previous message | Next message →

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
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.

From: Beranek, Nicholas
Date: Tue, Jan 17 2017 10:20AM
Subject: Re: script not running correctly
← Previous message | Next message →

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.

Nick

From: Terzian, Sharon
Date: Tue, Jan 17 2017 10:22AM
Subject: Re: script not running correctly
← Previous message | Next message →

Thank you Nick, looks like what I'm looking for, I'll have to figure out exactly what I did to make it work to begin with!


Sharon T.


From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > on behalf of Beranek, Nicholas < = EMAIL ADDRESS 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

From: Terzian, Sharon
Date: Tue, Jan 17 2017 12:12PM
Subject: Re: script not running correctly
← Previous message | Next message →

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 ADDRESS REMOVED = > on behalf of Beranek, Nicholas < = EMAIL ADDRESS 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

From: Beranek, Nicholas
Date: Tue, Jan 17 2017 1:44PM
Subject: Re: script not running correctly
← Previous message | No next message

Interesting! I am responding offline, Sharon.