D
Dave
Greetings
I had a working Perl CGI code which generates HTML page based on the
paramaeters.
I want to add a little JavaScript function like
=========================================
<SCRIPT language="JavaScript">
<!--
//Function go_download to pop up confirm window
function go_download()
{
var is_sure = window.confirm("Are you sure you want to download?");
if (is_sure == true)
{
print "<input type=submit value=\"Get Patches\">";
print end_html();
}
}
<FORM>
<INPUT type ="button" value = "Click to Get Patches"
onClick = "go_download();">
</FORM>
//-->
</SCRIPT>
=========================================================
But it comes error like this
"500 Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request."
I had a working Perl CGI code which generates HTML page based on the
paramaeters.
I want to add a little JavaScript function like
=========================================
<SCRIPT language="JavaScript">
<!--
//Function go_download to pop up confirm window
function go_download()
{
var is_sure = window.confirm("Are you sure you want to download?");
if (is_sure == true)
{
print "<input type=submit value=\"Get Patches\">";
print end_html();
}
}
<FORM>
<INPUT type ="button" value = "Click to Get Patches"
onClick = "go_download();">
</FORM>
//-->
</SCRIPT>
=========================================================
But it comes error like this
"500 Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request."