http://www.perlmonks.org?node_id=1004185


in reply to javascript inside HTML::Template file

CGI programs are a multi-level, multi-language endeavor. You have three different languages (Perl, HTML, and Javascript) and two different environments (server and browser). An error or setting in just one of these can cause the whole thing to fail.

In order to successfully debug a problem like this, you have to divide and conquer. Perform simple tests that verify that just one part of the equation is working correctly. That will let you narrow down where the real problem is.

Some examples of tests you might perform:

And so on. In this way you can figure out exactly where the problem is. If you still can't get it to work, you will at least have learned enough to post a specific, well-informed question.



When's the last time you used duct tape on a duct? --Larry Wall
  • Comment on Re: javascript inside HTML::Template file