{"id":6893,"date":"2014-05-09T05:36:23","date_gmt":"2014-05-09T05:36:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/09\/uncaught-typeerror-object-mouseevent-in-chrome-collection-of-common-programming-errors\/"},"modified":"2014-05-09T05:36:23","modified_gmt":"2014-05-09T05:36:23","slug":"uncaught-typeerror-object-mouseevent-in-chrome-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/09\/uncaught-typeerror-object-mouseevent-in-chrome-collection-of-common-programming-errors\/","title":{"rendered":"Uncaught TypeError: Object #&lt;MouseEvent&gt; in chrome-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m working on a joomla site http:\/\/bit.ly\/jFt6Km have a mootools slideshow working fine on ff and IE but does not in chrome<\/p>\n<blockquote>\n<p>chrome error:<\/p>\n<blockquote>\n<p>Uncaught TypeError: Object # has no method &#8216;stop&#8217; on line 57<\/p>\n<\/blockquote>\n<\/blockquote>\n<p>mootools code<\/p>\n<pre><code>window.addEvent('domready',function() {\n2 \/* settings *\/\n3 var showDuration = 6000;\n4 var container = $('slideshow-container');\n5 var images = container.getElements('.slide');\n6 var captions = container.getElements('.slide .text');\n7 var thumbs = container.getElements('.thumbs img');\n8 var currentIndex = 0;\n9 var interval;\n10 \/\/var fade = new Fx.Fade();\n11 \/* opacity and fade *\/\n12 \/\/alert(thumbs);\n13 images.each(function(img,i){\n14\n15\n16 \/\/alert(i);\n17 if(i &gt; 0) {\n18\n19 img.setStyle('opacity',0);\n20\n21 }\n22 });\n23 \/* worker *\/\n24 var show = function(to) {\n25 captions[currentIndex].setStyle('opacity',0);\n26 thumbs[currentIndex].removeClass('active');\n27 fadeout(images[currentIndex]);\n28\n29\n30\n31 fadein(images[currentIndex = ($defined(to) ? to : (currentIndex &lt; images.length - 1 ? currentIndex+1 : 0))]);\n32 thumbs[currentIndex].addClass('active');\n33 captions[currentIndex].setStyle('opacity',1);\n34\n35\n36\n37 };\n38 \/* start once the page is finished loading *\/\n39 window.addEvent('load',function(){\n40 show(0); start();\n41 });\n42\n43 function fadein(el){\n44 el.fx = el.effect('opacity',{duration: 2000}).start(1);\n45 \/\/el.setStyle('opacity',1);\n46 }\n47 function fadeout(el){\n48 el.fx = el.effect('opacity',{duration: 2000}).start(0);\n49 }\n50\n51 var stop = function() { $clear(interval); };\n52 var start = function() { interval = show.periodical(showDuration); };\n53 \/\/alert(thumbs);\n54 thumbs.each(function(thumb,i){\n55 \/\/if(currentIndex == i) thumb.set('class','active');\n56 thumb.addEvent('click',function(e){\n**57 if(e) e.stop();**\n58 stop();\n59 show(i);\n60 start();\n61\n62\n63 });\n64 \/\/alert( thumb.get('src') + ' ' + i);\n65 });\n66 \/* function for thumbs *\/\n67 var showSlide = function(index) {\n68 fadein(images[index]);\n69 \/\/show();\n70 };\n71}); \n<\/code><\/pre>\n<p>BTW it working fine locally<\/p>\n<p>thanks you all for any help<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on a joomla site http:\/\/bit.ly\/jFt6Km have a mootools slideshow working fine on ff and IE but does not in chrome chrome error: Uncaught TypeError: Object # has no method &#8216;stop&#8217; on line 57 mootools code window.addEvent(&#8216;domready&#8217;,function() { 2 \/* settings *\/ 3 var showDuration = 6000; 4 var container = $(&#8216;slideshow-container&#8217;); 5 var [&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-6893","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6893","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=6893"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6893\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}