Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 16th, 2004, 01:42 PM
dchesterton dchesterton is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 19 dchesterton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question external javascript not working on host server !!!!!!!!!

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 !!!!!!

Reply With Quote
  #2  
Old November 16th, 2004, 02:36 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,781 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 45 m 55 sec
Reputation Power: 470
Make sure the link to include the file is correct.

Reply With Quote
  #3  
Old June 27th, 2006, 12:34 PM
edu edu is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 1 edu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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...

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > external javascript not working on host server !!!!!!!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT