Hello all,
I am in the process of rewriting a script that was originally written in ksh, on a Solaris box,
then forced to move to a Windows server I began writing it in PERL, due to network restrictions
I have been able to move back to the original Unix server... The script itself connects to...
Thanks everyone for their help,
I figured it out.
The problem was that I was not passing the data into the function where the form was...
If I place the <input....> line outside of the function
then it works.
Sorry for the delay...
I do (with this curent code) get an error on Mozilla
which reads "document.getElementById("fcheck") has no properties"
This Javascript is embeded in a PERL script
The PERL works perfectly. Here is the code:
(The HTML generated by it all follows)
#!/usr/bin/perl -W
use...
Just FYI,
Here is the my Javascript in its entirty
<script language="JavaScript" type="text/javascript">
function isform() {
var shift = "$SHIFT";
var count = document.forms.length;
alert("Count is at "+count);
if ((count == 0) && (shift == "night")) {
alert("PERL worked.")...
Thanks 13sio,
Unfortunately neither of those worked.
The JS debugger in Mozilla does not show any errors
but IE complains with the following errors:
When using this document.getElementById("fcheck").value="done";
IE gives this error:
Error: 'document.getElementById(...)' is null or not an...
Thanks arn0ld,
This is a sad example of the lack of in-depth
knowledge I have with Javascript.
I've been testing it in both Moz and IE but the debugger
has stopped showing errors...
I am currently using
document.tasks.fcheck.value = "done";
Hello all,
I am having a problem while attempting to send a hidden
input field to an existing for elsewhere in my cgi script.
The PERL part works fine, but when I put the following
javascript line in, it breaks
Where tasks is the name & id of the form.
and fcheck is the name & id of the...
Sorry folks,
It's now a javascript problem.
The PERL part works perfectly, there is something wrong
with the line:
document.forms.tasks.fcheck.value = "done";
I have searched on it quite a bit and I have tried
a few different versions of it but it still doesn't work
so I guess I will have...
Ok I changed my code to:
<script language="JavaScript" type="text/javascript">
function isform() {
var shift = "$SHIFT";
var element = document.getElementById("tasks");
if ((element == null) && (shift == "night")) {
document.forms.tasks.fcheck.value = "done";
}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.