[Chameleon] (no subject)
Bart van den Eijnden (OSGIS)
bartvde at xs4all.nl
Fri Jul 7 10:46:13 EDT 2006
Widget names could be case sensitive, can you try:
<cwc2 type="cwcjsapi" debug="false"/>
<cwc2 type="SharedResource" name="CWCJSAPI"/>
Does the JSAPI sample from Chameleon work for you?
Bart
Sergio Guillermo Lopez Amaro wrote:
> hello,
> I have a problem, I cannot load “Javascript API” my code is:
> ===================================
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>Ejemple Chameleaon</title>
> <meta http-equiv="Content-Type" content="text/html; ">
> <!-- Button Resource for Pan Arrows -->
> <CWC2 TYPE= "SharedResource" NAME= "CWCJSAPI"/>
> <CWC2 TYPE= "CWCJSAPI" DEBUG = "false"/>
> <script language="JavaScript" type="text/javascript">
> function myOnLoad()
> {
> CWC2OnLoadFunction();
> }
> function MySetExtents()
> {
> goCWCJSAPI.oMap.SetExtents(267147, 8.67149e+006, 281663, 8.68203e+006);
> }
> </script>
> </head>
> <body onLoad="myOnLoad()">
> <form method="post" ID="Form1">
> <INPUT TYPE="BUTTON" OnClick="MySetExtents()" value="Reset View"
> ID="Button1" NAME="Button1">
> <cwc2 type="MapDHTML" visible="true" width="500" height="350"
> allowresize="false" marqueecolor="FF3333"
> marqueewidth="2" minscale="1" />
> </form>
> </body>
> </html>
> ===================================
> the error is:
> ===================================
>
> * c:\WebServer\chameleon-2.4\htdocs\widgets
> * ERROR: Widget Definition for class '' not found (tag is <CWC2
> TYPE= "CWCJSAPI" DEBUG = "false"/>).
> * c:\WebServer\chameleon-2.4\htdocs\widgets
> * ERROR: Widget Definition for class '' not found (tag is <CWC2
> TYPE= "SharedResource" NAME= "CWCJSAPI"/>).
>
> ===================================
> Installed products:
> Apache 2.0
> Mapserver 4.8
> Chameleon 2.4
> PROJ 4
> PHP 4.4.2
> S.O. Window 2000 Server
> early thanking for you.
> Sergio Lopez
>
> Las mejores tiendas, los precios mas bajos, entregas en todo el mundo,
> YupiMSN Compras: Haz clic aquí...
> <http://g.msn.com/8HMBES/2746??PS=47575>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Chameleon mailing list
>Chameleon at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/chameleon
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
More information about the Chameleon
mailing list