Bootstrap's Glyphicons not loaded
-
In the browser I encounter these errors:
GET http://localhost:4567/fonts/glyphicons-halflings-regular.woff2 net::ERR_ABORTED GET http://localhost:4567/fonts/glyphicons-halflings-regular.woff net::ERR_ABORTED GET http://localhost:4567/fonts/glyphicons-halflings-regular.ttf net::ERR_ABORTED
And therefore the NodeBB does not show up the appropriate Paging, Sorting etc. icons properly.. only the weird square boxes are displayed in my custom plugin HTML page.
How can I overcome this error?
In the browser's network tab, it reports the 404 (not found) error.
-
You can use font-awesome icons instead. They're just like glyphicons.
-
You might try checking this stackoverflow thread for help: https://stackoverflow.com/questions/20151921/jqgridfont-awesome-icons
-
You probably want to try these two:
http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/plugins/jQuery.jqGrid.fontAwesome4.js
http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/plugins/jQuery.jqGrid.checkboxFontAwesome4.js
Edit: and these CSS files
http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/plugins/jQuery.jqGrid.fontAwesome4.css
http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.6.0/plugins/jQuery.jqGrid.bootstrap-fixes.css
-
Also, there's this nice website: https://jspreadsheets.com/
You might try something that doesn't depend on jQuery, might make things easier.