shevegen
04-01-2003, 02:44 PM
Hi. The problem: I have a .html page and there, via src="base.js",
i am fetching some javascript of it.
Now the JS code in particular involves document and submit and is short. (after the function name, its document.formular5.submit(); )
If i put the JS in the .html page via
<script language="javascript">
</script>
it works.
If I put it into a .js file, it no longer works.
I would like to get it to work because I will have to rely on this JS code for several html-pages and adding JS into each html page is not how i would like to see this solved.
I suspect that something either with the submit or the document is not correct (in the .js file).
If someone would have an idea what could be wrong ?
i am fetching some javascript of it.
Now the JS code in particular involves document and submit and is short. (after the function name, its document.formular5.submit(); )
If i put the JS in the .html page via
<script language="javascript">
</script>
it works.
If I put it into a .js file, it no longer works.
I would like to get it to work because I will have to rely on this JS code for several html-pages and adding JS into each html page is not how i would like to see this solved.
I suspect that something either with the submit or the document is not correct (in the .js file).
If someone would have an idea what could be wrong ?