denis
09-21-2008, 06:10 PM
I am trying to use eval and its not working like its suppose to .
o1,o2 and o3 are operands number
where as oper1 and oper2 are operators *, /, %, +, -
var out = eval("(o1);oper1;(o2);oper2;(o3)");
alert(out);
so when i use this i get the whatever stored in o3 as a result.
help will be greatly appreciated.
Denis
o1,o2 and o3 are operands number
where as oper1 and oper2 are operators *, /, %, +, -
var out = eval("(o1);oper1;(o2);oper2;(o3)");
alert(out);
so when i use this i get the whatever stored in o3 as a result.
help will be greatly appreciated.
Denis