{"id":2907,"date":"2015-11-11T17:51:51","date_gmt":"2015-11-12T00:51:51","guid":{"rendered":"http:\/\/behstant.com\/blog\/?p=2907"},"modified":"2016-05-02T11:58:15","modified_gmt":"2016-05-02T17:58:15","slug":"jquery-datatables-implementation","status":"publish","type":"post","link":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/","title":{"rendered":"jQuery Datatables Implementation"},"content":{"rendered":"<p><a href=\"https:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/003-datatables-database.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3779\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/003-datatables-database.png\" alt=\"jQuery Datatables\" width=\"616\" height=\"415\" srcset=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/003-datatables-database.png 1248w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/003-datatables-database-300x202.png 300w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/003-datatables-database-1024x689.png 1024w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a><\/p>\n<p>The jQuery Plugin Datatable will help you to keep those huge database results into a better and organize table. I have spoke of the <a href=\"http:\/\/behstant.com\/blog\/uncategorized\/plugin-dairy-jquery-datatable\/\" target=\"_blank\">jQuery Datatables plugin into this entry<\/a>, so I will no use much time in the introduction of the plugin. I will focus and how you can get you database results into that Datatable.<\/p>\n<p>For this Example I will be using a database, the employee table\u00a0that I have been using in previous tutorials, so if you don&#8217;t remember the file structure of the table I present it again.<\/p>\n<p><!--more--><\/p>\n<p>This is the structure of the table (if you <a href=\"#download\">download<\/a> the code you will get a full explanation of the table):<\/p>\n<pre class=\"lang:mysql decode:true\">--\r\nCREATE TABLE `employee` (\r\n  `employee_id` int(11) NOT NULL AUTO_INCREMENT,\r\n  `name` varchar(85) NOT NULL,\r\n  `email` varchar(45) NOT NULL,\r\n  `telephone` varchar(20) NOT NULL,\r\n  PRIMARY KEY (`employee_id`)\r\n) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8\r\n-- \r\n<\/pre>\n<p>Once you create the table fill it with the require\u00a0information, I suggest you to add many records so that you can use the Datatable Pagination. As I mentioned before if you <a href=\"#download\">download<\/a> the code you will have all the information in a sql script.<\/p>\n<h3>DOWNLOADING JQUERY DATATABLES<\/h3>\n<p>You can take the code from these two sources:<\/p>\n<p>1) Download the code from the <a href=\"http:\/\/www.datatables.net\/\" target=\"_blank\">offcial page<\/a> or<\/p>\n<p><a href=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/download_datatables.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3768 aligncenter\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/download_datatables-300x164.png\" alt=\"Download Datatables\" width=\"300\" height=\"164\" srcset=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/download_datatables-300x164.png 300w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/download_datatables-1024x561.png 1024w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/download_datatables.png 1188w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>2) <a href=\"#download\">At the end of the post you can download<\/a> all the code with the Database included. Also all the inserts\u00a0of the table employee are included.<\/p>\n<h3>THE MARKUP<\/h3>\n<p>We have to setup a place where our information is going to appear so basically we only need to make our table where the data will be display. This is the basic html that we need.<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;table id=&quot;resultTable&quot;&gt;\r\n \t&lt;thead&gt;\r\n \t\t&lt;tr&gt;\r\n \t\t\t&lt;th&gt;Employee id&lt;\/th&gt;\r\n \t\t\t&lt;th&gt;Name&lt;\/th&gt;\r\n \t\t\t&lt;th&gt;Email&lt;\/th&gt;\r\n \t\t\t&lt;th&gt;Telephone&lt;\/th&gt;\r\n \t\t&lt;\/tr&gt;\r\n \t&lt;\/thead&gt;\r\n \t&lt;tbody&gt;\r\n \t\t&lt;tr&gt;\r\n \t\t\t&lt;td&gt;1&lt;\/td&gt;\r\n \t\t\t&lt;td&gt;Dennis Ritchie&lt;\/td&gt;\r\n \t\t\t&lt;td&gt;dritchie@bell.com&lt;\/td&gt;\r\n \t\t\t&lt;td&gt;555-154-8745&lt;\/td&gt;\r\n \t\t&lt;\/tr&gt;\r\n \t&lt;\/tbody&gt;\r\n &lt;\/table&gt;\r\n\r\n<\/pre>\n<h3>ADDING THE RESOURCES<\/h3>\n<p>Now that you have setup the code for the table we have\u00a0to\u00a0add the resources previously\u00a0downloaded. To complete\u00a0this, add the following code in your header or before the closing body tag.<\/p>\n<pre class=\"lang:js decode:true\">&lt;link rel=&quot;stylesheet&quot; href=&quot;css\/datatables.min.css&quot;\/&gt;\r\n&lt;script src=&quot;js\/jquery-1.11.3.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script src=&quot;js\/bootstrap.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script src=&quot;js\/datatables.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script src=&quot;js\/app.js&quot;&gt;&lt;\/script&gt;\r\n\r\n<\/pre>\n<p>Notice that I have added an extra script named <strong><span style=\"color: #ff5454; font-family: 'courier new', courier, monospace;\">app.js<\/span><\/strong>, this is where all our Javascript will be written.<\/p>\n<h3>RUNNING JQUERY DATATABLES.<\/h3>\n<p>Applying the jQuery datatables plugin is very easy, just like any other jQuery plugin you have to initialize it. Remember that in the HTML table we setup the class id\u00a0<span style=\"color: #ff5454;\"><strong><span style=\"font-family: 'courier new', courier, monospace; font-size: 12pt;\">resultTable<\/span><\/strong>,<\/span> so we are going to use that as our selector.<\/p>\n<p><strong><span style=\"color: #ff5454;\">app.js<\/span><\/strong><\/p>\n<pre class=\"lang:js decode:true\">\/*\r\n\tScript to handle the Datatables Plugin.\r\n\t@author Reedyseth\r\n\t@since 10-Nov-2015\r\n*\/\r\n$(document).ready(function() {\r\n\t$(&#039;#resultTable&#039;).DataTable();\r\n});<\/pre>\n<h3>RESULT<\/h3>\n<p>Until this point with that small portion of code\u00a0you should be able to see the jQuery datatable in action, of course this is where things get interesting and complex and therefore I will make more tutorials to target the must common situation.<\/p>\n<figure id=\"attachment_3777\" aria-describedby=\"caption-attachment-3777\" style=\"width: 527px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/002-datatables.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3777\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/002-datatables-1024x412.png\" alt=\"Datatables in Action\" width=\"537\" height=\"216\" srcset=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/002-datatables-1024x412.png 1024w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/002-datatables-300x121.png 300w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/002-datatables.png 1203w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/a><figcaption id=\"caption-attachment-3777\" class=\"wp-caption-text\">Datatables in Action<\/figcaption><\/figure>\n<h3>MANY RECORDS<\/h3>\n<p>In the beginning \u00a0of this post I mentioned that using jQuery datatables is for the purpose of controlling many records in our application, if we don&#8217;t do that then we will end up with a table with huge scrolling. Add many records into the employee table using you database editor or manually using the MySQL console, on this point section we are not going to write the records into hour html table, instead we are going to retrieve all this information from our database.<\/p>\n<p>I have created some other tutoriales to fetch information with Ajax so you could take a look at\u00a0<a href=\"http:\/\/behstant.com\/blog\/jquery\/using-ajax-to-search-a-record-with-php-mysql-and-jquery-look-and-feel-by-bootstrap\/\" target=\"_blank\">Ajax usage to search a Record with PHP, MySQL and jQuery<\/a>\u00a0or this other tutorial\u00a0<a href=\"http:\/\/behstant.com\/blog\/jquery\/use-ajax-to-find-a-record-with-jquery-ui-autocomplete-php-mysql-p1\/\" target=\"_blank\">Find a Record with Ajax and jQuery UI Autocomplete, PHP, MySQL and Json \u2013 Part 1<\/a>.<\/p>\n<p>This is the code to retrieve the information with jQuery Ajax, the server side code I leave it to you for the implementation or <strong><a href=\"#download\">you can purchase the code<\/a> that includes the design that you see on the images as well as all the complete database structure and with all the records.<\/strong><\/p>\n<pre class=\"lang:js decode:true\">\/*\r\n\tScript to handle the Datatables Plugin.\r\n\t@author Reedyseth\r\n\t@since 10-Nov-2015\r\n*\/\r\n$(document).ready(function() {\r\n\r\n\t$.ajax({\r\n\t\turl: &quot;php\/retrieveEmployees.php&quot;,\r\n\t\tdataType: &quot;json&quot;,\r\n\t\tsuccess: function(response){\r\n\t\t\tvar tbody = &quot;&quot;;\r\n\t\t\tfor (var i = 0; i &lt; response.length - 1; i++) {\r\n\t\t\t\ttbody += &quot;&lt;tr&gt;&quot; +\r\n\t\t\t\t\t\t\t&quot;&lt;td&gt;&lt;a href=&#039;#&#039;&gt;&quot;+ response[i].employee_id +&quot;&lt;\/a&gt;&lt;\/td&gt;&quot;+\r\n\t\t\t\t\t\t\t&quot;&lt;td&gt;&quot;+ response[i].name +&quot;&lt;\/td&gt;&quot;+\r\n\t\t\t\t\t\t\t&quot;&lt;td&gt;&quot;+ response[i].email +&quot;&lt;\/td&gt;&quot;+\r\n\t\t\t\t\t\t\t&quot;&lt;td&gt;&quot;+ response[i].telephone +&quot;&lt;\/td&gt;&quot;+\r\n\t\t\t\t\t\t &quot;&lt;\/tr&gt;&quot;;\r\n\t\t\t};\r\n\r\n\t\t\t$(&#039;.resultTable tbody&#039;).html( tbody );\r\n\r\n\t\t\t$(&#039;#resultTable&#039;).DataTable();\r\n\t\t}\r\n\t});\r\n});\r\n\/\/<\/pre>\n<h3>RESULT<\/h3>\n<p><a href=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/004-datatables-database-ex.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3780\" src=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/004-datatables-database-ex-1024x689.png\" alt=\"004-datatables-database-ex\" width=\"616\" height=\"415\" srcset=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/004-datatables-database-ex-1024x689.png 1024w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/004-datatables-database-ex-300x202.png 300w, http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/004-datatables-database-ex.png 1248w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a><\/p>\n<p>The table above\u00a0has many records and is\u00a0using\u00a0the jQuery Datatables in Action, there are 5 elements that are given by default:<\/p>\n<ol>\n<li>Dropdown to select the number of records to be displayed.<\/li>\n<li>You can search information on the table itselft by using this input area.<\/li>\n<li>You can sort the records<\/li>\n<li>A Legend that displays the number of records been displayed as well as the total.<\/li>\n<li>A Paginator where you can jump to any page that you desire.<\/li>\n<\/ol>\n<p>Implementing the plugin Datatables is not a complex thing, customizing the plugin make the things interesting. On future post I will be showing how to add or remove the elements of the Datatables or also adding filters\/custom input areas on the headers of the table so that you can search by column and not globally, also I will be showing who to load information on the Datatables dynamically using Ajax, this is to avoid a heavy request to the server when there are many records on the database.<\/p>\n<h3>FINAL RAW CODE<\/h3>\n<pre class=\"lang:xhtml decode:true\">&lt;!doctype html&gt;\r\n&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;title&gt;jQuery Datatables&lt;\/title&gt;\r\n        &lt;link rel=&quot;stylesheet&quot; href=&quot;css\/datatables.min.css&quot;\/&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n\r\n    \t&lt;table id=&quot;resultTable&quot; class=&quot;table table-striped resultTable&quot;&gt;\r\n\t        &lt;thead&gt;\r\n\t            &lt;tr&gt;\r\n\t                &lt;th&gt;Employee ID&lt;\/th&gt;\r\n\t                &lt;th&gt;Name&lt;\/th&gt;\r\n\t                &lt;th&gt;Email&lt;\/th&gt;\r\n\t                &lt;th&gt;Telephone&lt;\/th&gt;\r\n\t            &lt;\/tr&gt;\r\n\t        &lt;\/thead&gt;\r\n\t        &lt;tbody&gt;\r\n\t        \t&lt;tr&gt;\r\n\t        \t    &lt;td&gt;&lt;a href=&quot;#&quot;&gt;1&lt;\/a&gt;&lt;\/td&gt;\r\n\t        \t    &lt;td&gt;Dennis Ritchie&lt;\/td&gt;\r\n\t        \t    &lt;td&gt;dritchie@bell.com&lt;\/td&gt;\r\n\t        \t    &lt;td&gt;555-154-8745&lt;\/td&gt;\r\n\t        \t&lt;\/tr&gt;\r\n\t        \t&lt;tr&gt;\r\n\t        \t    &lt;td&gt;&lt;a href=&quot;#&quot;&gt;2&lt;\/a&gt;&lt;\/td&gt;\r\n\t        \t    &lt;td&gt;Ken Thompson&lt;\/td&gt;\r\n\t        \t    &lt;td&gt;kthompson@bell.com&lt;\/td&gt;\r\n\t        \t    &lt;td&gt;555-154-1234&lt;\/td&gt;\r\n\t        \t&lt;\/tr&gt;\r\n\t        &lt;\/tbody&gt;\r\n\t    &lt;\/table&gt;\r\n\t\t&lt;script src=&quot;js\/jquery-1.11.3.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;js\/datatables.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script&gt;\r\n        \t$(document).ready(function() {\r\n        \t\t$(&#039;#resultTable&#039;).DataTable();\r\n        \t});\r\n        &lt;\/script&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<h1>DOWNLOAD THE FULL CODE<\/h1>\n<p>You can always purchase the code, this will support the developer and also pay for the hosting and domain services. This is what you get with the purchase:<\/p>\n<ul>\n<li>Current style that is shown on the images.<\/li>\n<li>Boostrap HTML code for the examples.<\/li>\n<li>Server side code to retrieve the information.<\/li>\n<li>Database file to avoid the insertions of records.<\/li>\n<li>Full code commented.<\/li>\n<li>Help to implement THIS code.<\/li>\n<\/ul>\n<hr \/>\n<div id=\"download\">\t<form id=\"edd_purchase_3792\" class=\"edd_download_purchase_form edd_purchase_3792\" method=\"post\">\n\n\t\t\t<div class=\"edd_price_options edd_single_mode\" >\n\t\t<ul>\n\t\t\t<li id=\"edd_price_option_3792_supportdeveloper\"><label for=\"edd_price_option_3792_1\"><input type=\"radio\"  checked='checked' name=\"edd_options[price_id][]\" id=\"edd_price_option_3792_1\" class=\"edd_price_option_3792\" value=\"1\" data-price=\"10.00\"\/>&nbsp;<span class=\"edd_price_option_name\">Support Developer<\/span><span class=\"edd_price_option_sep\">&nbsp;&ndash;&nbsp;<\/span><span class=\"edd_price_option_price\">&#36;10.00<\/span><\/label><\/li><li id=\"edd_price_option_3792_feelinggrateful\"><label for=\"edd_price_option_3792_2\"><input type=\"radio\"  name=\"edd_options[price_id][]\" id=\"edd_price_option_3792_2\" class=\"edd_price_option_3792\" value=\"2\" data-price=\"5.00\"\/>&nbsp;<span class=\"edd_price_option_name\">Feeling Grateful<\/span><span class=\"edd_price_option_sep\">&nbsp;&ndash;&nbsp;<\/span><span class=\"edd_price_option_price\">&#36;5.00<\/span><\/label><\/li><li id=\"edd_price_option_3792_justthecode\"><label for=\"edd_price_option_3792_3\"><input type=\"radio\"  name=\"edd_options[price_id][]\" id=\"edd_price_option_3792_3\" class=\"edd_price_option_3792\" value=\"3\" data-price=\"2.99\"\/>&nbsp;<span class=\"edd_price_option_name\">Just the Code<\/span><span class=\"edd_price_option_sep\">&nbsp;&ndash;&nbsp;<\/span><span class=\"edd_price_option_price\">&#36;2.99<\/span><\/label><\/li>\t\t<\/ul>\n\t<\/div><!--end .edd_price_options-->\n\t\n\t\t<div class=\"edd_purchase_submit_wrapper\">\n\t\t\t<button class=\"edd-add-to-cart button-cart edd-submit\" data-nonce=\"be1d194d55\" data-timestamp=\"1780616699\" data-token=\"07b7485da15ce520debe7f74f5a3bf4bb90fd360701a7cf714b31a6b7090c066\" data-action=\"edd_add_to_cart\" data-download-id=\"3792\"  data-variable-price=\"yes\" data-price-mode=single data-price=\"0.00\" ><span class=\"edd-add-to-cart-label\">Purchase<\/span> <span class=\"edd-loading\" aria-label=\"Loading\"><\/span><\/button><input type=\"submit\" class=\"edd-add-to-cart edd-no-js button-cart edd-submit\" name=\"edd_purchase_download\" value=\"Purchase\" data-action=\"edd_add_to_cart\" data-download-id=\"3792\"  data-variable-price=\"yes\" data-price-mode=single \/><a href=\"http:\/\/behstant.com\/blog\/checkout\/\" class=\"edd_go_to_checkout button-cart edd-submit\" style=\"display:none;\">Checkout<\/a>\n\t\t\t\t\t\t\t<span class=\"edd-cart-ajax-alert\" aria-live=\"assertive\">\n\t\t\t\t\t<span class=\"edd-cart-added-alert\" style=\"display: none;\">\n\t\t\t\t\t\t<svg class=\"edd-icon edd-icon-check\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 28 28\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path d=\"M26.11 8.844c0 .39-.157.78-.44 1.062L12.234 23.344c-.28.28-.672.438-1.062.438s-.78-.156-1.06-.438l-7.782-7.78c-.28-.282-.438-.673-.438-1.063s.156-.78.438-1.06l2.125-2.126c.28-.28.672-.438 1.062-.438s.78.156 1.062.438l4.594 4.61L21.42 5.656c.282-.28.673-.438 1.063-.438s.78.155 1.062.437l2.125 2.125c.28.28.438.672.438 1.062z\"\/>\n\t\t\t\t\t\t<\/svg>\n\t\t\t\t\t\tAdded to cart\t\t\t\t\t<\/span>\n\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><!--end .edd_purchase_submit_wrapper-->\n\n\t\t<input type=\"hidden\" name=\"download_id\" value=\"3792\">\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"edd_action\" class=\"edd_action_input\" value=\"add_to_cart\">\n\t\t\n\t\t\n\t\t\n\t<\/form><!--end #edd_purchase_3792-->\n\t<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The jQuery Plugin Datatable will help you to keep those huge database results into a better and organize table. I have spoke of the jQuery Datatables plugin into this entry, so I will no use much time in the introduction of the plugin. I will focus and how you can get you database results into &#8230; <a title=\"jQuery Datatables Implementation\" class=\"read-more\" href=\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\" aria-label=\"Read more about jQuery Datatables Implementation\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":4086,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[25],"tags":[58,66,68,43,67,53],"class_list":["post-2907","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","tag-ajax","tag-bootstrap","tag-database","tag-javascript-2","tag-jquery","tag-plugins"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>jQuery\u00a0Datatables Implementation<\/title>\n<meta name=\"description\" content=\"On this tutorial I will show you how to implement the jQuery Datatables plugin in a HTML table, records are loading with Ajax. Style with Bootstrap.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"jQuery\u00a0Datatables Implementation\" \/>\n<meta property=\"og:description\" content=\"On this tutorial I will show you how to implement the jQuery Datatables plugin in a HTML table, records are loading with Ajax. Style with Bootstrap.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-12T00:51:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-02T17:58:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Reedyseth\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Reedyseth\" \/>\n<meta name=\"twitter:site\" content=\"@Reedyseth\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Reedyseth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\"},\"author\":{\"name\":\"Reedyseth\",\"@id\":\"https:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\"},\"headline\":\"jQuery Datatables Implementation\",\"datePublished\":\"2015-11-12T00:51:51+00:00\",\"dateModified\":\"2016-05-02T17:58:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\"},\"wordCount\":837,\"commentCount\":3,\"image\":{\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png\",\"keywords\":[\"Ajax\",\"Bootstrap\",\"Database\",\"Javascript\",\"jQuery\",\"Plugins\"],\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\",\"url\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\",\"name\":\"jQuery\u00a0Datatables Implementation\",\"isPartOf\":{\"@id\":\"https:\/\/behstant.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png\",\"datePublished\":\"2015-11-12T00:51:51+00:00\",\"dateModified\":\"2016-05-02T17:58:15+00:00\",\"author\":{\"@id\":\"https:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\"},\"description\":\"On this tutorial I will show you how to implement the jQuery Datatables plugin in a HTML table, records are loading with Ajax. Style with Bootstrap.\",\"breadcrumb\":{\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage\",\"url\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png\",\"contentUrl\":\"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png\",\"width\":200,\"height\":200,\"caption\":\"jQuery Datatables\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/behstant.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"jQuery Datatables Implementation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/behstant.com\/blog\/#website\",\"url\":\"https:\/\/behstant.com\/blog\/\",\"name\":\"The Code\",\"description\":\"Learn Web Solutions in WordPress, PHP, jand also purchase code solutions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/behstant.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\",\"name\":\"Reedyseth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"caption\":\"Reedyseth\"},\"description\":\"My Google Profile+\",\"sameAs\":[\"http:\/\/behstant.com\"],\"url\":\"http:\/\/behstant.com\/blog\/author\/reedyseth\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"jQuery\u00a0Datatables Implementation","description":"On this tutorial I will show you how to implement the jQuery Datatables plugin in a HTML table, records are loading with Ajax. Style with Bootstrap.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/","og_locale":"en_US","og_type":"article","og_title":"jQuery\u00a0Datatables Implementation","og_description":"On this tutorial I will show you how to implement the jQuery Datatables plugin in a HTML table, records are loading with Ajax. Style with Bootstrap.","og_url":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/","og_site_name":"The Code","article_published_time":"2015-11-12T00:51:51+00:00","article_modified_time":"2016-05-02T17:58:15+00:00","og_image":[{"width":200,"height":200,"url":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png","type":"image\/png"}],"author":"Reedyseth","twitter_card":"summary_large_image","twitter_creator":"@Reedyseth","twitter_site":"@Reedyseth","twitter_misc":{"Written by":"Reedyseth","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#article","isPartOf":{"@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/"},"author":{"name":"Reedyseth","@id":"https:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f"},"headline":"jQuery Datatables Implementation","datePublished":"2015-11-12T00:51:51+00:00","dateModified":"2016-05-02T17:58:15+00:00","mainEntityOfPage":{"@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/"},"wordCount":837,"commentCount":3,"image":{"@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage"},"thumbnailUrl":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png","keywords":["Ajax","Bootstrap","Database","Javascript","jQuery","Plugins"],"articleSection":["jQuery"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/","url":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/","name":"jQuery\u00a0Datatables Implementation","isPartOf":{"@id":"https:\/\/behstant.com\/blog\/#website"},"primaryImageOfPage":{"@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage"},"image":{"@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage"},"thumbnailUrl":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png","datePublished":"2015-11-12T00:51:51+00:00","dateModified":"2016-05-02T17:58:15+00:00","author":{"@id":"https:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f"},"description":"On this tutorial I will show you how to implement the jQuery Datatables plugin in a HTML table, records are loading with Ajax. Style with Bootstrap.","breadcrumb":{"@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#primaryimage","url":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png","contentUrl":"http:\/\/behstant.com\/blog\/wp-content\/uploads\/2015\/11\/feature_datatables-01.png","width":200,"height":200,"caption":"jQuery Datatables"},{"@type":"BreadcrumbList","@id":"http:\/\/behstant.com\/blog\/jquery\/jquery-datatables-implementation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/behstant.com\/blog\/"},{"@type":"ListItem","position":2,"name":"jQuery Datatables Implementation"}]},{"@type":"WebSite","@id":"https:\/\/behstant.com\/blog\/#website","url":"https:\/\/behstant.com\/blog\/","name":"The Code","description":"Learn Web Solutions in WordPress, PHP, jand also purchase code solutions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/behstant.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f","name":"Reedyseth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","caption":"Reedyseth"},"description":"My Google Profile+","sameAs":["http:\/\/behstant.com"],"url":"http:\/\/behstant.com\/blog\/author\/reedyseth\/"}]}},"_links":{"self":[{"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts\/2907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/comments?post=2907"}],"version-history":[{"count":0,"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts\/2907\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/media\/4086"}],"wp:attachment":[{"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/media?parent=2907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/categories?post=2907"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/tags?post=2907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}