Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Jcomments in Google Chrome
Pages: [1]   Go Down
  Print  
Author Topic: Jcomments in Google Chrome  (Read 2024 times)
0 Members and 1 Guest are viewing this topic.
LR
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: July 24, 2012, 13:31:57 »

Hi, i had strange issue with Jcomments 2.3.0

I found that comments are not visible in Chrome. There was "new comment" submit form, but there were no earlier comments. I mean there were no comments at all in source code, it's not CSS issue. I'm sure there should be some comments, because i saw them in backend AND they were visible in Firefox/Opera as well.

I tried to debug this. First of all i saw ajax call for posts in Firefox, but there was no ajax call in Chrome. I had some errors in Chrome console log, from third party javascipts (ja.ddmod.js from Teline III and some error in mod_janewsticker javascript) so i disabled them for a while. Nothing happend. So i tried to debug Jcomments js.

What i have found is:

Code:
initOnReady : function(){if(this.isReadyInited) return;this.isReadyInited=1;var jc=this;
if(this.browser.mozilla||this.browser.opera){JCommentsEvents.prototype.add(document, 'DOMContentLoaded',jc.ready);}
else if(this.browser.msie) {(function(){try{document.documentElement.doScroll('left');}catch(e){setTimeout(arguments.callee, 50);return;}jc.ready();})();}
else if(this.browser.safari){(function(){if(jc.isReady)return;
if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}jc.ready();})();}
JCommentsEvents.prototype.add(window, 'load', function(){jc.ready(jc);});
},

in ~275 line jcomments-v2.3.js

Could you explain why there is no IF-THEN for Chrome browser? I though maybe there is no need for this case... but as a test i added
Code:
else{JCommentsEvents.prototype.add(document, 'DOMContentLoaded',jc.ready);}
Refresh and... comments appears. WTF?

I cant find many "Jcomments doesnt work in chrome" topics, so its hard to belive for me, that this IF-THEN case is necessery here. But it helped, at least in my case. Any suggestions why does it happend?

Joomla 1.5.15
Jcomments 2.3.0
Chrome 20.0.1132.57
Logged
anastas1ya
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #1 on: October 29, 2012, 00:38:35 »

Jcomments doesn't work in Google Chrome 22, Firefox 14 and Opera 12.
Clicking on [Send] btn results with page refresh and do nothing.
Joomla 2.5.7
Jcomments 2.3.0.
This is very urgent.
Please help.
Logged
ABTOP
Sr. Member
****

Karma: 17
Offline Offline

Posts: 399



WWW
« Reply #2 on: October 29, 2012, 01:25:26 »

Jcomments doesn't work in ... Opera 12.
Sure it does.
Logged

No personal messages unless you are a friend or you have money for me.
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Jcomments in Google Chrome
 
Jump to: