I am working on a webapp using the ArcGIS Javascript API. I noticed that when I first load the map (currently living on a development server), the infoWindow does not open (when clicking on a feature). When I refresh/reload the map, the infoWindow then works as it should. This behavior happens in both IE and Firefox. I am guessing there is some problem with my initial load, perhaps the 'init' function is loading before the libraries are finished loading somehow..? I appreciate any suggestions. Below is the the HTML setup. Currently I am using $(function () {
dojo.ready(init);
});
to add the init setup in the main .js file. Thanks, Jason
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7", "IE=9" />
<link href="mainCopy.css" rel="stylesheet" type="text/css" />
<script src="jquery.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="http://localserver/arcgis_js_api/library/2.1/arcgis/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" type="text/css" href="http://localserver/arcgis_js_api/library/2.1/arcgis/js/dojo/dojox/grid/resources/Grid.css">
<link rel="stylesheet" type="text/css" href="http://localserver/arcgis_js_api/library/2.1/arcgis/js/dojo/dojox/grid/resources/claroGrid.css">
<link rel="stylesheet" type="text/css" href="http://localserver/arcgis_js_api/library/2.1/arcgis/js/dojo/dojox/image/resources/image.css">
<script type="text/javascript">
var djConfig = { parseOnLoad: true };
</script>
<!-- Tell the browse to include the dojo library -->
<script type="text/javascript" src="http://localserver/arcgis_js_api/library/2.1/arcgis/"></script>
<script src="application.js" type="text/javascript"></script>
</head>
<style type="text/css"> </style>
<body class="claro">
......
