Hi,<br><br>I have an extracted all the javascript that is used for displaying the map into a separate .js file.&nbsp; This works very well, the only problem being that, I cannot figure out how to set the mouseposition control to be in a separate div.&nbsp; I initialize the control like so:<br>
<br>map.addControl(new OpenLayers.Control.MousePosition({element: $(&#39;mydiv&#39;)}));<br>&nbsp;<br>where mydiv will exist on every page i use the map on.&nbsp; As an experiment i include all the JavaScript contained within the external javascript in head section, and the MousePosition is displayed in the correct div.<br>
<br>Is there a way to set the div for the mouse position if you are including the javascript to display the map as an external file ??<br><br>Thanks in advance,<br><br>Andy<br>