Bug 126

Summary: [Chameleon]MapWshowLayer function not defined when using JAPI
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: CoreAssignee: assefa yewondwossen <assefay@gmail.com>
Status: NEW    
Severity: normal CC: chameleon-dev@lists.maptools.org
Priority: P3    
Version: 1.99   
Target Milestone: FUTURE   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2003-11-14 17:42:38
MapWshowLayer function not defined when using JAPI

I using the JavaScript API testing framework developed by Assefa and Bill.  I
migrated the CWC2 version to Chameleon 1.1  The testing framework is into the
cvs under "chameleon/test_suite/js_testing/predefined_tests".

I'm using the chameleon demo in which I modified the "index.phtml" file to be
able to take a map file and a template as argument.  There is a copy of this
"index.phtml" file into the cvs under
chameleon/test_suite/unit_tests/php_tests/templates.

I added two lines into the "sample.html" to load the JavaScript API. I got the
JSAPI testing framework accessible through the web by creating a symbolic link.

Steps to reproduce:

1. Access the "main.phtml" file into the browser.
2. Set the application path to   
   /path/to/chameleon_sample/htdocs/index.phtml
3. Set the template path to /path/to/chameleon_sample/htdocs/sample.html
4. Set the map file path to /path/to/chameleon_sample/map/chameleon.map
5. Select the "layerSetStatus" predefined test
6. Click on "execute"
7. The error appears into the JavaScript console.

I'm working on Redhat 7.2, chameleon-1.1_20031110 from the cvs, MapServer 4.0

Here is the JavaScript consol error message:

Error: MapWshowLayer is not defined
Source File:
http://192.168.4.7/msapps/nsavard/programs/chameleon-1.1_20031110/htdocs/widgets/js/cwcjsapi.js
Line: 3105
------- Comment #1 From 2004-04-05 16:18:40 -------
reassigning to Assefa for analysis.  Should be fixed for 1.99
------- Comment #2 From 2004-04-08 08:38:52 -------
updated version to 1.99
------- Comment #3 From 2004-05-03 16:16:16 -------
Changed Target Milestone to 1.99 RC
------- Comment #4 From 2004-11-04 18:23:35 -------
jsapi not formally part of this release.