Calculations

wxdqz

New Member
:confused:

i need some help for my calculatioins part..
i have some troubles wit function
here is wat i have done
<html>
<head>
<title> Machining Time For Turning </title>
</head>

<body bgcolor="aqua">
<Script language="javascript">

function machiningTime(number) {
with (document.number) {


machiningtime=length/cuttingspeed*feedrate;

}
}

</Script>

<Form Name="number" Method="post" enctype="text/plain">



<table border="0" bgcolor="mediumslateblue" width="100%">
<tr>
<td width="100%" align="right" colspan="2" height="45">
<p align="center">
<font size="5" color="White"> Machining Time for Turning </font> </td>
</tr>
<tr>
<td width="35%" align="right" height="45"><b> Length:</b> </td>
<td width="65%"><input type="text" name="length" size="25"></td>
</tr>
<tr>

<td width="35%" align="right" height="45"><b> Cutting Speed:</b> </td>
<td width="65%"><input type="text" name="cuttingspeed" size="25"> </td>
</tr>
<tr>
<td width="35%" align="right" height="45"><b> Feed Rate:</b> </td>
<td width="65%"><input type="text" name="feedrate" size="5"> </d>
</tr>
<tr>
<td width="35%" align="right" heigt="45"><b> Machining Time:</b> </td>
<td width="65%"><input type="text" name="time" size="10"></td>
</tr>
<tr>
<td width="35%">
<p align="center"><input type="button" value=http://www.webdeveloper.com/forum/archive/index.php/"maching time" oncClick="Calculate(number)"></p>
</td>
<td width="65%"><input type="reset" value="Reset" name="reset"></td>

</table>




</body>
</html>

it's suppose to calculate the machining time.
Machining time=Length/cuttingspeed*feedrate

Need help badly..
:confused:
 
Back
Top