{"id":6869,"date":"2014-05-07T18:34:43","date_gmt":"2014-05-07T18:34:43","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/07\/uncaught-typeerror-cannot-read-property-length-of-undefined-in-chrome-joomla-website-jqueryui-collection-of-common-programming-errors\/"},"modified":"2014-05-07T18:34:43","modified_gmt":"2014-05-07T18:34:43","slug":"uncaught-typeerror-cannot-read-property-length-of-undefined-in-chrome-joomla-website-jqueryui-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/07\/uncaught-typeerror-cannot-read-property-length-of-undefined-in-chrome-joomla-website-jqueryui-collection-of-common-programming-errors\/","title":{"rendered":"Uncaught TypeError: Cannot read property &#39;length&#39; of undefined, in Chrome, joomla website, jqueryui-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m using jQueryUI tabs plugin on joomla 1.5 site and I get this error in Chrome. Firefox and IE work perfectly fine. This is the part where Chrome errors out, right after <strong>anchor.hash<\/strong>:<\/p>\n<pre><code>(function( $, undefined ) {\n    var tabId = 0,\n    rhash = \/#.*$\/;\nfunction getNextTabId() {\n    return ++tabId;\n}\nfunction isLocal( anchor ) {\nreturn anchor.hash.length &gt; 1 &amp;&amp;\n    anchor.href.replace( rhash, \"\" ) ===\n        location.href.replace( rhash, \"\" )\n<\/code><\/pre>\n<p>This is a sample of HTML markup:<\/p>\n<pre><code>\n<\/code><\/pre>\n<ul>\n<li><code>Tab 1<\/code><\/li>\n<\/ul>\n<pre>\n\n\n\n\n<\/pre>\n<p><code>I read a lot of other questions regarding \"Uncaught TypeError\" and I presume that <strong>anchor<\/strong> is undefined - but I don't have a clue why this happens, and only in Chrome?<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using jQueryUI tabs plugin on joomla 1.5 site and I get this error in Chrome. Firefox and IE work perfectly fine. This is the part where Chrome errors out, right after anchor.hash: (function( $, undefined ) { var tabId = 0, rhash = \/#.*$\/; function getNextTabId() { return ++tabId; } function isLocal( anchor ) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6869","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6869"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6869\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}