{"id":478,"date":"2022-08-30T15:02:01","date_gmt":"2022-08-30T15:02:01","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/jquery-slideshow-index-not-advancing-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:02:01","modified_gmt":"2022-08-30T15:02:01","slug":"jquery-slideshow-index-not-advancing-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jquery-slideshow-index-not-advancing-collection-of-common-programming-errors\/","title":{"rendered":"jquery slideshow, index not advancing-Collection of common programming errors"},"content":{"rendered":"<p>You should probably want to fix the errors your javascript makes first. It keeps on outputting this:<\/p>\n<pre><code>Idx: 0 - IdxTR: 8 Img: images\/gallery\/alison.jpg\njquery-1.4.3.min.js:55Uncaught TypeError: Cannot read property 'handler' of undefined\ninformation3.php:20Idx: 0 - IdxTR: 8 Img: images\/gallery\/alison.jpg\njquery-1.4.3.min.js:55Uncaught TypeError: Cannot read property 'handler' of undefined\ninformation3.php:20Idx: 0 - IdxTR: 8 Img: images\/gallery\/alison.jpg\n<\/code><\/pre>\n<p>and so on. The error seems to be after your console.log, but if it before your Idx++, it will never be changed from the 0 , and that&#8217;s what your are seeing<\/p>\n<p>addition:<br \/>\nNow I&#8217;m getting confused (<em>starts coffee<\/em>), but check this.:<br \/>\nTry the simple <code>Idx+1<\/code> way, or <code>++Idx<\/code>.<\/p>\n<p>From this page (quite random page, I admit)<\/p>\n<pre><code>var a = 5;\n   b = a++;\n    (b contains the initial value of a, which is 5.\n    a, on the other hand is now equal to 6)\n\n   var a = 5;\n   c = ++a;\n    (In this case, JavaScript first adds 1 to a, changing\n    its value to 6. This value is returned to c.\n    Thus, c = 6)\n<\/code><\/pre>\n<p>I don&#8217;t know what&#8217;s happening in your case, but try the simple <code>+1<\/code> method please?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 19:44:48. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>You should probably want to fix the errors your javascript makes first. It keeps on outputting this: Idx: 0 &#8211; IdxTR: 8 Img: images\/gallery\/alison.jpg jquery-1.4.3.min.js:55Uncaught TypeError: Cannot read property &#8216;handler&#8217; of undefined information3.php:20Idx: 0 &#8211; IdxTR: 8 Img: images\/gallery\/alison.jpg jquery-1.4.3.min.js:55Uncaught TypeError: Cannot read property &#8216;handler&#8217; of undefined information3.php:20Idx: 0 &#8211; IdxTR: 8 Img: images\/gallery\/alison.jpg and [&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-478","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/478","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=478"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/478\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}