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";
}...
OK, you couldn't let me live with my crappy way
of doing it, and it doesn't take much for me to
start messing with things again...
first my crappy code:
<script language="JavaScript" type="text/javascript">
function isform() {
var element = document.getElementById("tasks");
if...
Thanks Duncan,
My page is a series of many forms that send both
regular and hidden data, my problem was that the JS
worked outside the form (at least as far as determining
when the last task was submitted) but not inside
where I needed the hidden input line to be written.
Thanks everyone,
I had tried Pauls method several different ways but I couldn't get it to work correctly...
I have tried a variety of different ways repeatedly
for a few weeks sometimes getting different results
from the same code.
I have found a solution though, it's not as elegant
as I...
Hello all,
It’s time once again to admit that I cannot do
everything myself and ask for help.
I have created a web based to-do list and have a bit of javascript that will tell when the last Task has been
completed no matter the order of completion.
The problem I am having is that upon the...
Thanks philote!!!
I was starting to go wiggy.
It turns out we have some proxy crap in place to keep
poeple from downloading stuff to the server or surfing
through the server...
Now the hard part is to see if I can get that opened up.
Thanks everyone!!
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.