Hi All...
Any one help me with the above weird error
I have a code like below
[CODE=perl]print <<"HTML";
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta http-equiv="cache-control" content="no-cache">
HTML
print <<"END_OF_HTML1 ";
<script language="JavaS cript" src="get_job_va r.js"></script>
<script language="JavaS cript" src="get_func.j s"></script>
<script language="JavaS cript" src="js/emp.js"></script>
</head>
END_OF_HTML
prn emp();
print <<"END_OF_HTML2 ";
<tr><td width="100%">
<form name="empForm" method="POST" action="body.pl " target="s_body" onSubmit="retur n ValidateForm(th is);">
<table width="100%" border="1" style="font: 8pt Arial, Helvetica">
<thead>
<tr bgcolor="#CAD7E A" >
<th align="center"> EMP Criteria</th>
</tr>
</thead>
<tbody id="tbody_30" style="display: " >
END_OF_HTML
[/CODE]
Below this there are some more functions that is used to select some options and then submit the report
Now I want to get rid of prnemp() and use only [HTML]<body onLoad="initPar am(empForm);">< script language="javas cript">top.menu fr.MSG = "$msg";</script>[/HTML]
to initialize the parameters. So, when I try to place the above 3 statements in between the END_OF_HTML1 and END_OF_HTML2, Its giving the msg like "Error: 'null' is null or not an object
Plzz help me :)
sub prnemp()
{
[html] <body onLoad="initPar am(empForm);">
<script language="javas cript">
top.menufr.MSG = "$msg" ;
</script>
<table width="100%">
<tr><td width="100%">
<table width="100%" border="1">
<thead>
<tr bgcolor="#CAD7E A" >
<th colspan=3 >
<table cellspacing=0 cols=2 width="100%" style="font: 8pt Arial, Helvetica">
<tr>
<th nowrap=1 align="left"><D IV onclick="Button Click('pc');">< img id="expimg" src="image/Collapse.gif">& nbsp; Quic k Count -- $emp</DIV></th>
<th nowrap=1 align="right">( $empCode)</th>
</tr>
<tr>
<th nowrap=1 colspan=2 align="right">L ast Update: $LastUpd</th>
</tr>
</table>
</th>
</tr>
</thead>
<tbody id="tbody_qc" style="display: none" >
<tr bgcolor="#F1F1F 3">
<td NOWRAP=1>Summar y</td>
<td align=center># of<br>Surveys</td>
<td align=center>% of<br>Surveys</td>
</tr>
<tr bgcolor="#F1F1F 3">
<td NOWRAP=1>Scores </td>
<td align=center>$e mp</td>
<td align=center>$p rcnt</td>
</tr>[/HTML]
}
Any one help me with the above weird error
I have a code like below
[CODE=perl]print <<"HTML";
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta http-equiv="cache-control" content="no-cache">
HTML
print <<"END_OF_HTML1 ";
<script language="JavaS cript" src="get_job_va r.js"></script>
<script language="JavaS cript" src="get_func.j s"></script>
<script language="JavaS cript" src="js/emp.js"></script>
</head>
END_OF_HTML
prn emp();
print <<"END_OF_HTML2 ";
<tr><td width="100%">
<form name="empForm" method="POST" action="body.pl " target="s_body" onSubmit="retur n ValidateForm(th is);">
<table width="100%" border="1" style="font: 8pt Arial, Helvetica">
<thead>
<tr bgcolor="#CAD7E A" >
<th align="center"> EMP Criteria</th>
</tr>
</thead>
<tbody id="tbody_30" style="display: " >
END_OF_HTML
[/CODE]
Below this there are some more functions that is used to select some options and then submit the report
Now I want to get rid of prnemp() and use only [HTML]<body onLoad="initPar am(empForm);">< script language="javas cript">top.menu fr.MSG = "$msg";</script>[/HTML]
to initialize the parameters. So, when I try to place the above 3 statements in between the END_OF_HTML1 and END_OF_HTML2, Its giving the msg like "Error: 'null' is null or not an object
Plzz help me :)
sub prnemp()
{
[html] <body onLoad="initPar am(empForm);">
<script language="javas cript">
top.menufr.MSG = "$msg" ;
</script>
<table width="100%">
<tr><td width="100%">
<table width="100%" border="1">
<thead>
<tr bgcolor="#CAD7E A" >
<th colspan=3 >
<table cellspacing=0 cols=2 width="100%" style="font: 8pt Arial, Helvetica">
<tr>
<th nowrap=1 align="left"><D IV onclick="Button Click('pc');">< img id="expimg" src="image/Collapse.gif">& nbsp; Quic k Count -- $emp</DIV></th>
<th nowrap=1 align="right">( $empCode)</th>
</tr>
<tr>
<th nowrap=1 colspan=2 align="right">L ast Update: $LastUpd</th>
</tr>
</table>
</th>
</tr>
</thead>
<tbody id="tbody_qc" style="display: none" >
<tr bgcolor="#F1F1F 3">
<td NOWRAP=1>Summar y</td>
<td align=center># of<br>Surveys</td>
<td align=center>% of<br>Surveys</td>
</tr>
<tr bgcolor="#F1F1F 3">
<td NOWRAP=1>Scores </td>
<td align=center>$e mp</td>
<td align=center>$p rcnt</td>
</tr>[/HTML]
}
Comment