Brendan Nolan
07-09-2003, 02:30 AM
I have written a javascript that consists only of a function. When I include it within the page that I want to run the script from the thing works fine. However if I link to an external file like so:
<script language="JavaScript" src="somefile.js.php"></script>
It gives me an "object expected" error. The only wierd thing about what I am doing is that the extension on the file is php because I need to use information from a database, and that shouldn't cause any problems as far as I know as I have used some really freaky extensions before.
What could I possible be doing wrong?
<script language="JavaScript" src="somefile.js.php"></script>
It gives me an "object expected" error. The only wierd thing about what I am doing is that the extension on the file is php because I need to use information from a database, and that shouldn't cause any problems as far as I know as I have used some really freaky extensions before.
What could I possible be doing wrong?