This topic contains 7 replies, has 3 voices, and was last updated by Sean Sean 1 year, 4 months ago.

AngulaJS admin3 Ajax Datatables.


  • admvia44
    Participant

    Posts: 5
    Member Reply #1211

    I´m trying to use the sample Ajax datatable but it´s not working.

    It only works on HTML version.

    Same problem on your site.

    Thanks

    http://www.keenthemes.com/preview/metronic/theme/templates/admin3/angularjs/#/datatables/ajax.html

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #1231

    Hi :),

    Thanks for informing this issue.

    Please note in the latest v3.9.0 we updated the bootstrap datepicker plugin and seems in the latest version the plugin has different file naming. To fix it you will need to just fix the path in app.js:

    // Ajax Datetables

    .state(‘datatablesAjax’, {

    url: “/datatables/ajax.html”,

    templateUrl: “views/datatables/ajax.html”,

    data: {pageTitle: ‘Ajax Datatables’, pageSubTitle: ‘ajax datatables samples’},

    controller: “GeneralPageController”,

    resolve: {

    deps: [‘$ocLazyLoad’, function($ocLazyLoad) {

    return $ocLazyLoad.load({

    name: ‘MetronicApp’,

    insertBefore: ‘#ng_load_plugins_before’, // load the above css files before ‘#ng_load_plugins_before’

    files: [

    ‘../../../assets/global/plugins/select2/select2.css’,

    ‘../../../assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css’,

    ‘../../../assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css’,

    ‘../../../assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js’,

    ‘../../../assets/global/plugins/select2/select2.min.js’,

    ‘../../../assets/global/plugins/datatables/all.min.js’,

    ‘../../../assets/global/scripts/datatable.js’,

    ‘js/scripts/table-ajax.js’,

    ‘js/controllers/GeneralPageController.js’

    ]

    });

    }]

    }

    })

    Thanks.

     


    admvia44
    Participant

    Posts: 5
    Member Reply #1359

    Thank you very much!!

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #1384

    You are welcome 🙂


    Griswald963
    Participant

    Posts: 6
    Member Reply #10093

    Currently, I am using admin3 Ajax Datatables.

    When I tried to open Ajax Datatable, Chrome console shows error like below.

     

    POST http://localhost:3000/demo/table_ajax.php 404 (Not found)

     

    and page error messages occur below the Order Listing

     

    Could not complete request. Please check your internet connection

     

    And no data displayed on the table. table_ajax.php file exists in the demo directory.

    What’s the matter with this?

    Hope hear from you soon.

    • This reply was modified 1 year, 4 months ago by  Griswald963.
    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #10104

    Hi,

    Please check your JS code that initializes the datatable and make sure the server side script path is stated properly.

    Thanks.


    Griswald963
    Participant

    Posts: 6
    Member Reply #10106

    Hi, thanks for your reply.

    I’ve just extract zipped theme package and tried it again.

    But still it shows table_ajax.php not found.

    I did not change anything.

    Thanks.

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #10109

    Hi,

    Are you running the theme from a web server ? Please note that ajax features are not supported in offline mode. The server side data must be generated by web server and php script.

    Thanks.

     

You must be logged in to reply to this topic.