GET http://localhost:8080/mxclientsystem/jquery.js?636837788916700147 net::ERR_ABORTED 404 (Not Found)

0
I am creating a custom widget and I need to use jquery data tables in the HTML of the custom widget. I added “  jquery.dataTables.min.js” in the “*\src\widgetName\lib”  folder (where in jquery-1.11.2.js exist already), then I included it in the array of “define” function of the widgetName.js file. I want to use functions from jquery datatable ie ”jquery.dataTables.min.js” file. but when I run the Mendix app which includes my custom widget I can see the “GET http://localhost:8080/mxclientsystem/jquery.js?636837788916700147 net::ERR_ABORTED 404 (Not Found)” error. And I can see blank screen in the browser. Please suggest a way to solve the issue.
asked
2 answers
1

The path to JQuery is wrong. Create an empty widget from the boilerplate and compare the references to jQuery. Mind that it is case-sensitive on the server, but not local.

You can not use minified code.

Replace the dots in the datatables file name with underscores except for the .js

answered
0

I recommend you look at the DataTables widget in the app store for inspiration and perhaps a head start on whatever you’re doing. There’s a demo project for DataTables in the app store too.

answered