hi,
Need Help
I want to insert ROW using insert() function. on click event. it is woriking fne. I want to display all the row in the form in different window with a button once I click that (send) it all the data in form should go thru mail.
code-
<html>
<head>
<script language="Javascript">
var oRow,oCell;
var i,j;
var stock=new Array;
var heading=new Array;
var cname;
function del()
{
myt.deleteRow();
}
function ins()
{
oRow=myt.insertRow();
for (i=0;i<6;i++)
{
oCell=oRow.insertCell();
oCell.innerHTML="<tr><td><input type='text' size=10 ></td></tr>";
}
}
function show(){
abcd=window.open("","my_new_window","width=500,height=500,top=0,left=0"
;
abcd.document.writeln (document.myForm.stock.value);
}
function ok()
{
alert("Do you want to send this form - Click on Send"
;
}
</script>
</head>
<body>
<form name="myForm" method=post>
Name of Distributor
<table border="1" cellpadding ="1" cellspacing="1" bgcolor="#FFFFFF" id="myt">
<tr>
<th>Order No</th>
<th>Date</th>
<th>Product</th>
<th>Item</th>
<th>Requeried Date</th>
<th>Quantity</th>
</tr>
</table>
<input type=hidden name="form_index" value="cname,sr,odate,rprd,rdate,qty" >
<span>
<input type ="button" name="inst" value="Insert Row" onclick=ins()>
<input type ="button" name="Del" value="Delete Row" onclick=del()>
<input type ="button" name="Ok" value="Confirm" onclick=ok()></span><br><br>
<input type ="button" name="Ok1" value="show" onclick=show()><br><br>
<input type=submit value="send" >
</form>
</body>
</html>
Need Help
I want to insert ROW using insert() function. on click event. it is woriking fne. I want to display all the row in the form in different window with a button once I click that (send) it all the data in form should go thru mail.
code-
<html>
<head>
<script language="Javascript">
var oRow,oCell;
var i,j;
var stock=new Array;
var heading=new Array;
var cname;
function del()
{
myt.deleteRow();
}
function ins()
{
oRow=myt.insertRow();
for (i=0;i<6;i++)
{
oCell=oRow.insertCell();
oCell.innerHTML="<tr><td><input type='text' size=10 ></td></tr>";
}
}
function show(){
abcd=window.open("","my_new_window","width=500,height=500,top=0,left=0"
abcd.document.writeln (document.myForm.stock.value);
}
function ok()
{
alert("Do you want to send this form - Click on Send"
}
</script>
</head>
<body>
<form name="myForm" method=post>
Name of Distributor
<table border="1" cellpadding ="1" cellspacing="1" bgcolor="#FFFFFF" id="myt">
<tr>
<th>Order No</th>
<th>Date</th>
<th>Product</th>
<th>Item</th>
<th>Requeried Date</th>
<th>Quantity</th>
</tr>
</table>
<input type=hidden name="form_index" value="cname,sr,odate,rprd,rdate,qty" >
<span>
<input type ="button" name="inst" value="Insert Row" onclick=ins()>
<input type ="button" name="Del" value="Delete Row" onclick=del()>
<input type ="button" name="Ok" value="Confirm" onclick=ok()></span><br><br>
<input type ="button" name="Ok1" value="show" onclick=show()><br><br>
<input type=submit value="send" >
</form>
</body>
</html>