Solved

Combining CGI and Javascript

Posted on 1997-05-12
2
192 Views
Last Modified: 2013-12-25
I am writing CGI in perl which creates HTML documents on the fly. Within the HTML is Javascript.

To test this process I first of all create dummy html files which contain the Javascript to ensure that the Javascript works correctly.

Secondly I write a script to create the desired output. I pipe this output to a html file and ensure that the html is correct (as in part 1).

However when the script is installed on the server (so that the html is output to the browser) the Javascript fails to run. It is as if the Javascript was not even present although a 'View Source' shows that it is correct.

This is running on an Intranet system with Netscape 2.

Any ideas?
0
Comment
Question by:tanstaafl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
icd earned 200 total points
ID: 1828008
I had a similar (if not identical) problem some time ago.

In my case I found that I had 'hidden' the script from older browsers using the format...

<SCRIPT LANGUAGE="javascript"><!--
.
.
.
//--></SCRIPT>

And for some reason it was the comment part that confused the browser into ignoring all the script!

Remove the comment and you will probably find it will work. Since you are running on an Intranet with Netscape there is no need for it.
0
 

Author Comment

by:tanstaafl
ID: 1828009
Thanks. That worked, and a very quick reply too. :-)
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question