|
||||
[Chameleon] Problem with CWC2OnLoadFunction...Aaron Racicot aaronr@ccalmr.ogi.eduTue, 23 Mar 2004 15:57:17 -0800
|
Hello, I have a new Mapserver box I have set up and am starting to play with Chameleon for the first time (upgrade from my old 3.6 box!). The following is my setup: RedHat Enterprise Linux 3.0 AS on Intel Box (2.8gHz,1G,Dual 40G drives) Mapserver/Mapscript - 4.0.1 Postgresql - 7.4.2 Postgis - 0.8.1 PHP - 4.3.4 Maplab - 2.1-rc3 Chameleon 1.1alpha-20031031 The problem I am having (yes, I have searched the archives high and low) is that I get an error stating that "CWC2OnLoadFunction is not defined" when I try to do even the simplest application. Below is a copy of the sample.html and cwc2.xml I am using. Is seams that I must have a path set up wrong, but this continual beating my head against the desk is not helping me solve the problem. I have set up web access to the chameleon htdocs directory via http://129.95.72.140/cwc2/ which is /src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdocs/ on the machine. The sample.html file resides in the same directory as chameleon.php under htdocs. I have tried to follow the installation instructions on the web, but those look to be from the 1.0.* timeframe as well. Any help you all can give would be much appreciated. Thanks in advance... Aaron Aaron Racicot Oregon Graduate Institute aaronr@ccalmr.ogi.edu +++++++++++++++++++++++ Start sample.html +++++++++++++++++++++ <HTML> <!-- Head section is mandatory --> <HEAD> <TITLE>The Simplest Template</TITLE> </HEAD> <!-- Body MUST call "CWC2OnLoadFunction" in "onload" event --> <BODY onload="CWC2OnLoadFunction()"> <!-- Most of widgets SHOULD be in a form --> <FORM name="testing"> <center> <h1>The simplest template</h1> <!-- Adding NO map widget --> </center> </form> </body> </html> +++++++++++++++++++++++ End sample.html ++++++++++++++++++++++++ +++++++++++++++++++++++ Start cwc2.xml +++++++++++++++++++++++++ <app-context> <context-param> <param-name>cwc2_url</param-name> <param-value>http://129.95.72.140/cwc2/</param-value> <description>This is the URL that points to the HTDOCS directory of the local cwc2 installation.</description> </context-param> <context-param> <param-name>server_data_path</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/data /</param-value> <description>This is where cached capabilities and other information, common to each session, should be. When a user start a new session, all files from that directory are copied to user_session_tmp_path</description> </context-param> <context-param> <param-name>web_server_path</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/</param-value> <description>This is where chameleon.php script is located.</description> </context-param> <context-param> <param-name>ows_schemas_location</param-name> <param-value>http://ogc.dmsolutions.ca</param-value> <description>URL pointing to the root of a repository of OGC schemas. See http://ogc.dmsolutions.ca for an example.</description> </context-param> <context-param> <param-name>wms_parse_file</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/common/wmsparse/wmsparse</param-value> <description>Full file path to the binary wms parser executable ('/path/to/wmsparse' on Unix, '/path/to/wmsparse.exe' on Windows). Leave empty to use the built in PHP parser (slower).</description> </context-param> <context-param> <param-name>wms_connectiontimeout</param-name> <param-value>30</param-value> <description>Maximum time in seconds that MapServer will wait for an answer from a WMS server.</description> </context-param> <context-param> <param-name>allow_upload_context</param-name> <param-value>true</param-value> <description>Enable the "Upload map context" feature? (true or false).</description> </context-param> <context-param> <param-name>allow_upload_template</param-name> <param-value>true</param-value> <description>Allow use of the 'TEMPLATE=' parameter when calling the CWC2 instance to specify any CWC2 HTML template url? (true or false) If set to false then the value of 'default_template' config parameter is always used.</description> </context-param> <context-param> <param-name>cache_template</param-name> <param-value>true</param-value> <description>If template come from a remote server (http://....), the template is download from that remote server and saved on local server for further loading. For performace, it is prefered to set this value to "true". If the remote server template is dynamic, this value should be set to "false" so the template will be loaded remotely every page load.</description> </context-param> <context-param> <param-name>validate_template</param-name> <param-value>true</param-value> <description>Validate the attributes of each tag in the input template. This should be set to true for debugging but may be set to false in a production environment to enhance performance.</description> </context-param> <context-param> <param-name>default_language</param-name> <param-value>en-CA</param-value> <description>Default language specifier. (en-CA or fr-CA)</description> </context-param> <context-param> <param-name>default_template</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/geobase_en.html</param-value> <description>Default HTML template to use with this CWC2 instance. Used when TEMPLATE= parameter not set, or when allow_upload_template config parameter is set to false.</description> </context-param> <context-param> <param-name>invalid_session_template</param-name> <param-value></param-value> <description>Template to display if session is invalid.</description> </context-param> <context-param> <param-name>default_context</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/gmap_context.xml</param-value> <description>Default map context to load when starting this application</description> </context-param> <context-param> <param-name>map_template</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/template.map</param-value> <description>Default MapServer mapfile template to use when uploading a context file.</description> </context-param> <context-param> <param-name>mapscript_module</param-name> <param-value>php_mapscript.so</param-value> <description>Mapscript module name (i.e. php_mapscript_40.dll for Windows installations or php_mapscript_40.so for Unix installations).</description> </context-param> <context-param> <param-name>log_path</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/tmp/</param-value> <description>Directory in which to write log files.</description> </context-param> <context-param> <param-name>log_error</param-name> <param-value>true</param-value> <description>This define if chameleon should log errors in session. If set to false, no errors will be logged at all.</description> </context-param> <context-param> <param-name>log_level</param-name> <param-value>LOG_VERBOSE</param-value> <description>Control the application runtime logging level. Must be one of LOG_OFF, LOG_QUIET, LOG_VERBOSE or LOG_ALL.</description> </context-param> <context-param> <param-name>image_type</param-name> <param-value>PNG</param-value> <description>Output image type (eg: PNG, GIF). Must be uppercase. This image format MUST be supported by your browser and GD (on the server). Please don't change that value unless you know what you'r doing.</description> </context-param> <context-param> <param-name>button_cache_path</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/tmp/ms_tmp/buttons/</param-value> <description>Directory in which to write image files generated for buttons. This directory must be writable by the web server user and web accessible. For performance reasons, this directory should not be cleaned out automatically.</description> </context-param> <context-param> <param-name>button_cache_web_path</param-name> <param-value>/cwc2/tmp/ms_tmp/buttons/</param-value> <description>The URL where a browser can find cached button images.</description> </context-param> <context-param> <param-name>tmp_web_path</param-name> <param-value>/cwc2/tmp/ms_tmp/</param-value> <description>URL where browser can find temporary files as context or images</description> </context-param> <context-param> <param-name>tmp_img_path</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/tmp/ms_tmp/</param-value> <description>Directory where temporary image files are put.</description> </context-param> <context-param> <param-name>context_root</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/</param-value> <description>Absolute root path to context files. All context should be in that folder (or sub folder).</description> </context-param> <context-param> <param-name>context_maxsize</param-name> <param-value>1000000</param-value> <description>This is the context file max size that a CWC2 user can upload on the server</description> </context-param> <context-param> <param-name>template_root</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/htdo cs/</param-value> <description>Absolute root path to template files. All template should be in that folder (or sub folder).</description> </context-param> <context-param> <param-name>fontlist_file</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/etc/ fonts.txt</param-value> <description>Path and filename of the font list file used by MapServer (i.e. /path/to/file/fonts.txt ).</description> </context-param> <context-param> <param-name>symbol_file</param-name> <param-value>/src/mapserver_4_0_1/chameleon/chameleon-1.1alpha-20031031/etc/ symbols.sym</param-value> <description>Path and filename of the symbol file used by MapServer (i.e. /path/to/file/symbols.sym ).</description> </context-param> <context-param> <param-name>textbutton_default_font_size</param-name> <param-value>11</param-value> <description>Buttons font size in points</description> </context-param> <context-param> <param-name>textbutton_default_font_antialiasing</param-name> <param-value>true</param-value> <description>Text Button font antialiasing (true or false)</description> </context-param> <context-param> <param-name>gd_version</param-name> <param-value>gd2</param-value> <description>Version of GD graphic library (gd, gd2)</description> </context-param> <context-param> <param-name>freetype_version</param-name> <param-value>ttf</param-value> <description>Version of Freetype library used (use "ttf" for Freetype 1.3 or "freetype" for Freetype 2.x)</description> </context-param> <context-param> <param-name>execution_timeout</param-name> <param-value>120</param-value> <description>The amount of time in seconds to allow PHP to process a PHP page. This includes (for now) the time required to draw remote WMS layers which can be lengthy.</description> </context-param> </app-context> ++++++++++++++++++++++++++++++++++ End cwc2.xml +++++++++++++++++++++++++++++++
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |