Skip to main content
Home
Docs
Contact
Store
Blog
Forum
Register
Log in
Home
Forum
How use DataTables with page content, without deployment to server?
To ensure you get the best experience, this website uses cookies.
Learn More
Accept
Session Expiry
For your security, your session will time out in
seconds...
How use DataTables with page content, without deployment to server?
Delete
Edit
0
viewed
741
edited
posted
besdriscoll
Title
Body
Hi, I've tried to use https://datatables.net/ with a table in a simplecontent page. I used Developer Tools to add the JS and CSS references https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js and https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css but then we need to initialise the thing with some JS like $(document).ready( function () { $('#my_table_id').DataTable(); } ); I tried adding this to the content inside a <script> element, but it wouldn't work (it seemed to be executing before jQuery had been loaded so I was getting "$ is not defined". I then tried uploading a small JS file with the script using File Manager so I can add the script reference using Developer Tools, but it wouldn't let me. In the end I deployed this JS file to my web server by other means, and it all worked fine, but that the whole exercise take way longer than I wanted, and probably lots of other site admins don't even have access to their servers. As a former mojoportal user I remember being able to write custom page script using something like the cloudscribe Developer Tools. Is that possible? Or is there some other way of achieving this? Thanks!
Preview
Tags
simple-content
Save
Cancel Edit
add a comment
add comment
Answers
Please enable javascript to use this feature.
Confirm Delete
×
Are you sure you want to delete the this Thread?
Insert Link
Upload a File
File uploads are not supported
Accepted file types: application/pdf,text/plain
Drop file here or click to browse device for file.
Browse Server
Insert Image
Drop file here or click to browse device for file.
Browse Server
Ask Question
Tags
azure
cloudscribe-core
custom-registration
file-manager
forms-and-surveys
forums
identityserver
membership
navigation
newsletter
pagination
pwakit
simple-content
talkabout-comments
themes