Hi, did you resolve your error? I have the same error. I know what the
problem is but i can't fix it. The problem is that the browser keeps
loading an old copy of the include file. So when javascript in my html
page calls a newly added function in the .js file I get the same error as
you (becasue the new function does not exist in the outdated copy of the
js file). What really annoys me is that i found the js file in the
browser's (Explorer v5) temporary cache/folder and i deleted. i can't
believe but as soon as i open the html page in the browser the outdated
file re-appears in the cache instead of it downloading the updated js file-
- it's like it has a hidden cache for the cache itself! I have searched
the entire hard disk and could not find a second hidden cache.
tom
> Hi,
>
> I am trying to include a javascript file in the html file. As I execute
> the html file, it is producing javascript error like 'Object Expected'.
I
> could not trace out where my mistake is. Appreciate if some one help me
> out in this regard.
>
> Smitha
>
> My code is as under:
> =================================================================
> test.html
> ---------
> <html>
> <head>
> <script language="JavaScript"
> src="/javaScripts/testScript.js"></script>
> </head>
> <body>
> <form>
> <input type="button" name="test" value="Test OK" onClick="getOK
()">
> <input type="button" name="close" value="Close" onClick="closeMe
()">
> </form>
> </body>
> </html>
>
> testScript.js
> -------------
> <SCRIPT LANGUAGE="JavaScript">
> function getOK() {
> alert("Test is OK");
> }
> function closeMe() {
> window.close();
> }
> </SCRIPT>