Results 1 to 3 of 3
How do we write Java Script code in PerlCGI?
I have below Java Script code to fit in PerlCGI
<script type="text/javascript">
<!--
function validate() {
with (document.hform) {
var alertMessage ...
- 02-26-2009 #1Linux Newbie
- Join Date
- Jan 2008
- Posts
- 114
How to write Java Script in PerlCGI
How do we write Java Script code in PerlCGI?
I have below Java Script code to fit in PerlCGI
<script type="text/javascript">
<!--
function validate() {
with (document.hform) {
var alertMessage = "The following REQUIRED fields\nhave been left empty:\n";
if (item.value == "") {
alertMessage += "\nitem"
} if (adesc.value == "") {
alertMessage += "\nadesc"
} if (cost.value == "") {
alertMessage += "\ncost"
} if (os.value == "") {
alertMessage += "\nos"
} if (quote.value == "") {
alertMessage += "\nquote"
} if (dim.value == "") {
alertMessage += "\ndim"
} if (pcord.value == "") {
alertMessage += "\npcord"
} if (pspec.value == "") {
alertMessage += "\nPlease enter your price range"
} if (alertMessage != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMessage);
return (false);
} return (true);
}
}
// -->Switched to Scripting
- 02-26-2009 #2
Do you want to convert that to Perl or do you want to use Perl to output the Javascript?
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 02-26-2009 #3Linux Newbie
- Join Date
- Jan 2008
- Posts
- 114


Reply With Quote
