New Dbox Example

Ken Boss Ken.Boss at DNR.STATE.MN.US
Sat May 13 10:49:20 EDT 2006


Hello Lawrence--

A javascript console shows this error:

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

The error originates in the get_content() call embedded in example.html, which retrieves the XML that dlegend.js uses to construct the legend (get_content() is defined in utils.js). 

Most browsers enforce a cross-domain security restriction, which means XMLHttpRequest.open can only access the server from which the javascript has been loaded.  So your setting for config.dlegend_xml_executable must point to a location that is on the same server as example.html itself.

More generally, the ms4w distribution of the dbox demo has only been tested against ms4w versions 1.5.x, which run mapserver version 4.8.3 under Apache.  I might recommend that you grab the latest ms4w release from maptools.org and try the demo there.  You would need to configure the ms4w Apache installation to run python cgi scripts; and unpack the zipped binaries for python mapscript support from their location in the ms4w installation and place them in an appropriate location for your python installation (usually <python_install_dir>/Lib/site-packages, but you might try dumping them directly into /ms4w/Apache/cgi-bin as an alternative if needed).  Note that python 2.4.x is required.

If you can get the above in order, then the demo should work under ms4w without any changes to the configuration in example.html.  

HTH,

--Ken Boss
  MN DNR Forestry Resource Assessment

>>> Lawrence Hartpence <hartpence_gis at CO.JASPER.IA.US> 5/12/2006 4:34 PM >>>
Hello,

I just downloaded the new dBox example for MS4W.  I do appreciate all the
work put into modernizing and documenting this.  

I have a question.  I am running MapServer 4.6 on IIS.  I edited the
example.html as well as itsca.map and changed the paths to reflect my folder
structure on my computer.  The problem is that when I try to bring up the
site in my web browser, the map does not come up.  Any ideas?

Here is a link to the website:
http://216.203.113.94/JasperMaps/example/example.html 

Lawrence Hartpence
GIS Coordinator
101 1st St N
Newton IA 50208
641-792-3084
hartpence_gis at co.jasper.ia.us 



More information about the mapserver-users mailing list