Javascript

Hi.

Is there a simple solution to making the following work in the Product Description box. It is a simple cable size calculator, that works fine on a normal HTML page…



Cable Size Calculator


This calculator returns the minimum size for individual DC cable runs.

The maximum load is entered, along with the system voltage and length of cable needed.

The result is the minimum cross-sectional area of two-core cable required to ensure a voltage drop of less than 5% of the system voltage.



Maximum Load

Watts



Cable Length

Metres



System Voltage


12
24
48
Volts



Minimum Cable Size

mm2






Many Thanks
Jean

It seems I may have to put the Script into an HTML Block.

What is this and would it work and if so how would I do it?

I am using 1.3.5.-SP2



Thank You

Jean

Anyone out there, please.

12V,



I think you need to encase your code in Literal Tags:



[url]Search Results for "docsv2" | Smarty

The correct script as follows. I have made a working sample

Cable Size Calculator





Cable Size Calculator


This calculator returns the minimum size for individual DC cable runs.

The maximum load is entered, along with the system voltage and length of cable needed.

The result is the minimum cross-sectional area of two-core cable required to ensure a voltage drop of less than 5% of the system voltage.



Maximum Load

Watts



Cable Length

Metres



System Voltage


12
24
48
Volts



Minimum Cable Size

mm2




It works :smiley:

Many Many thanks for your help.



Jean