Hi Ivan,<br><br>Firebug says:<br><br><div class="logRow logRow-warningMessage"><span class="objectBox objectBox-errorMessage"><div class="errorTitle">Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.</div>
<div class="errorSourceBox errorSource-none"><img src="chrome://firebug/content/blank.gif" title="Break on this error" class="errorBreak"><span class="errorSource">undefined</span></div></span></div><div class="logRow logRow-errorMessage">
<span class="objectBox objectBox-errorMessage hasBreakSwitch"><div class="errorTitle">Permission denied to get property Location.toString</div><div class="errorSourceBox errorSource-exec"><img src="chrome://firebug/content/blank.gif" title="Break on this error" class="errorBreak"><span class="errorSource">ccm_cfg.u = (ccm_cfg.u?ccm_cfg.u:''); cc...layer" />';document.write(ccm_fl_embed);</span></div>
<a class="objectLink objectLink-sourceLink">ccm_fl.js (line 1)<br><br><br></a></span></div><span class="objectBox objectBox-errorMessage hasBreakSwitch"><div class="errorTitle">[Exception...
"Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1909" data: no]</div><div class="errorSourceBox errorSource-exec"><img src="chrome://firebug/content/blank.gif" title="Break on this error" class="errorBreak"><span class="errorSource"> this._writeFile(this._sessionFile, oState.toSource());<br>
<br><br>Thanks,<br><br>Hugo<br></span></div></span><br><br><div class="gmail_quote">On Mon, Feb 16, 2009 at 1:07 PM, Ivan Grcic <span dir="ltr"><<a href="mailto:igrcic@gmail.com">igrcic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi,<br>
<br>
what does FireBug say?<br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, Feb 16, 2009 at 1:58 PM, Hugo <<a href="mailto:hfpmartins@gmail.com">hfpmartins@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> I've beenmaking some experiences with openlayers and mapfish. I have postgis<br>
> database and geoserver up and running. My problem is with wms created in my<br>
> geoserver. I can load this wms in any thick client (qgis, gvsig) and if i<br>
> choose the mappreview of the geoserver admin page it is also running ok (in<br>
> the openlayers).<br>
><br>
> If i now try to make my own script it doesn´t shows anything. Any hint on<br>
> what may be happening??<br>
> This is my very simple code. It is calling openlayers from mapfish (which i<br>
> tried first with google layers and works fine):<br>
><br>
> <!DOCTYPE html><br>
> <html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"><br>
> <head><br>
> <title>OpenLayers</title><br>
> <script type="text/javascript"<br>
> src="../client/mfbase/openlayers/lib/Firebug/firebug.js"></script><br>
> <script<br>
> src="<a href="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAqjXqK2AnPc3L2h71jEi4pxS89dNBXjbs3KhxedIObIPgZlGU8RSY0Afhq8cq5fuNgI-GZP2m_MM0Pw" target="_blank">http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAqjXqK2AnPc3L2h71jEi4pxS89dNBXjbs3KhxedIObIPgZlGU8RSY0Afhq8cq5fuNgI-GZP2m_MM0Pw</a>"<br>
> type="text/javascript"></script><br>
> <script type="text/javascript"<br>
> src="../../client/mfbase/openlayers/lib/OpenLayers.js"></script><br>
> <style><br>
> #panel {<br>
> right: 0px;<br>
> height: 30px;<br>
> width: 200px;<br>
> }<br>
> #panel div {<br>
> float: left;<br>
> margin: 5px;<br>
> }<br>
> </style><br>
> <script type="text/javascript"><br>
><br>
> function init(){<br>
><br>
> var bounds = new OpenLayers.Bounds (-133259.566796875,<br>
> -329230.621875, 176201.293359375, 304911.746875);<br>
><br>
> var options = {<br>
> maxExtent: bounds,<br>
> maxResolution: 2477.1186279296876,<br>
> projection: "EPSG:27492",<br>
> units: 'm'<br>
> }<br>
><br>
> map = new OpenLayers.Map('center');<br>
><br>
> var caop = new OpenLayers.Layer.WMS (<br>
> "CAOP",<br>
> "<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>?",<br>
> {<br>
> layers: 'pg:caop',<br>
> srs: 'EPSG:27492',<br>
> styles: '',<br>
> format: 'image/png'<br>
> },<br>
> {isBaseLayer: true}<br>
> );<br>
><br>
> map.addLayers([caop]);<br>
> map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
> map.zoomToMaxExtent();<br>
> };<br>
><br>
> </script><br>
> </head><br>
> <body onload="init()"><br>
> <div id="center" style="width: 700px; height: 550px"></div><br>
> </body><br>
> </html><br>
><br>
><br>
> Thanks in advance,<br>
><br>
> Hugo<br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
<font color="#888888">Ivan Grcic<br>
</font></blockquote></div><br>