It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Expected ';' error

Expected ';' error

Postby walkerrv on Thu Apr 10, 2008 8:43 pm

I looked and looked and can't see why I am getting this error.

I even went line by line but can't see why this is happening.

I am sure it is something dumb as I am a PHP / Data guy who is integrating some Javascripts into my site.

Any help would be appreciated.

The line in bold is the one that it says the error is on.

Thanks,

function discountCheckAmountTwo() {
var discountValue2 = parseFloat(document.getElementById('discountAmount').value);
var itemTotalValue = parseFloat(document.getElementById('itemTotal').value);
var totalSaleField = document.getElementById('totalSale');
var itemSubTotalField = document.getElementById('subtotal2');
var taxValue = parseFloat(document.getElementById('salesTax').value);
var nonTaxTotalValue = parseFloat(document.getElementById('nonTaxTotal').value);
var preTaxFinal = (itemTotalValue - discountValue2);
var discountPerc = ((discountValue2 / itemTotalValue) * 100);
var discountField1 = document.getElementById('discount');
var shipHandValue = document.getElementById('shipHand').value;
var discountField1.value = CurrencyFormatted(discountPerc);
var itemSubTotalField.value = CurrencyFormatted(preTaxFinal);
var totalSaleField.value = CurrencyFormatted((preTaxFinal + taxValue + nonTaxTotalValue + shipHandValue));

noTaxCheck();
}
walkerrv
 
Posts: 0
Joined: Thu Apr 10, 2008 8:40 pm

Postby rangana on Fri Apr 11, 2008 1:20 am

Can we see CurrencyFormatted function :)

...Also, what does the error says?...Could you please include your markups (HTML) ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 6 guests