Т.е. они отрабатывают (если нажать F5, показывает кол-во товаров в корзине или папке сравнения), но не отображаются автоматически.
В FireBug показывает следующее:
ReferenceError: doCpr is not defined
doCpr(result);
Сама функция в user.js:
---------
function doLoadcpr(forse) {
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) && (agt.indexOf("msie 7.")==-1) && (agt.indexOf("msie 8.")==-1));
if(document.getElementById('axcrt')){
renbox();
if ( !is_ie6 ){
document.getElementById('axcrt').style.left = Math.ceil((document.documentElement.clientWidth-300)/2)+'px';
document.getElementById('axcrt').style.top = Math.ceil((document.documentElement.clientHeight-100)/2)+'px';
}
if ( is_ie ){
if (document.styleSheets.length == 0) document.createStyleSheet();
var oSheet = document.styleSheets[0];
oSheet.addRule(".WCHhider", "visibility:hidden");
}
document.getElementById('axcrt').style.display = '';
document.getElementById('axcrt').style.visibility = 'visible';
}
JsHttpRequest.query(
'index.php', forse,
// Function is called when an answer arrives.
function(result, errors) {
setTimeout('doHide()',1500);
doCpr(result);
-------------
Ошибка указывает на строку: "setTimeout('doHide()',1500);"
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
P.S. также при загрузке страницы (без нажимания ссылко и кнопок) выпадают такие ошибки (выделил жирным, на что указывает FireBug):
SyntaxError: missing ; before statement
var req [ " shopping_cart_name " ] = 'товар(ов)';
ReferenceError: printcart_act1 is not defined
...ent.clientWidth-300)/2)+'px; top: '+Math.ceil((document.documentElement.clientHe...
TypeError: $(...).data(...) is undefined
$( "#searchstring" ).data("autocomplete")._renderMenu = function( ul, items ) {