<span class="Apple-style-span" style="border-collapse: collapse; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Hi, <br>
<br>I have a problem: <br><br>The code is: <br><br>function localizarAlter(wfsurl) { <br>rutaurl = wfsurl; <br>OpenLayers.loadUrl(rutaurl,&#39;&#39;,null,highlight_them); <br>} <br><br>function highlight_them(response) { <br>
features = new OpenLayers.Format.GML().read(responseText); <br>map.zoomToExtent(features[0].geometry.getBounds()); <br>} <br><br>In a php file I have this script code: <br><br>window.opener.localizarAlter(&#39;<a href="http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/aplicatiuPla/mapfiles/08alternativas.map&amp;service=wms&amp;version=1.1.1&amp;request=getmap&amp;width=600&amp;height=500&amp;bbox=459533,260506,481708,270001&amp;format=png&amp;layers=pozos,captacion,depBombeo,depDistrib,pozoCant,cantareras,tupCapt,tubAducc,tubImpuls,tubDistrib&amp;SRS=EPSG:26716&amp;sld=http://localhost/aplicatiuPla/php/prueba.xml&#39;);" target="_top" rel="nofollow" link="external" style="font-size: 1em; color: rgb(0, 0, 238); ">http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/aplicatiuPla/mapfiles/08alternativas.map&amp;service=wms&amp;version=1.1.1&amp;request=getmap&amp;width=600&amp;height=500&amp;bbox=459533,260506,481708,270001&amp;format=png&amp;layers=pozos,captacion,depBombeo,depDistrib,pozoCant,cantareras,tupCapt,tubAducc,tubImpuls,tubDistrib&amp;SRS=EPSG:26716&amp;sld=http://localhost/aplicatiuPla/php/prueba.xml&#39;);</a><br>
<br>This call works, but the problem is something is wrong with the functions, because when I execute the file, the firefox firebug shows an error: OpenLayers.loadUrl is not a function. <br><br>Could anybody help me? I&#39;m a newbie and I don&#39;t know how can solve it by myself. Thanks in advance, <br>
<br>Manuel</span>