jQuery conflict,,
jQuery conflict,,
Hello guys! I need help.. i think the 2 .JS file is conflicting each other..
Everytime i go to the gallery of our community site (http://www.tapoutguild.com/) there's a pop up windows saying Error.. and the Sooka chat refreshes like constantly.
Here's the .JS code on the Sookachat
http://cdn.sookachat.com/public/js/loader.pack.js
- var sk_Loader=function(){var f=document,e=null,a=[],c;function b(){if(c){return}var g=navigator.userAgent,d;c={gecko:0,ie:0,webkit:0};d=g.match(/AppleWebKit\/(\S*)/);if(d&&d[1]){c.webkit=parseFloat(d[1])}else{d=g.match(/MSIE\s([^;]*)/);if(d&&d[1]){c.ie=parseFloat(d[1])}else{if((/Gecko\/(\S*)/).test(g)){c.gecko=1;d=g.match(/rv:([^\s\)]*)/);if(d&&d[1]){c.gecko=parseFloat(d[1])}}}}}return{load:function(l,m,k,j){var h=f.getElementsByTagName("head")[0],g,d;if(l){l=l.constructor===Array?l:[l];for(g=0;g<l.length;++g){a.push({url:l[g],callback:g===l.length-1?m:null,obj:k,scope:j})}}if(e||!(e=a.shift())){return}b();d=f.createElement("script");d.src=e.url;if(c.ie){d.onreadystatechange=function(){if(this.readyState==="loaded"||this.readyState==="complete"){sk_Loader.requestComplete()}}}else{if(c.gecko||c.webkit>=420){d.onload=sk_Loader.requestComplete;d.onerror=sk_Loader.requestComplete}}h.appendChild(d);if(!c.ie&&!c.gecko&&!(c.webkit>=420)){d=f.createElement("script");d.appendChild(f.createTextNode("sk_Loader.requestComplete();"));h.appendChild(d)}},loadOnce:function(p,q,n,r,g){var h=[],k=f.getElementsByTagName("script"),o,l,m,d;p=p.constructor===Array?p:[p];for(o=0;o<p.length;++o){m=false;d=p[o];for(l=0;l<k.length;++l){if(d===k[l].src){m=true;break}}if(!m){h.push(d)}}if(h.length>0){sk_Loader.load(h,q,n,r)}else{if(g){if(n){if(r){q.call(n)}else{q.call(window,n)}}else{q.call()}}}},requestComplete:function(){if(e.callback){if(e.obj){if(e.scope){e.callback.call(e.obj)}else{e.callback.call(window,e.obj)}}else{e.callback.call()}}e=null;if(a.length){sk_Loader.load()}}}}();var sk_path_base="http://cdn.sookachat.com";var sk_path_js=sk_path_base+"/public/js";var sk_path_js_user=sk_path_base+"/user";if(typeof(sk_script_key)=="undefined"){script_path=sk_path_js+"/script.pack.js"}else{script_path=sk_path_js_user+"/script-"+sk_script_key+".js?"+(5*Math.floor(new Date().getMinutes()/5))}if(typeof(jQuery)=="undefined"){sk_Loader.loadOnce([sk_path_js+"/jquery-1.4.3.min.js",script_path],sk_loadComplete)}else{sk_Loader.loadOnce(script_path,sk_loadComplete)}function sk_loadComplete(){cjq.$(document).ready(function(){cjq.config.redirect.profile=sk_config.profile_url;cjq.config.authorization=sk_config.authorization;cjq.config.domain=sk_config.domain;cjq.config.hash=sk_config.hash;cjq.me.userid=sk_config.userid;cjq.me.name=sk_config.name;cjq.me.thumb=sk_config.thumb;cjq.me.friends=sk_config.friends;cjq.$("body").append('<div id="chat-wrap"></div>');cjq.sk_init()})};
and here's the .JS file of our community site which uses the datsogallery component
http://tapoutguild.com/components/com_datsogallery/libraries/jquery.min.js
Please help me :)