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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

including external javascript asp

Status
Not open for further replies.

teash

IS-IT--Management
May 3, 2005
99
US
Ok guys, I've search and tried everything I possibly can to get this working. Using Firefox and the javascript debugger I find the error being unable to call the functions located in the file "mouseovr.js"

login.asp is my file, located at the root.
In the root there are a few folders, mainly,
"Bin", which as holds the file mouseovr.js

-------------------
<html>
<head>
<script language="JavaScript" src="/Bin/mouseovr.js">
</script>
</head>
------------------

This application worked fine using Back Office Server 4.5 (windows nt) IIS 4, recently we upgraded to Small Business Server 2003 (IIS6) and it hasn't worked right since (because of these include errors).

I've uploaded this script to a MS hosting site running Windows Server, IIS 6 and the includes work.

Am I forgetting something? I've tried all possible combinations of the <script> tags and still get the same error.

At this point.. I've ran out of options.... the final resort, begging for help!!!







 
Check that the case of your paths and filenames matches those on your server - it could well be a case-sensitivity issue.

Check that you can visit the file directly (not in an HTML page) - by visiting the URL in a browser. If that doesn't work for you, then including it in a page is fruitless.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hello, thanks for the reply. I should have added that I did try to get to it via the url.

and got nothing!!! well... 404 not found :(

I changed the permissions for the directory and it won't even recognize the "Bin" directory. That's not found either.

Wierd thing is that in the root directory, there is another one called "members" (and many more) and those work. The "Bin" and "members" folder both have the same permissions.

I wonder what's going on here....
 
you know the problem is having a directory named "Bin" or "bin".

I dropped those includes into another directory I made, and brought forth many fruits!

 
bin is typically used as a name for directories/folders that store binary (executable) files.

Lee
 
so chances are it had something to do with Micro$oft Small Business Server doing something special with this folder. Took me forever to figure out what was wrong!! I just never thought about a directory name being incorrect.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top