I just encountered something similar with the latest MS4W.  I was 
getting an error on the image requests:

loadForm(): Web application error. Invalid mode.

but when I change the MapServer URL from 'localhost' to

http://127.0.0.1/cgi-bin/mapserv.exe

it worked, not at all sure why.

Mike




Clemiou wrote:
> Excuse but my mail box doesn't like the HTML code :)
>
> Sincerely yours
> Clement
>       
>
>
>         function init()
>         {
>             map = new OpenLayers.Map( 'map' );
>             layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", 
>                     
> "http://localhost/cgi-bin/mapserv?map=/var/www/html/ms/map_files/france.map";, 
> {layers: 'FRANCE'},
>                     {gutter: 1});
>             map.addLayer(layer);
>                       
>             map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
>             map.addControl( new OpenLayers.Control.LayerSwitcher() );
>         }
>         
>   
> _________________________________________________________________
> Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre 
> mobile !
> http://www.messengersurvotremobile.com/?d=hotmail
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
>   
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to