I imported the javascript file in the head like this :
<script type="text/javascript" src="js/ISO_TR_230-9.js"></script>
That file contains a function calc1 which is set up like this :
function calc1() {}
I am calling calc1 from a button that is set up like this :
<button type="button" onclick="calc1()">Calculate</button>
Upon clicking the button I receive the error calc1 is not defined. Is there anything that could be happening where this occurs?
calc1
or 3) contains errors that prevents #1 or #2. Checking the resource network traffic (e.g. with Firebug or Developer Tools) should help .. – user166390 Aug 1 '12 at 20:47