SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2000
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How Do You Get Java Scripts To Run In CGI?

    Hello,

    Can anyone tell me how to get Java Scripts to work inside a CGI script? I use some basic CGI scripts that generate HTML pages (like Form Mail), but I'd like to use some Java Scripts in these "generated" pages. When I've tried to put the Java Scripts in the CGI script, the CGI script stops working.

    Also, some of the java scripts I'd like to run must be placed in the <HEAD> and others in the <BODY> but if these "generated" pages do not have a <HEAD> or <BODY> tag do I just add them in there?

    Thanks,
    Joe

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be helpful to see your CGI with the JavaScript in it, or what exactly the kinds of problems that you are having for that matter, but I expect that the problems you're having have to do with quoting, a typo, or not escaping certain elements within the (I can only guess) Perl code. Post the script, or part of it, and it'll be a lot easier to diagnose.
    <<< johnny chidiac
    johnnydaboy@mac.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •