I have an ASP.Net site with some JS files references. In my master page header I have 3 files that are always referenced and a single function
<script src="/EPS/Scripts/jquery-1.10.0.min.js" type="text/javascript"></script>
<script src="/EPS/Scripts/jquery-ui.min.js" type="text/javascript"></script>
<script src="/EPS/Scripts/menu.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function checkJavaScriptValidity() {
document.getElementById("jsDisabled").style.visibility = 'hidden';
document.getElementById("jsEnabled").style.visibility = 'visible';
}
</script>
Then in one of my aspx pages I have some more references (also added to the page header using ContentPlaceHolders)
*JS1*<script type="text/javascript" language="javascript" src="https://serverapi.arcgisonline.com/jsapi/arcgis/3.5"></script>
<script src="/EPS/Scripts/savestate.js" type="text/javascript" > </script>
*JS2*<script src="/EPS/EPS_Controls/wcMapControl.js" type="text/javascript" > </script>
PROBLEM: I have a user control that uses the files I marked with JS1 and JS2 (these tags are not in the source code). When the control is loaded/used I get an error in the JS or it doesnt run. In the last couple of hours I tried a couple of things (order and place) and it didnt make a difference.
Browsers
IE8: In this current order I get error: "Microsoft JScript runtime error: 'undefined' is null or not an object" in JS1
FF v22.0 I dont get any error message (or atleast I couldnt find them) but I know that my JS didnt run
Now here is my dilemma, I used this SAME control and those SAME JS files in another test project and it works fine w/o any problems there!
Question Any clue/thoughts on why would this happen? What configurations in my project would affect/cause this?