Call tag creating error on page.

wxdqz

New Member
This is my first project in any language other than HTML, and I know that my method is probably inefficient... but I had to start somewhere...

The script and form I am working with are below. My problem is that <#ShippingCost> is a variable/tag from another application and that application sends the information in the form of "$0.00" as opposed to "0.00" The "$" obviously creates errors on the page. Does anyone have any suggestions? Thanks in advance, and be gentle--My fragile ego is already bruised and battered.

<SCRIPT LANGUAGE="JavaScript">
function ShippingCost_times_AlaskaHawaiiMultiplier(form) {
var ShippingCost=<#ShippingCost>
var AlaskaHawaiiMultiplier=2.25
c=ShippingCost*AlaskaHawaiiMultiplier

form.ans2.value=c
}
</script>

<FORM name="formAlaskaHawaiiShip">
<p align="center"><font face="Arial">
<input type="hidden" name="ShippingCost"> <b>
<input type="button" value=http://www.webdeveloper.com/forum/archive/index.php/" Calculate " onClick="ShippingCost_times_AlaskaHawaiiMultiplier(this.form)" onMouseOut="parseelement(form.ans2)">
<input type="hidden" name="AlaskaHawaiiMultiplier"> Alaska/Hawaii Shipping:
<input type "number" value=$ name= "ans2" size=9>
</form>
 
Back
Top