Part 04 - 03 - Using the jQuery DataTable Plugin Spring MVC

preview_player
Показать описание
Hello friends in this video I have shown how to get the jquery datatable plugin and add it into your project discussing along the way few of the properties of it and when to use it.
Рекомендации по теме
Комментарии
Автор

Hi bro keep rocking
I have a doubt
In your previous video you added a dynamic id for each of the product and that id will be handled by JavaScript myapp.js there the logic is written for active menu
Example Id= television it's ok it is getting activated when it comes to id= induction stove this is not getting activated when I debug I come to know the become induction%stove thus when user clicks this product it is not getting activated and I created a local JavaScript variable and tried assign for the HTML ID but it's not working any suggestions for the same

byjuv.s
Автор

I have always disliked Bolliwood movies, nowdays I watch a lot of indian tutorials on Youtube)))

nicholaswhite
Автор

Console.log('message') don't work on chrome console. i didnt see any message. clean tomcat and chrome but didnt work. No table, no message.
- i have copied from zip->jquery.dataTable.js to webapp/assets/js
-i have edited page.jsp
<!--DataTable Plugin -->
<script
-i have edited listproducts.jsp
<div class="row">
<div class="col-xs-12">

<table id="productListTable" class="table table-striped table-bordered ">

<thead>
<tr>
<th>ID</th>
<th>Name</th>

</tr>
</thead>

</table>

</div>
</div>
-i have edited myapp.js
// code for jquery datatable
// create dataset
var products = [ [ '1', 'ABC' ], [ '2', 'DEF' ], [ '3', 'GHI' ],
[ '4', 'JKL' ], [ '5', 'MNO' ], [ '6', 'PRS' ], [ '7', 'TUW' ],
[ '8', 'XYZ' ] ];

var $table = $('#productListTable');

if($table.lenght){
console.log("table mesagge");
$table.DataTable({
data:products
});
}
- clean tomcat and chorome
-run tomcat but no dataset no console message. its just looks only table header.

caglar_ylmz
Автор

One spelling mistake and I ruined my life.

vksk
Автор

There is literally nothing about Spring MVC in this video. The title is misleading.

ILyaCyclone
Автор

Hey brother, dont' breathe on mic.

vksk
visit shbcf.ru