Just would like to add that I changed the code following some more tutorials I found / examples thanks to Chris, and this is the new code :<br><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;OpenLayers Example&lt;/title&gt; 
<br>&lt;script src=&quot;<a href="http://yancho.no-ip.org/~yancho/OpenLayers.js">http://yancho.no-ip.org/~yancho/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br><br><br>&lt;script defer=&quot;defer&quot; type=&quot;text/javascript&quot;&gt; 
<br>//var lon = 164;<br>//var lat = 162;<br>var map, layer;<br><br><br><br>function init(){<br>var options =<br>{<br>maxExtent: new OpenLayers.Bounds(625102.34974933861,215593.742071 ,656343.383138 ,239014.742071),<br>maxResolution: 302051/1024,
<br>zoom: 0,<br>projection: &quot;EPSF:4326&quot;, <br>//&#39;controls&#39;: [],<br>units: &quot;m&quot;,<br>numZoomLevels: 12<br>};<br>map = new OpenLayers.Map(&quot;map&quot;, options);<br>//map.addControl(new OpenLayers.Control.MousePosition
());<br>map.addControl(new OpenLayers.Control.LayerSwitcher());<br><br><br>layer = new OpenLayers.Layer.MapServer( &quot;Streets Layer&quot;,<br>&quot; <a href="http://yancho.no-ip.org/~yancho/cgi-bin/mapserv?map=\\home\\yancho\\public_html\\nc\\sample.map&amp;">
http://yancho.no-ip.org/~yancho/cgi-bin/mapserv?map=\\home\\yancho\\public_html\\nc\\sample.map&amp;</a>&quot;, {layers : &#39;streets&#39;}, {gutter: 15});<br>map.addLayer(layer); <br><br>//map.setCenter(new OpenLayers.LonLat
(lon, lat), zoom);<br>map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>}<br><br><br><br>&lt;/script&gt; <br>&lt;/head&gt;<br>&lt;body onload=&quot;init()&quot;&gt;<br>&lt;div style=&quot;width:800px;height:600px&quot; id=&quot;map&quot;&gt;&lt;/div&gt;
<br><br>&lt;/html&gt;<br><br><br>Pastebin : <a href="http://pastebin.com/f50f62c3f">http://pastebin.com/f50f62c3f</a><br><br>The problem is that when I load the page, there is just the controls, and the map is not loading. There are no JavaScript errors and I think its just a problem of the loading of the map. 
<br><br><br>Link to page : <a href="http://yancho.no-ip.org/~yancho/openl.html">http://yancho.no-ip.org/~yancho/openl.html</a><br><br>Link to how I load the map on mapserv : <a href="http://yancho.no-ip.org/~yancho/cgi-bin/mapserv?map=%2Fhome%2Fyancho%2Fpublic_html%2Fnc%2Fsample.map&amp;imgext=637373.285472+230666.856430+647786.963271+238473.856432&amp;imgxy=200.0+150.0&amp;zoom=0&amp;layer=hospitals&amp;layer=streets&amp;layer=firestations&amp;layer=majorroads&amp;layer=railroads&amp;mode=browse&amp;img.x=164&amp;img.y=62">
http://yancho.no-ip.org/~yancho/cgi-bin/mapserv?map=%2Fhome%2Fyancho%2Fpublic_html%2Fnc%2Fsample.map&amp;imgext=637373.285472+230666.856430+647786.963271+238473.856432&amp;imgxy=200.0+150.0&amp;zoom=0&amp;layer=hospitals&amp;layer=streets&amp;layer=firestations&amp;layer=majorroads&amp;layer=railroads&amp;mode=browse&amp;img.x=164&amp;img.y=62
</a> <br><br>Any help will be much appreciated. Thanks<br><br>Regards<br><br><br><div><span class="gmail_quote">On 11/17/07, <b class="gmail_sendername">Christian López Espínola</b> &lt;<a href="mailto:penyaskito@gmail.com">
penyaskito@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi Matthew,<br><br>Your div is named &#39;map&#39;, and you are using<br><br>var map = new OpenLayers.Map(&quot;basemap&quot;, options);<br><br>This search for a basemap div, but it doesn&#39;t exist.<br>Change the div id, or change that line of code.
<br><br>Hope this helps.<br><br>On 11/17/07, Matthew Pulis &lt;<a href="mailto:mpulis@gmail.com">mpulis@gmail.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I am a fairly new user to OpenLayers, and this is my project aims :
<br>&gt;<br>&gt; - Want to create a Basemap of streets which is a Vector layer and loading it<br>&gt; as a MapServ Layer<br>&gt; * create a start / end point<br>&gt; * create the route<br>&gt;<br>&gt; (* are not yet started)
<br>&gt;<br>&gt; I am having a problem since after going through the Javascript docs, I fixed<br>&gt; many of my syntax errors, but am still plagued with this one :<br>&gt;<br>&gt; this.div has no properties<br>&gt; callback(&quot;basemap&quot;, Object)OpenLayers.js (line 464)
<br>&gt; Class()OpenLayers.js (line 57)<br>&gt; init()openl.html (line 24)<br>&gt; onload(load )openl.html (line 1)<br>&gt; [Break on this error] this.active=false;return<br>&gt; true;},callback:function(name,args){if(this.callbacks
[n...<br>&gt;<br>&gt; Error found @ OpenLayers.js (line 464) .. Error reporting by FireBug of<br>&gt; FireFox<br>&gt;<br>&gt; The code I am working upon is a mix of viewsourcing some pages and the<br>&gt; tutorials :<br>&gt;
<br>&gt; &lt;html&gt;<br>&gt; &lt;head&gt;<br>&gt;&nbsp;&nbsp;&lt;title&gt;OpenLayers Example&lt;/title&gt;<br>&gt;&nbsp;&nbsp;&lt;script<br>&gt; src=&quot;<a href="http://yancho.no-ip.org/~yancho/OpenLayers.js">http://yancho.no-ip.org/~yancho/OpenLayers.js
</a>&quot;&gt;&lt;/script&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;script defer=&quot;defer&quot; type=&quot;text/javascript&quot;&gt;<br>&gt;&nbsp;&nbsp;function init(){<br>&gt;&nbsp;&nbsp;var options =<br>&gt;&nbsp;&nbsp;{<br>&gt;&nbsp;&nbsp;maxExtent: new OpenLayers.Bounds
(625102.34974933861,215593.742071<br>&gt; ,656343.383138 ,239014.742071 ),<br>&gt;&nbsp;&nbsp;maxResolution: 302051/1024,<br>&gt;&nbsp;&nbsp;zoom: 2,<br>&gt;&nbsp;&nbsp;projection: &quot;WGS84&quot;,<br>&gt;&nbsp;&nbsp;&#39;controls&#39;: [],<br>&gt;&nbsp;&nbsp;units: &quot;m&quot;,
<br>&gt;&nbsp;&nbsp;numZoomLevels: 12<br>&gt;&nbsp;&nbsp;};<br>&gt;&nbsp;&nbsp;var map = new OpenLayers.Map(&quot;basemap&quot;, options);<br>&gt;&nbsp;&nbsp;var options2 =<br>&gt;&nbsp;&nbsp;( {name : &quot;Streets Layer&quot;},<br>&gt;&nbsp;&nbsp;{url : &quot;<a href="http://yancho.no-ip.org/~yancho/cgi-bin/mapserv">
http://yancho.no-ip.org/~yancho/cgi-bin/mapserv</a>&quot;},<br>&gt;&nbsp;&nbsp;{params : &quot;\\home\\yancho\\public_html\\nc\\sample.map&quot;},<br>&gt;&nbsp;&nbsp;{options : []}<br>&gt;&nbsp;&nbsp;);<br>&gt;&nbsp;&nbsp;map.addLayer (new OpenLayers.Layer.MapServer
(&quot;streets&quot;, options2));<br>&gt;<br>&gt;&nbsp;&nbsp;}<br>&gt;<br>&gt;&nbsp;&nbsp;&lt;/script&gt;<br>&gt;&nbsp;&nbsp;&lt;/head&gt;<br>&gt; &lt;body onload=&quot;init()&quot;&gt;<br>&gt; &lt;div style=&quot;width:800px;height:600px&quot; id=&quot;map&quot;&gt;&lt;/div&gt;
<br>&gt;<br>&gt; &lt;/html&gt;<br>&gt;<br>&gt; If you want the code with syntax highlighted you can go here :<br>&gt; <a href="http://pastebin.com/f218a9fc9">http://pastebin.com/f218a9fc9</a><br>&gt;<br>&gt;<br>&gt; I would be extremely happy if you manage to point me to any errors I am
<br>&gt; doing, and maybe some other reading I should do.<br>&gt;<br>&gt; Thanks alot for your time in reading my post<br>&gt;<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt;<br>&gt; Matthew<br>&gt;<br>&gt; --<br>&gt; Matthew Pulis
<br>&gt; URL : <a href="http://www.solutions-lab.net">http://www.solutions-lab.net</a><br>&gt; MSN : pulis_matthew[@]hotmail.com<br>&gt; ICQ : 145951110<br>&gt; Skype : <a href="http://solutions-lab.net">solutions-lab.net
</a><br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br>&gt;<br><br><br>--<br>Regards,<br><br>Christian López Espínola<br></blockquote></div><br><br clear="all"><br>-- <br>Matthew Pulis<br>URL : <a href="http://www.solutions-lab.net">
http://www.solutions-lab.net</a><br>MSN : pulis_matthew[@]hotmail.com<br>ICQ : 145951110<br>Skype : <a href="http://solutions-lab.net">solutions-lab.net</a>