<html><div style='background-color:'><DIV class=RTE>Hello friends</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I need its aid. I have an error when calling to objecto goCWCApp, but not to the object goCWCJSAPI.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>When pasecer it raises JavaScriptAPI well. not as it must be my error.&nbsp; </DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>the file phtml is: <STRONG><U>sample_basic.phtml</U></STRONG></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE><FONT size=2>
<P>&lt;?php</P>
<P>include("c:\WebServer\chameleon-2.4\htdocs\chameleon.php" );</P>
<P>$szTemplate = "sample_basic.html";</P>
<P>$szMapFile = "c:\WebServer\www\Prueba\olivos.map";</P>
<P>class SampleApp extends Chameleon</P>
<P>{</P>
<P>function SampleApp()</P>
<P>{</P>
<P>parent::Chameleon();</P>
<P>$this-&gt;moMapSession = new MapSession_RW;</P>
<P>$this-&gt;moMapSession-&gt;setTempDir( getSessionSavePath());</P>
<P>}</P>
<P>}</P>
<P>$oApp = new SampleApp();</P>
<P>$oApp-&gt;registerSkin( 'skins/sample' );</P>
<P>$oApp-&gt;CWCInitialize( $szTemplate, $szMapFile );</P>
<P><STRONG>$oApp-&gt;mnMinimumMaturityLevel = MATURITY_ALPHA;</STRONG></P>
<P>$oApp-&gt;CWCExecute();</P>
<P>?&gt;</P></FONT></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>the temporary file is: <STRONG><U>sample_basic.html</U></STRONG></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;<BR>&lt;html&gt;<BR>&nbsp;&lt;head&gt;<BR>&nbsp;&nbsp;&lt;title&gt;WebGIS - COMSA&lt;/title&gt;<BR>&nbsp;&nbsp;&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;<BR>&nbsp;&nbsp;&lt;!-- Button Resource for Pan Arrows --&gt;<BR>&nbsp;&nbsp;&lt;cwc2 type="cwcjsapi" debug="false" /&gt;<BR>&nbsp;&nbsp;&lt;cwc2 type="SharedResource" name="CWCJSAPI" /&gt;<BR>&nbsp;&nbsp;&lt;script language="JavaScript" type="text/javascript"&gt;</DIV>
<DIV class=RTE>function myOnLoad()<BR>{<BR>&nbsp; CWC2OnLoadFunction()</DIV>
<DIV class=RTE>}</DIV>
<DIV class=RTE>// called when the map extents change<BR><STRONG>goCWCApp.RegisterEvent( MAP_EXTENT_CHANGED, "myMapExtentChanged" );<BR></STRONG></DIV>
<DIV class=RTE>function <STRONG>myMapExtentChanged</STRONG>()<BR>{<BR>&nbsp;&nbsp;&nbsp; oMap = goCWCJSAPI.oMap;<BR>&nbsp;&nbsp;&nbsp; szExtents = "(" + oMap.minx + "," + oMap.miny&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + "), (" + oMap.maxx + "," + oMap.maxy + ")";<BR>&nbsp;&nbsp;&nbsp; alert("map extents changed to " + szExtents);<BR>}</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE><STRONG>//this function if it is executed </STRONG></DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>
<DIV class=RTE>function MySetExtents()<BR>{<BR>&nbsp; goCWCJSAPI.oMap.SetExtents(267147, 8.67149e+006, 281663, 8.68203e+006);<BR>}</DIV>
<DIV class=RTE>&nbsp;</DIV>&nbsp;&nbsp;&lt;/script&gt;<BR>&nbsp;&lt;/head&gt;<BR>&nbsp;&lt;body onLoad="myOnLoad()"&gt;<BR>&nbsp;&nbsp;&lt;form method="post" ID="Form1"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;INPUT TYPE="BUTTON" OnClick="MySetExtents()" value="Capture" /&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;cwc2 type="MapDHTML" visible="true" width="500" height="350" allowresize="false" marqueecolor="FF3333"<BR>&nbsp;&nbsp;&nbsp;&nbsp;marqueewidth="2" minscale="1" /&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;cwc2 type="SharedResource" name="WaitImage"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;waitimage language="en-CA" waitimage="images/spinner.gif" waitimagewidth="216" waitimageheight="50" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;waitimage language="fr-CA" waitimage="images/spinner_f.gif" waitimagewidth="216" waitimageheight="50" /&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/cwc2&gt;<BR>&nbsp;&nbsp;&lt;/form&gt;<BR>&nbsp;&lt;/body&gt;<BR>&lt;/html&gt;<BR></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>thanking for its aid early</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Sergio Lopez </DIV></div><br clear=all><hr>Consigue aquí las mejores y mas recientes ofertas de trabajo en América Latina y USA:  <a href="http://g.msn.com/8HMBES/2743??PS=47575" target="_top">Haz clic aquí...</a> </html>