1

I use an external JavaScript file (.js) in a classic ASP program. I added a new function 'isFutureDate(dt)' to this file. The new function works fine when using Chrome browser to access the web page. When using IE 11, it showed the error of "isFutureDate() is undefined". Other functions in external .js are working.

I run into this type of problems several times recently. The existing functions in external .js file are working, but the newly added ones didn't work. I had to move those functions back to the ASP program, then they worked fine. My web server is IIS 7.5. I am not sure whether this issue is related to type of web server I am using.

I read several posts about problems with JavaScript function in external .js file. But, I have not found one that describe the same problem as mine.

2
  • 2
    Most likely this is a caching issue. Have you tried clearing your cache and refreshing? Commented Oct 6, 2016 at 19:07
  • I second that @Hydrothermal Commented Oct 7, 2016 at 1:52

2 Answers 2

1

I had a similar problem after company upgraded IE - answer: ensure the correct DOCTYPE is at the top of the page

Sign up to request clarification or add additional context in comments.

Comments

1

Hi Below are the root cause

  1. check the order of the Js file. it should be in correct order.

  2. If you are using multiple Js file. Use bundling because some browser have limitation of calling concurrent HTTP Call. if the limit exceeds it will stop rendering the script

  3. It should be the caching issue also open in Incognito window.

  4. last Debug using Inspect Element.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.