[OpenLayers-Users] Requesting data problem

Antonio Santiago asantiagop at gmail.com
Sat Apr 17 07:15:22 EDT 2010


Hi all,
I want to get WMSGetCapabilites from server. The URL is
http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&service=WMS and
works fine.

But when I "execute" the next code the request never ends or returns me a
empty response.

Anybody can help me clarifiying me how to get wms capabilities and later get
the available layer names?

Thanks in advance.

  <html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src='./js/ol/OpenLayers.js'></script>
        <script type="text/javascript">
            request = OpenLayers.Request.GET({
                url: "
http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&service=WMS",
                success: function(request){
                    alert(request.responseText);
                },
                failure: function(request){
                    alert('BOOOOOO!');
                }

            });
        </script>

    </head>
    <body>
        the body content
    </body>
</html>



-- 
|-----------------------------------------------------------
| http://www.astracanada.net
| http://acuriousanimal.orggeo.net
|-----------------------------------------------------------
| http://acuriousanimal.blogspot.com
| http://theballoonproject.blogspot.com
|-----------------------------------------------------------
|  _      __
| /_|    (  _  _/'_ _
|(  |.  __)(//)//(/(/()
|                   _/
|-----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100417/5d02a5d7/attachment.html


More information about the Users mailing list