Monday, March 4, 2013

How to edit MS Word and excel in browser in javascript

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
<style>
<!--
.Hlink {cursor: hand; text-decoration: underline; color: #0066CC; font-weight:normal;}
-->
</style>
</head>

<SCRIPT>
<!--

function OpenFromLocal()
{
               document.all.OA1.OpenFileDialog();
    
  
}

//-->
</SCRIPT>



<body>

<table border="1" width="100%" height="100%" id="table1" bordercolorlight="#008080" bordercolordark="#008080" cellspacing="1">
  
    <tr>
        <td bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" rowspan="18" width="81%">
        <object classid="clsid:569EB2D6-161D-4AE0-9804-640E724A297A" id="OA1" width="100%" height="100%" codebase="http://www.edrawsoft.com/download/edword.cab#version=8,0,0,376">
            <param name="Toolbars" value="-1">
            <param name="LicenseName" value="30daytrial">
            <param name="LicenseCode" value="EDWD-3333-2222-1111">
            <param name="BorderColor" value="15647136">
            <param name="BorderStyle" value="2">
        </object>
        <script language="JavaScript" type="text/javascript" src="NoIEActivate.js"></script>
        </td>
    </tr>
    <tr>
        <td bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" width="17%">
        <div class="Hlink" onClick="OpenFromLocal()">
            Open From Local</div>
        </td>
    </tr>

</table>


</body>

</html>


How to Calculate the Future Investment Value of Investment.

Below java program for calculate future investment value. Here calculate s using the formula futureInvestmentValue =investmentAmount x (...