Jump to content

Problem in adding javascript code to HTML Box Module


Recommended Posts

Hello,
I'm using PS 1.6.06 and HTMLBox module. I'm having problem anytime I entered javascript code. It always rewrite automatically and causing the code failed to work.
 
For example, I want to insert javascript code for counter provided by histats.com. Whenever I entered the code:

 

<!-- Histats.com  START  (standard)-->
<script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>

 

it will automatically changed to:

 

<!-- Histats.com  START  (standard)-->
<script>// <![CDATA[
document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));
// ]]></script>....

 

Can anyone help me to solve this problem? thank you

Link to comment
Share on other sites

Google the problem, I know there are several solutions to changing the way PrestaShop strips script tags out. 

yups, i found some solutions... but i can't solve mine. I tried copying media.php to override/classes/media.php and inserting "data-keepinline="true" in the javascript tag, but nothing happen. that CData command still appear and causing my javascript can't work.

 

Would you please show me another solution?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...