S
Scott Sauyet
FF does some static optimizations @ compile time:
(function f () { 2+2; return ("3."+"14")*"2"+x;}).toSource()
-> "(function f() {return 6.28 + x;})"
Very cool!
-- Scott
FF does some static optimizations @ compile time:
(function f () { 2+2; return ("3."+"14")*"2"+x;}).toSource()
-> "(function f() {return 6.28 + x;})"
I have a function that simply totals the value from previous
calculations from textboxes, but when trying to add the totals up
after assigning each textbox value a variable,the total in my
grandtotal box is just the values appended to each other (i.e . If
value A is 150 and value B is 200, the grandtotal box displays 150200:
function calculate2(oform, prefix) {
var A = document.oform.vn_stVis.value;
var B = document.oform.ja_stVis.value;
var C = document.oform.ta_stVis.value;
var D = document.oform.sa_stVis.value;
//var E = (A + B + C + D); -- this just appends the total literally to
each other in grandtotal box
var E = (A + B + C + D);
document.oform.gt_stVis.value = E;
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.