View Single Post
  #1  
Old 02-02-2010, 05:15 AM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Why if i put ANY javascript on product.tpl it prevents all other javascripts?

Hello there, i have a problem (many months ago) but i just released it. In the past i tried to add lightbox to use it on some products. The problem was that when i was adding the lightbox it was preventing the other javascripts from functioning. E.g the prices were not changing if the user choosed an option that has to modify the price.

Qualiteam told me that it was a conflict with the lightbox so i left it. Before a few days i added a script which is:
Code:
window.onload=show; function show(id) { var d = document.getElementById(id); for (var i = 1; i<=20; i++) { if (document.getElementById('answer_q'+i)) {document.getElementById('answer_q'+i).style.display='none';} } if (d) {d.style.display='block';} }

but even with that code i have again the same problems. Even if i added it with external .js. Any ideas what's going on?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote