<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,'',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('<a href="http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/aplicatiuPla/mapfiles/08alternativas.map&service=wms&version=1.1.1&request=getmap&width=600&height=500&bbox=459533,260506,481708,270001&format=png&layers=pozos,captacion,depBombeo,depDistrib,pozoCant,cantareras,tupCapt,tubAducc,tubImpuls,tubDistrib&SRS=EPSG:26716&sld=http://localhost/aplicatiuPla/php/prueba.xml');" 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&service=wms&version=1.1.1&request=getmap&width=600&height=500&bbox=459533,260506,481708,270001&format=png&layers=pozos,captacion,depBombeo,depDistrib,pozoCant,cantareras,tupCapt,tubAducc,tubImpuls,tubDistrib&SRS=EPSG:26716&sld=http://localhost/aplicatiuPla/php/prueba.xml');</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'm a newbie and I don't know how can solve it by myself. Thanks in advance, <br>
<br>Manuel</span>