Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento site works fine for a few seconds but then the javascript events stop working
 
kuldeepvaishya
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2012-10-16
 

We have added a quick-view for the products taken from here. It is working fine in firefox and internet explorer. But a strange thing happens on chrome and safari. When the page loads up, it works fine for a few seconds, i.e. you can see the quick-view button show and hide on hovering over product images. But then this piece of javascript stops working. Nothing happens on hovering over the product images. You guys can check our webpage here and the js used is productInfo.js at skin\frontend\my\default\js. Please ask me if you need more details.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Hello
There is this error on your page (only on chrome)

Uncaught TypeErrorObject #<Object> has no method 'setAutoResize'
This is caused by the facebook js in your header:
window.fbAsyncInit = function() {
        FB
.init({appId  '178643848943835',
            
status true,
            
cookie true,
            
xfbml  true
        }
);

        
FB.Canvas.setAutoResize(true);//<--this line causes the error.

    
};

For test purposes remove that and see if the quick view works.
If it works at least you know what it needs fixing.

Cheers,
Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kuldeepvaishya
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2012-10-16
 

I removed that whole plugin (Apptha - social affiliate) and still it is not working. You can check it again.
Thanks for the quick reply.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

I think there is a javascript that destroys the “quick view”.
If I type in the console this:

APP.productInfo.initialize('.ajax''.product-image'{});
after the page loads it works again.
Unfortunately I don’t know what js is that You can try removing external js files one by one maybe you find the one that does this.

Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Start by removing this:

<script type='text/javascript' src='//www.beetailer.com/javascripts/beetailer.js'></script>
 
Magento Community Magento Community
Magento Community
Magento Community
 
kuldeepvaishya
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2012-10-16
 

I found the problem. There was this Ajax pagination plugin that was refreshing the products area after the page loads. We removed that plugin and now its working fine.
Thanks for guiding in the right direction.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top