php - JTable Uncaught TypeError: Cannot call method 'data' of undefined -
will please me wht error occur. jtable uncaught typeerror: cannot call method 'data' of undefined
ajax work got valid response doesnt fetch , shows in table
will please me. in other hand if script put on sepearate file how can call this?
<div id="church_list" style="width: 600px;"></div> <script type="text/javascript"> $(document).ready(function () { //prepare jtable $('#church_list').jtable({ title: 'church list', paging: true, pagesize: 20, sorting: true, defaultsorting: 'church_name asc', actions: { listaction: server_path+'/superadmin/?a=listchurch' }, fields: { church_name: { title: 'church name', width: '30%' }, church_city: { title: 'church city', width: '20%' }, church_state: { title: 'church state', width: '20%' }, payment_type: { title: 'payment type', width: '20%' }, training_cost: { title: 'training cost', width: '20%' } } }); //load person list server $('#church_list').jtable('load'); }); </script>
1) using older version of jquery - if using code comes downloads. had similar out of box , moved newer version , problem went away no other changes.
https://github.com/hikalkan/jtable/issues/953
2) not have id/primary key - i've been able add without making jquery changes , table render.
Comments
Post a Comment