I have this:
/includes/modules/pages/index/on_load_assign.js
with this:
and I have this:
/includes/modules/pages/index/jscript_assign.js
with this:
Code:
function first_assign() {
alert('assignments called');
}
When I view the source of my index page I see this:
Code:
<script type="text/javascript" src="includes/modules/pages/index/jscript_assign.js"></script>
</head>
<body id="indexBody" onload="first_assign();">
If I'm reading it right, when my page loads an alert box should pop up that reads "assignments called". But it's not doing that. Any ideas why?
When I change on_load_assign.js to a simple alert function it works fine, but it doesn't seem to be able to call the outside function.