MapTools.org

[Chameleon-dev] [Bug 126] New: [Chameleon]MapWshowLayer function not defined when using JAPI

bugzilla-daemon@www.maptools.org bugzilla-daemon@www.maptools.org
Fri, 14 Nov 2003 17:42:39 -0500
http://www.maptools.org/bugzilla/show_bug.cgi?id=126

           Summary: [Chameleon]MapWshowLayer function not defined when using
                    JAPI
           Product: Chameleon
           Version: 1.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev@lists.maptools.org
        ReportedBy: nsavard@dmsolutions.ca


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



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


This archive was generated by Pipermail.