HTML foult while using aaSorting
HTML foult while using aaSorting
martinmeijer
Posts: 1Questions: 0Answers: 0
Hello,
After loading of my table data i whant to sort the data by the name
I'm using the little code
$('#menuItemTable').dataTable( {"aaSorting": [[2, "asc"]]} );
But if use this its effecting the toolbar with Search and Show Entries
http://martin.eenwittekerst.nl/admin/ is the link, i can add youre ipaddress to the script please contact me therefor
It looks like a bug
My HTML page is
[code]
<!-- Add needed JS for this page -->
<!-- Here goes the content. -->
<!-- Add needed Boxes for this page -->
<?PHP
include("./boxes/menuBox.php");
?>
Menu beheer
Nieuw Menu Item
Menu Item Naam
Menu Item Alt
Submenu?
Submenu van
<?PHP
// Get all the menu items
$cMenu = new menu;
echo $cMenu->showMenuItemsTable();
?>
<!-- End of .content -->
<!-- End of .box -->
<!-- End of .grid_12 -->
<!-- End of #content -->
[/code]
And i use in JS the next code
[code]
$(document).ready(function()
{
// Sort the table on Menu Item Name, NOTE: It's messing up the bar with Search and entries!!
$('#menuItemTable').dataTable( {"aaSorting": [[2, "asc"]]} );
[/code]
});
After loading of my table data i whant to sort the data by the name
I'm using the little code
$('#menuItemTable').dataTable( {"aaSorting": [[2, "asc"]]} );
But if use this its effecting the toolbar with Search and Show Entries
http://martin.eenwittekerst.nl/admin/ is the link, i can add youre ipaddress to the script please contact me therefor
It looks like a bug
My HTML page is
[code]
<!-- Add needed JS for this page -->
<!-- Here goes the content. -->
<!-- Add needed Boxes for this page -->
<?PHP
include("./boxes/menuBox.php");
?>
Menu beheer
Nieuw Menu Item
Menu Item Naam
Menu Item Alt
Submenu?
Submenu van
<?PHP
// Get all the menu items
$cMenu = new menu;
echo $cMenu->showMenuItemsTable();
?>
<!-- End of .content -->
<!-- End of .box -->
<!-- End of .grid_12 -->
<!-- End of #content -->
[/code]
And i use in JS the next code
[code]
$(document).ready(function()
{
// Sort the table on Menu Item Name, NOTE: It's messing up the bar with Search and entries!!
$('#menuItemTable').dataTable( {"aaSorting": [[2, "asc"]]} );
[/code]
});
This discussion has been closed.