
June 27th, 2006, 12:34 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 1
Time spent in forums: 10 m 36 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by dchesterton hi i dont no if ne1 can help me but i have some javascripts on my site which work perfectly locally or on the internet but when i have used them on iis 5.1 i always get the same error "object expected". these scripts are in external .js files. wen i take the scripts out of the javascript files and put them on my page they work. i have given read and script source access to all the files so i still don't no whats wrong. please help this has been really annooying, as usual ne help will b greatly appreciated !!!!!! |
I had that same exact problem just now in 2006, it appears IIS 5.1 has problems interpreting the javascript MIME type, just remove the "type" attribute from your <script> tags in the HTML code and it should work smoothly...
Change:
Code:
<script language="javascript" type="text/javascript" src="yourJs.js"></script>
To:
Code:
<script language="javascript" src="yourJs.js"></script>
Better late than never...
|