Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

IIS7 and javascript files

Posted on 2013-12-31
8
Medium Priority
?
365 Views
Last Modified: 2014-02-19
I have a website running on IIS6.  The index page holds frameset for content and a couple other pages.  The index page also has a large javascript file included at the top of the page with a common objects that are accessed like this:  top.appObject.<parameter name>.  This architecture works perfectly.

The problem is that I am moving this site to IIS7.  It doesn't use any .net code at all.  I have configured the site to be (I think) a duplicate of the existing site, but I can't seem to reach the included javascript file ... when trying to call any function in the file I get a 'undefined' error.

any help appreciated.
0
Comment
Question by:dhenderson12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 1500 total points
ID: 39748691
the first test i would do is put the path to the javascript file directly in your browser and see if it comes up, if not, your paths are incorrect
0
 

Author Comment

by:dhenderson12
ID: 39748805
yes, it comes up fine.
0
 

Author Comment

by:dhenderson12
ID: 39749850
I would like to point out that this is a working web site on iis6.  the only change has been moving it to iis7.  it's not a browser issue (IE10) since that also works with the existing site.  I'm really confused here as to the error with pathing, since it is set up the same way.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 33

Expert Comment

by:Big Monty
ID: 39751268
just to verify that it is indeed a path issue (because to be honest I have no idea what else it could be) can you copy the javascript directly into the page and see if everything works? This'll eliminate any potential compatibility issues.
0
 

Author Comment

by:dhenderson12
ID: 39756789
This is a very large js file, but I did copy it into the page between
<script language='javascript'></script> tags.  The page just renders it as text.

I then copied the file to the same folder as the calling page and still got the "undefined" error.

I checked the mime type and .js = application/x-javascript.

Is there anything else I should check?
0
 

Author Comment

by:dhenderson12
ID: 39779321
does anyone have any ideas?
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39779338
have you tried testing just a simple javascript include file? something that just would fire off an alert or something?
0
 

Author Comment

by:dhenderson12
ID: 39785284
I will try that this week.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question