in reply to embedding Javascript in perl generated html

If you have a unix box and LWP installed "GET" the html from the cgi app and then compare it to the html you generate by hand. You do not need to use Content-type: application/x-javascript but you do need to make sure it is located in the properly formed head section. I tend to do an include on a core JS file with many of the reusable functions and just place the functions that are not global in the template or html producing functions.


-Waswas
  • Comment on Re: embedding Javascript in perl generated html