<html><div style='background-color:'><DIV class=RTE>Hello friends</DIV>
<DIV class=RTE> </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> </DIV>
<DIV class=RTE>When pasecer it raises JavaScriptAPI well. not as it must be my error. </DIV>
<DIV class=RTE> </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><?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->moMapSession = new MapSession_RW;</P>
<P>$this->moMapSession->setTempDir( getSessionSavePath());</P>
<P>}</P>
<P>}</P>
<P>$oApp = new SampleApp();</P>
<P>$oApp->registerSkin( 'skins/sample' );</P>
<P>$oApp->CWCInitialize( $szTemplate, $szMapFile );</P>
<P><STRONG>$oApp->mnMinimumMaturityLevel = MATURITY_ALPHA;</STRONG></P>
<P>$oApp->CWCExecute();</P>
<P>?></P></FONT></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>the temporary file is: <STRONG><U>sample_basic.html</U></STRONG></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><BR><html><BR> <head><BR> <title>WebGIS - COMSA</title><BR> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><BR> <!-- Button Resource for Pan Arrows --><BR> <cwc2 type="cwcjsapi" debug="false" /><BR> <cwc2 type="SharedResource" name="CWCJSAPI" /><BR> <script language="JavaScript" type="text/javascript"></DIV>
<DIV class=RTE>function myOnLoad()<BR>{<BR> 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> oMap = goCWCJSAPI.oMap;<BR> szExtents = "(" + oMap.minx + "," + oMap.miny + "), (" + oMap.maxx + "," + oMap.maxy + ")";<BR> alert("map extents changed to " + szExtents);<BR>}</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE><STRONG>//this function if it is executed </STRONG></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>
<DIV class=RTE>function MySetExtents()<BR>{<BR> goCWCJSAPI.oMap.SetExtents(267147, 8.67149e+006, 281663, 8.68203e+006);<BR>}</DIV>
<DIV class=RTE> </DIV> </script><BR> </head><BR> <body onLoad="myOnLoad()"><BR> <form method="post" ID="Form1"><BR> <INPUT TYPE="BUTTON" OnClick="MySetExtents()" value="Capture" /><BR> <cwc2 type="MapDHTML" visible="true" width="500" height="350" allowresize="false" marqueecolor="FF3333"<BR> marqueewidth="2" minscale="1" /><BR> <cwc2 type="SharedResource" name="WaitImage"><BR> <waitimage language="en-CA" waitimage="images/spinner.gif" waitimagewidth="216" waitimageheight="50" /><BR> <waitimage language="fr-CA" waitimage="images/spinner_f.gif" waitimagewidth="216" waitimageheight="50" /><BR> </cwc2><BR> </form><BR> </body><BR></html><BR></DIV>
<DIV class=RTE>=================</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>thanking for its aid early</DIV>
<DIV class=RTE> </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>