Hi all,<br>I want to get WMSGetCapabilites from server. The URL is <a href="http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&service=WMS">http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&service=WMS</a> and works fine.<br>
<br>But when I "execute" the next code the request never ends or returns me a empty response.<br><br>Anybody can help me clarifiying me how to get wms capabilities and later get the available layer names?<br><br>
Thanks in advance.<br><br>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html><br> <head><br> <title></title><br> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><br> <script type="text/javascript" src='./js/ol/OpenLayers.js'></script><br>
<script type="text/javascript"><br> request = OpenLayers.Request.GET({<br> url: "<a href="http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&service=WMS">http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&service=WMS</a>",<br>
success: function(request){<br> alert(request.responseText);<br> },<br> failure: function(request){<br> alert('BOOOOOO!');<br> }<br>
<br> });<br> </script><br><br> </head><br> <body><br> the body content<br> </body><br></html><br><br><br clear="all"><br>-- <br>|-----------------------------------------------------------<br>
| <a href="http://www.astracanada.net">http://www.astracanada.net</a><br>| <a href="http://acuriousanimal.orggeo.net">http://acuriousanimal.orggeo.net</a><br>|-----------------------------------------------------------<br>
| <a href="http://acuriousanimal.blogspot.com">http://acuriousanimal.blogspot.com</a><br>| <a href="http://theballoonproject.blogspot.com">http://theballoonproject.blogspot.com</a><br>|-----------------------------------------------------------<br>
| _ __ <br>| /_| ( _ _/'_ _ <br>|( |. __)(//)//(/(/() <br>| _/ <br>|-----------------------------------------------------------<br>