When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort_desc.png```,```sort_asc.png``` and other images not found error. That's because there is no static images downloaded with ```js``` and ```css``` file. To fix the problem, you can download these images from Datables official github and place them at your static folder on your server. Link ```https://github.com/DataTables/DataTables/tree/master/media/images``` After put these images on the server, you may open your downloaded ```datatables.min.css``` file and update the following section: ## Original version: ```css .sorting{background-image:url("/DataTables-1.11.5/images/sort_both.png")} .sorting_asc{background-image:url("/DataTables-1.11.5/images/sort_asc.png")} .sorting_desc{background-image:url("/DataTables-1.11.5/images/sort_desc.png")} .sorting_asc_disabled{background-image:url("/DataTables-1.11.5/images/sort_asc_disabled.png")} ``` ## After update: ```css .sorting{background-image:url("/static/img/sort_both.png")} .sorting_asc{background-image:url("/static/img/sort_asc.png")} .sorting_desc{background-image:url("/static/img/sort_desc.png")} .sorting_asc_disabled{background-image:url("/static/img/sort_asc_disabled.png")} ```
Datatable static image not found on the server
Subscribe to:
Post Comments (Atom)
Datatable static image not found on the server
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...
-
1. locate where is suexec by running the following: whereis suexec return suexec: /usr/sbin/suexec /usr/share/man/man8/suexec.8.gz 2. rename...
-
Case One The following procedure is good if you have admin account for Internal workspace. 1. Log into Internal workspace with admin accou...
-
Step 1. Install Oracle XE 11g 1. Download Oracle XE (oracle-xe-11.2.0-1.0.x86_64.rpm.zip) from Oracle official website. You need an accoun...
No comments:
Post a Comment