Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling function in external file?

Status
Not open for further replies.

Riku

Programmer
Joined
Sep 2, 2001
Messages
119
Why does my code not work. I do have MIME defined.


external.asp
<html>
<head>
</head>

<body>
<script language=&quot;JavaScript1.1&quot; SRC=&quot;testing.js&quot;>
testMe();
</script>
</body>
</html>

testing.js
function testMe(){
alert(&quot;testMe&quot;);
} F: Riku Tuominen
riku.tuominen@benchmarking.fi
 
Nevermind!
I fixed it by changeing the main file to:

<html>
<head>
</head>
<body>
<script language=&quot;JavaScript1.1&quot; SRC=&quot;testing.js&quot;></script>
<script language=&quot;JavaScript1.1&quot; type=&quot;text/JavaScript1.1&quot;>
testMe();
</script>
</body>
</html> F: Riku Tuominen
riku.tuominen@benchmarking.fi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top