D
Dessip
Hey,
I'v had this problem for a while and I don't know why its not working.
If i place script in the ASP Page (HTML Section) then it works fine,
thou if i try to refrence a JS file, it wont work.
I have tried using <Script src="JavaScriptFile"
Type="text/Javascript"></script> in the head, but I had no joy, thou if
I include the JavaScript in <script> brackets, it works fine, I have
also tried it with alert and the same happens, no matter what I try and
do, the java will only work when its in the page, otherwise I get the
error Object Expected.
The test code I have been trying is:
<html>
<head>
<Script src="bin/Test.js" type="text/javascript"></script>
</head>
<body onLoad="testFunction();">
</body>
</html>
and test function is:
function testFunction()
{
alert('test');
}
thanks for any help.
I am developing with ASP.NET V1.1
I'v had this problem for a while and I don't know why its not working.
If i place script in the ASP Page (HTML Section) then it works fine,
thou if i try to refrence a JS file, it wont work.
I have tried using <Script src="JavaScriptFile"
Type="text/Javascript"></script> in the head, but I had no joy, thou if
I include the JavaScript in <script> brackets, it works fine, I have
also tried it with alert and the same happens, no matter what I try and
do, the java will only work when its in the page, otherwise I get the
error Object Expected.
The test code I have been trying is:
<html>
<head>
<Script src="bin/Test.js" type="text/javascript"></script>
</head>
<body onLoad="testFunction();">
</body>
</html>
and test function is:
function testFunction()
{
alert('test');
}
thanks for any help.
I am developing with ASP.NET V1.1