As I understand it, perl has a tendency to interpret some of the syntax used in javascript code.
My way round this is to "wrap" the javascript up as a .js file, copy this to the server, then call it in the html.
The javascript can be left out of the html.pl file altogether.
This is particularly useful for menu scripts as a change to the js file is a global change.
-------------
David Olley
Anglo & Foreign International Limited,
http://www.firehelmets.co.uk
There are 10 types of people in the world: those who understand binary, and those who don't.
My way round this is to "wrap" the javascript up as a .js file, copy this to the server, then call it in the html.
The javascript can be left out of the html.pl file altogether.
This is particularly useful for menu scripts as a change to the js file is a global change.
-------------
David Olley
Anglo & Foreign International Limited,
http://www.firehelmets.co.uk
There are 10 types of people in the world: those who understand binary, and those who don't.