Reputation: 1255
I'm using ASP.Net and whenever I create a script file or try to include a script file like jQuery they aren't working. I am doing just a regular localhost server and none of the scripts are working. Upon further examination using firebug I look at whats being referenced in those scripts and it shows html code for a 404 error. I know the scripts and files are there and I can navigate directly to them in the browser but for some reason I can't reference them in my page.
Here is a screenshot:
404 Error http://img517.imageshack.us/img517/8058/404z.png
alt text http://img202.imageshack.us/img202/174/4042.png
Upvotes: 0
Views: 2231
Reputation: 203
The problem is rather straightforward to me.
The webpage: http://localhost:49464/Seth-Duncan.com/Main.aspx
The jquery: http://localhost:49464/scripts/jquery-1.4.2-min.js
Unsurprisingly, there doesn't seem to be a jquery script there. Most likely, it would work fine on the production server.
Upvotes: 1
Reputation: 16032
The path to the scripts file is wrong - there is ".." in it. You should specify path on the server, not on the file system.
Upvotes: 0
Reputation: 449435
My bet is that the relative reference to the script:
../script/jquery-1.4.2-min.js
breaks because your current page is in a directory where it won't work. (maybe caused by a rewritten URL).
Can you show
Upvotes: 3