{"id":135,"date":"2013-01-02T00:00:38","date_gmt":"2013-01-02T00:00:38","guid":{"rendered":"http:\/\/bloodforge.com\/?p=135"},"modified":"2020-02-20T03:38:26","modified_gmt":"2020-02-20T03:38:26","slug":"jquery-1-9-and-ui-1-10-tabs-with-cookies","status":"publish","type":"post","link":"https:\/\/bloodforge.azurewebsites.net\/index.php\/2013\/01\/02\/jquery-1-9-and-ui-1-10-tabs-with-cookies\/","title":{"rendered":"jQuery 1.9 and UI 1.10 tabs with cookies"},"content":{"rendered":"\n<p>Seems like jQuery UI got rid of maintaining state with the latest implementation.<\/p>\n\n\n\n<p>Before, it pretty simple to keep state across page loads with jQuery tabs. This is one possible way to do it with the new code.&nbsp; Its still pretty easy, just a little different.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$(\"#tabs\").tabs({ \n    activate: function (e, ui) { \n        $.cookie('selected-tab', ui.newTab.index(), { path: '\/' }); \n    }, \n    active: $.cookie('selected-tab')             \n});<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Seems like jQuery UI got rid of maintaining state with the latest implementation. Before, it pretty simple to keep state across page loads with jQuery tabs. This is one possible way to do it with the new code.&nbsp; Its still pretty easy, just a little different.<\/p>\n","protected":false},"author":1,"featured_media":136,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/135"}],"collection":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":1,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/135\/revisions\/137"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media\/136"}],"wp:attachment":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}