Manage Learn to apply best practices and optimize your operations.

Calculator To Put Into The Notes Web-Page

If you need a calculator to put into the Notes Web-page , here is the
JavaScript code which is to be put in a form and pass the text thru HTML:
If you need a calculator to put into the Notes Web-page , here is the
JavaScript code which is to be put in a form and pass the text thru HTML:

&LTscript language="JavaScript">
var expression = new Function("x1", "return eval(x1)");
function myRez(){
document.forms[0].x1.value =
expression(document.forms[0].x1.value);
}
var expression = new Function("x1", "return Math.Sin(x1)");
function mySin(){
document.forms[0].x1.value =
Math.sin(expression(document.forms[0].x1.value)*(Math.PI/180));
}
var expression = new Function("x1", "return Math.log(x1)");
function myLog(){
document.forms[0].x1.value =
Math.log(expression(document.forms[0].x1.value))/Math.LN10;
}
var expression = new Function("x1", "return Math.sqrt(x1)");
function mySqrt(){
document.forms[0].x1.value =
Math.sqrt(expression(document.forms[0].x1.value));
}
var expression = new Function("x1", "return eval(x1)");
function myClearn(){
document.forms[0].x1.value = ""
}
</script>
&LTp align="center">  </p>
&LTform action="http://www.geocities.com/ppros/Web_Help_2/toopen.htm" method
="post" name="_HTMLForm"
align="center">
&LTdiv align="center">&LTcenter>&LTtable border="2" width="27%" bordercolor="
#000080"
cellpadding="2">
&LTtr>
&LTtd width="100%" bgcolor="#C0C0C0">&LTdiv align="center">&LTcenter>&LTp>&LTfont
face="Arial"
color="#0000A0">&LTstrong>&LTa href
="http://www.geocities.com/ppros/Web_Help_2/toopen.htm">CLICK </a>&LTinput
name="x1" size="16">&LTa href
="http://www.geocities.com/ppros/Web_Help_2/toopen.htm">
COPY</a></strong></font></td>
</tr>
&LTtr align="center">
&LTtd width="100%">&LTdiv align="center">&LTcenter>&LTtable border="0" width="54%"
cellpadding="2">
&LTtr>
&LTtd width="25%" align="center">&LTinput type="button" name="btn7" value="7"
onClick="document.forms[0].x1.value+=btn7.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btn8" value="8"
onClick="document.forms[0].x1.value+=btn8.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btn9" value="9"
onClick="document.forms[0].x1.value+=btn9.value"> </td>
&LTtd width="25%" align="center">&LTinput type="button" name="btndiv" value=" /
"
onClick="document.forms[0].x1.value+=btndiv.value"> </td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnsin" value="
sin"
onClick="mySin()"></td>
</tr>
&LTtr>
&LTtd width="25%" align="center">&LTinput type="button" name="btn4" value="4"
onClick="document.forms[0].x1.value+=btn4.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btn5" value="5"
onClick="document.forms[0].x1.value+=btn5.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btn6" value="6"
onClick="document.forms[0].x1.value+=btn6.value"> </td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnmul" value=" *
"
onClick="document.forms[0].x1.value+=btnmul.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnlog" value="
lg "
onClick="myLog()"></td>
</tr>
&LTtr>
&LTtd width="25%" align="center">&LTinput type="button" name="btn1" value="1"
onClick="document.forms[0].x1.value+=btn1.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btn2" value="2"
onClick="document.forms[0].x1.value+=btn2.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btn3" value="3"
onClick="document.forms[0].x1.value+=btn3.value"> </td>
&LTtd width="25%" align="center">&LTinput type="button" name="btndif" value=" -
"
onClick="document.forms[0].x1.value+=btndif.value"> </td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnsqrt" value
="sqrt"
onClick="mySqrt()"></td>
</tr>
&LTtr>
&LTtd width="25%" align="center">&LTinput type="button" name="btn0" value="0"
onClick="document.forms[0].x1.value+=btn0.value"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnpnt" value="."
onClick="document.forms[0].x1.value+=btnpnt.value"> </td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnequ" value="
= "
onClick="myRez()"></td>
&LTtd width="25%" align="center">&LTinput type="button" name="btnsum" value="+
"
onClick="document.

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close