You should learn to use the browser tools to debug these issues (F12 on IE or Chrome).

If you have "var url = <%=ResolveUrl("~/controller/action") %>" in your external js file, then that typically won't work. I'm having a lot of problems linking my JS file to my HTML file, and I can't figure out what's wrong. 8 comments, last by Dante12129 6 years, 11 months ago Click to access the case study. Answered Active Solved. Javascript not working when put in external file - need help! By using this site, you agree to our updated, external javascript file not working on server, Sep 2 '09

:o) If this is your first visit, be sure to check out the FAQ by clicking the link above. EnableViewState="true" External Javascript file not working General and Gameplay Programming Programming. but it's not showing any error in the html part, where should i keep the reference for the javascript in content page because my javascript has more than 50 lines .so i want to keep it as seperate js file. If you have more than one external JavaScript file, then add it in the same web page to increase performance of the page. Questions about external javascript files - why is this not working?

First check the network tab to ensure the js file is found (ie that it doesn't have a status of 404), then check the console for errors. try to access the file through the navigation bar. Last post Feb 25, 2009 10:55 AM by qwe123kids,

I apologize in advance if my code doesn't post right. You may have to register before you can post: click the register link above to proceed.

Questions about external javascript files - why is this not working? Note that the path over here is relative . are you sure the file exists at the designated place on the server? Joined: Oct 07, 2016 04:43 AM . The web browser needs …

Asked: 16. Problem is with ClientID in external js file. Create an external JavaScript file and add the jQuery code in it.ExampleLet’s say the name of the external file is demo.js. Reply. 3762 Views 6 Replies 1 Answers smuthu. Ask Question. Loading an external.JS script from within the script Tag (Can itbe dun)???

Javascript not working when put in external file - need help! 8 comments, last by Dante12129 6 years, 11 months ago Click to access the case study. How to add code to your Question or Reply. I would rather have my code defined in an external file, so getting it to work that way would be ideal. i think the path to the file is not correct. Is Your Javascript file is Kept in same Place where is your page or in some Other Directory.. external javascript file is not working for content page. If two js files are dependent on one another, then a failure in one file may affect the execution of the other dependent file. You should put all javascript code in a