Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by chance42

  1. chance42

    PERL CGI script waits until complete to write webpage

    I's always those little things.
  2. chance42

    PERL CGI script waits until complete to write webpage

    Thank you KevinADC, that did the trick.
  3. chance42

    PERL CGI script waits until complete to write webpage

    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...
  4. chance42

    Sending data to an existing form

    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.
  5. chance42

    Sending data to an existing form

    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...
  6. chance42

    Sending data to an existing form

    One problem with those it that it needs to be a hidden input. Not that it really matters anyway because I still get the same errors listed above.
  7. chance42

    Sending data to an existing form

    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.")...
  8. chance42

    javascript in perl cgi page

    I have moved to the Javascript forum the thread is titles "Sending data to an existing form"
  9. chance42

    Sending data to an existing form

    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...
  10. chance42

    javascript in perl cgi page

    No, fcheck is a hidden text variable
  11. chance42

    javascript in perl cgi page

    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";
  12. chance42

    Sending data to an existing form

    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...
  13. chance42

    javascript in perl cgi page

    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...
  14. chance42

    javascript in perl cgi page

    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"; }...
  15. chance42

    javascript in perl cgi page

    Whoops, the line if ((element == null) && ($SHIFT == "night")) { really is in both... Mike

Part and Inventory Search

Back
Top