{"id":7536,"date":"2012-11-18T17:55:28","date_gmt":"2012-11-18T17:55:28","guid":{"rendered":"http:\/\/2slick.com\/web\/?p=7536"},"modified":"2012-12-20T22:12:31","modified_gmt":"2012-12-20T22:12:31","slug":"how-to-create-a-responsive-table","status":"publish","type":"post","link":"https:\/\/2slick.com\/web\/how-to-create-a-responsive-table\/affordablewebsitestips\/tutorials","title":{"rendered":"How to create a responsive table"},"content":{"rendered":"<p>In this tutorial I will show you how to create a responsive table for your website using Google's free '<a title=\"google code playground\" href=\"https:\/\/code.google.com\/\">Code Playground<\/a>'. The end result will be a JavaScript interactive table you can insert into your website, WordPress or Tumblr. JavaScript knowledge isn't required to complete this tutorial.<\/p>\n<h3>Create a responsive table using Google Code Playground<\/h3>\n<ol>\n<li>Open a browser to <a title=\"interactive table\" href=\"http:\/\/code.google.com\/apis\/ajax\/playground\/#table\">Google Code Playground 'table' creation page.<\/a><\/li>\n<li>You will start off with a sample table and sample data to mess with.<strong>Note:<\/strong>&nbsp;the 'Edit HTML' button toggles editing modes between JavaScript and Google Code markup. Toggle the mode so that you're in Google Code markup view.&nbsp;&nbsp;<\/li>\n<li>Manipulate the table data by altering the code in the 'Edit HTML' field while viewing in 'markup mode'.<\/li>\n<li>Click the 'Run Code' button to refresh the interactive table in the 'Output' field.<\/li>\n<li>When you're done creating your interactive table, click the 'Edit HTML' button. You should now be viewing the html\/JavaScript version of your interactive table.<\/li>\n<li>Highlight and copy all the JavaScript code, i.e. all code starting with the <!--DEVFMTCODE--><pre class=\"devcodeblock\" title=\"Javascript\"><table class=\"devcodetools\"><tbody><tr><td>&nbsp;Javascript&nbsp;|&nbsp;<\/td><td style=\"background-image:url('https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/img\/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;\"\/><embed id=\"ZeroClipboard1\" src=\"https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/_zclipboard.swf\" loop=\"false\" menu=\"false\" quality=\"best\" bgcolor=\"#ffffff\" width=\"16px\" height=\"16px\" align=\"middle\" allowScriptAccess=\"always\" allowFullScreen=\"false\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" flashvars=\"id=1&width=16&height=16\" wmode=\"transparent\" \/><\/td><td>&nbsp;copy&nbsp;code&nbsp;|<\/td><td style=\"cursor:pointer\" title=\"DevFormatter Plugin\" onclick=\"devfmt_credits()\">?<\/td><td width=\"99%\">&nbsp;<\/td><\/tr><\/tbody><\/table><div class=\"devcodeoverflow\"><table class=\"devcodearea\" width=\"100%\"><tr><td class=\"devcodelines\" width=\"1%\">1<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\"><span style=\"color: #339933;\">&lt;<\/span>script<\/pre><\/td><\/tr><\/table><\/div><\/pre><!--END_DEVFMTCODE--> tangs and ending with the <!--DEVFMTCODE--><pre class=\"devcodeblock\" title=\"Javascript\"><table class=\"devcodetools\"><tbody><tr><td>&nbsp;Javascript&nbsp;|&nbsp;<\/td><td style=\"background-image:url('https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/img\/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;\"\/><embed id=\"ZeroClipboard2\" src=\"https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/_zclipboard.swf\" loop=\"false\" menu=\"false\" quality=\"best\" bgcolor=\"#ffffff\" width=\"16px\" height=\"16px\" align=\"middle\" allowScriptAccess=\"always\" allowFullScreen=\"false\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" flashvars=\"id=2&width=16&height=16\" wmode=\"transparent\" \/><\/td><td>&nbsp;copy&nbsp;code&nbsp;|<\/td><td style=\"cursor:pointer\" title=\"DevFormatter Plugin\" onclick=\"devfmt_credits()\">?<\/td><td width=\"99%\">&nbsp;<\/td><\/tr><\/tbody><\/table><div class=\"devcodeoverflow\"><table class=\"devcodearea\" width=\"100%\"><tr><td class=\"devcodelines\" width=\"1%\">1<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\"><span style=\"color: #339933;\">&lt;\/<\/span>script<span style=\"color: #339933;\">&gt;<\/span><\/pre><\/td><\/tr><\/table><\/div><\/pre><!--END_DEVFMTCODE--> tags and paste them into the header of your website.<\/li>\n<li>Highlight and copy the div <!--DEVFMTCODE--><pre class=\"devcodeblock\" title=\"Javascript\"><table class=\"devcodetools\"><tbody><tr><td>&nbsp;Javascript&nbsp;|&nbsp;<\/td><td style=\"background-image:url('https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/img\/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;\"\/><embed id=\"ZeroClipboard3\" src=\"https:\/\/2slick.com\/web\/wp-content\/plugins\/devformatter\/_zclipboard.swf\" loop=\"false\" menu=\"false\" quality=\"best\" bgcolor=\"#ffffff\" width=\"16px\" height=\"16px\" align=\"middle\" allowScriptAccess=\"always\" allowFullScreen=\"false\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" flashvars=\"id=3&width=16&height=16\" wmode=\"transparent\" \/><\/td><td>&nbsp;copy&nbsp;code&nbsp;|<\/td><td style=\"cursor:pointer\" title=\"DevFormatter Plugin\" onclick=\"devfmt_credits()\">?<\/td><td width=\"99%\">&nbsp;<\/td><\/tr><\/tbody><\/table><div class=\"devcodeoverflow\"><table class=\"devcodearea\" width=\"100%\"><tr><td class=\"devcodelines\" width=\"1%\">1<\/td><td class=\"devcodelinesarea\"><pre class=\"devcode devcodeline\"><span style=\"color: #339933;\">&lt;<\/span>div id<span style=\"color: #339933;\">=<\/span><span style=\"color: #3366CC;\">'table_div'<\/span><span style=\"color: #339933;\">&gt;&lt;\/<\/span>div<span style=\"color: #339933;\">&gt;<\/span><\/pre><\/td><\/tr><\/table><\/div><\/pre><!--END_DEVFMTCODE--> and paste it into the body of of your website or CMS content fields.<\/li>\n<li>Save your changes.<\/li>\n<\/ol>\n<h3>Useful links<\/h3>\n<p><a title=\"edit wordpress header\" href=\"http:\/\/2slick.com\/web\/modify-wordpress-header-html\/affordablewebsitestips\/tutorials\">How to edit the header section of your WordPress website.<\/a><\/p>\n<p><a title=\"edit tumblr header\" href=\"http:\/\/2slick.com\/web\/edit-header-tumblr\/affordablewebsitestips\/tutorials\">How to edit the header section of your Tumblr website.<\/a><\/p>\n<p>For more documentation on <a title=\"chart interactive\" href=\"https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/table\" target=\"_blank\">the interactive table created by Google code<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial I will show you how to create a responsive table for your website using Google&#8217;s free &#8216;Code Playground&#8217;. The end result will be a JavaScript interactive table you can insert into your website, WordPress or Tumblr. JavaScript knowledge isn&#8217;t required to complete this tutorial. Create a responsive table using Google Code Playground [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7537,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,492],"tags":[614,615,385,613],"class_list":["post-7536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-websites-2","tag-google-code","tag-google-code-playground","tag-javascript","tag-responsive-table"],"_links":{"self":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/7536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/comments?post=7536"}],"version-history":[{"count":14,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/7536\/revisions"}],"predecessor-version":[{"id":7539,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/7536\/revisions\/7539"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media\/7537"}],"wp:attachment":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media?parent=7536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/categories?post=7536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/tags?post=7536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}