After the script stopped working on the product list page (index.php), while still working on the product page (product_info.php), I tried the fix on the Ajax buy now contribution site - uploaded new ajax_sc.js file, but it broke majority of my jquery scripts.
So I compared the old and new ajax_sc.js file, ignored the bulk of the new code at the start and performed only smaller changes:
replace (around line 249)
if (s.setAttribute) s.setAttribute('src', href); else s.src = href;
with
s.type = "text/javascript";
//if (s.setAttribute) s.setAttribute('src', href); else s.src = href;
$.get(
href,
function(data) {
s.innerHTML = data;
}
);
replace (around line 416)
reqAddCart.caching = false;
reqAddCart.open('GET', link, true);
reqAddCart.send(null);
with
reqAddCart.caching = false;
reqAddCart.open('GET', link, true);
reqAddCart.send();
Now it works for me, together with my jquery scripts. Tested in Safari (Mac), IE (Win), Chrome (Win&Mac) and Firefox (Win&Mac).