manish Kishore 0 Newbie Poster

Hi All,
I am creating a html file where rows are being Genereated Dyanmically.
Now I want to pass the values of Input box to the perl File.
I am not able to send the values of row to the server side.

Can U please let me know Where I am facing the prob.

Thanks In advance.

perl File:
#!/usr/bin/perl
use strict;
use CGI;
my $q = new CGI;
print $q->header();
my $a = $q->param('txtRow');



print "This is A:- $a" ;
print "\n";


<html>
<head>
<title>Title of page</title>
</head>
<body>
<script type="text/javascript" >
function addRowToTable()
{
var tbl = document.getElementById('sample');
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);


// left cell
var cellLeft = row.insertCell(0);
var textNode = document.createTextNode(iteration);
cellLeft.appendChild(textNode);


// right cell
var cellRight = row.insertCell(1);
var el = document.createElement('input');
el.type = 'text';el.name = 'txtRow' + iteration;el.id = 'txtRow' + iteration;
el.size = 40;


el.onkeypress = keyPressTest;
cellRight.appendChild(el);


}


function keyPressTest(e, obj)
{
var validateChkb = document.getElementById('chkValidateOnKeyPress');
if (validateChkb.checked) {
var displayObj = document.getElementById('spanOutput');
var key;
if(window.event) {
key = window.event.keyCode;
}
else if(e.which) {
key = e.which;
}
var objId;
if (obj != null) {
objId = obj.id;
} else {
objId = this.id;
}
displayObj.innerHTML = objId + ' : ' + String.fromCharCode(key);
}
}
function validateRow(frm)
{
var chkb = document.getElementById('chkValidate');
if (chkb.checked) {
var tbl = document.getElementById('tblSample');
var lastRow = tbl.rows.length - 1;
var i;
for (i=1; i<=lastRow; i++) {
var aRow = document.getElementById('txtRow' + i);
if …
manish Kishore 0 Newbie Poster

Hi All,
I am generating the Rows Dynamically in the table.
Problem is that for the first row calendar pop up window is coming and for the other window it is not coming.

I am pasting the code....
plese let me know where is the error.

<html>
<head>
<title>RFF Repository</title>
</head>

<SCRIPT LANGUAGE="JavaScript" SRC="AnchorPosition.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="PopupWindow.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="date.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="CalendarPopup.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">document.write(CalendarPopup_getStyles());</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var cal1x = new CalendarPopup("testdiv1");
</SCRIPT>

<script type="text/javascript">
	var rowCount = 1;
	
	function addRow(){
		var rowNodeClone = document.getElementById("template_row").cloneNode(true);
		var tableNode 	= document.getElementById("table").getElementsByTagName("TBODY").item(0);
		//var resultNode 	= document.getElementById("innerHtml");
	 
		rowNodeClone.id = "RFF" + (rowCount++);
		rowNodeClone.id = (rowCount++);

		//rowNodeClone.bgColor = "blue";

	    EmptyCellsInNewRow(rowNodeClone);
		tableNode.appendChild(rowNodeClone);
		

	
		//resultNode.value = tableNode.innerHTML
		
	}

	function EmptyCellsInNewRow(rowNodeClone)
	{
		allnodes = rowNodeClone.getElementsByTagName("TD");
		//alert(allnodes.length);
		for(i = 0; i < allnodes.length; i++)
		{
			subnodes = allnodes[i].getElementsByTagName("INPUT");
			for(j=0; j < subnodes.length; j++)
			{
				subnodes[j].value = "";
			}
			subnodes = allnodes[i].getElementsByTagName("TEXTAREA");
			for(k=0; k < subnodes.length; k++)
			{
				subnodes[j].value = "";
			}
		}
	}
</script>
<style>
		body{	
		background:white;
		color:blue	;
		}
	</style>

<center><img src="file:///C:/Documents%20and%20Settings/mkishore/My%20Documents/My%20Pictures/image002.jpg" width="100" height="22"></center>

<center><b>RFF Repository</b></center>
<form name=fp action="rff.pl" method=post >

<table  id ="table" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1316" id="AutoNumber1" height="63">

  <tr>
    <td width="62" bgcolor=#94B6FF align="center" height="70">
    <font face="verdana" color=white style="font-size: 8pt">Si-no</font></td>

    <td width="29" bgcolor=#94B6FF align="center" height="70">
    <font color=white style="font-size: 8pt">Ticket Number</font></td>

    <td width="54" bgcolor=#94B6FF align="center" height="70">
    <font color=white style="font-size: 8pt">Description</font></td>

    <td width="37" bgcolor=#94B6FF align="center" height="70">
    <font color=white style="font-size: 8pt">Priority</font></td>

    <td width="70" bgcolor=#94B6FF align="center" height="70">
    <font color=white style="font-size: 8pt">Understandings</font></td>

    <td width="37" bgcolor=#94B6FF align="center" height="70">
    <font color=white style="font-size: 8pt">Planned Start Date</font></td>

    <td width="30" …
manish Kishore 0 Newbie Poster

Hi All,
I want to pass the value of java script variable in perl?
how can I do that.

Please help me.

Thanks

manish Kishore 0 Newbie Poster

There is a form in which rows are generatiing Dyanamically.
There are 25 Text boxes...
How can I insert the data into Database ?
I am using for the backend programming.
If U want then I can send the Code also

I am stuck at this place ..Please help me out


Thanks in advance
manish

manish Kishore 0 Newbie Poster

Hi,
I have reused the code which was given in the link.
but there is one more problem,when I am adding a new row ,new row contains the data of the previous row.

I want the new row to be blank..
Please let me know ASAP


Thanks in advance,
Manish

manish Kishore 0 Newbie Poster

This is the code....
<html>

<head>
<title>Repository</title>
</head>
<body>

<center><h9>Repository</h9></center>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1291" id="AutoNumber1" height="63">
<tr>
<td width="30" bgcolor=#94B6FF align="center" height="70">
<font face="verdana" color=white style="font-size: 8pt">Si-no</font></td>
<td width="36" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">
Ticket Number</font></td>
<td width="54" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Description</font></td>
<td width="37" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Priority</font></td>
<td width="70" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">
Understandings</font></td>
<td width="37" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Planned
Start Date</font></td>
<td width="30" bgcolor=#94B6FF align="center" height="70">
<font style="font-size: 8pt" color="white">Actual</font>
<font color=white style="font-size: 8pt"> start
Date</font></td>
<td width="44" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">RFF Approval
Date</font></td>
<td width="37" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Planned End
Date</font></td>
<td width="40" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Actual End
(Date Delivery Date)</font></td>
<td width="37" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Project
Delayed Days)</font></td>
<td width="44" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Planned Date
for Customer Signoff</font></td>
<td width="44" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Received
Customer Sign-off</font></td>
<td width="27" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Status</font></td>
<td width="122" bgcolor=#94B6FF align="center" height="70">
<p align="center"><font color=white style="font-size: 8pt">Stage
(Local|Staging|Production)</font></p>

</td>
<td width="45" bgcolor=#94B6FF align="center" height="70">
<font color=white style="font-size: 8pt">Assigned</font><font style="font-size: …

manish Kishore 0 Newbie Poster

hi,
I have seen the code but my requirement is totally different.
I am trying to make a form which looks and work like the Excel sheet.
I am stuck at this point...
When a user hit the Enter button a new row should generated(Dynamically).

Thanks in advance

Manish

manish Kishore 0 Newbie Poster

Hi All,
I am trying to create html form which looks like Excel Sheet.
I am able to some extent, only thing where I am stuck is how to make the rows dynamic(Once the user click Enter a new row should Enter automatically).

Frnds can U please help me here.

Please help me as it is urgent.


Thanks in advance.
Manish