<div id="RTEContent">Hi Paul,<br> <br> Thanks for your advice, I have tried it and works until certain point. It is able to hide the keymap but certain disfunciones take place.<br> <br> 1- It hides fine the keymap, but when is shown, it appears all red (extent outline color) until you press in it. And in the following press operations it remains the previous extension and the actual until you press on it.<br> <br> 2- Because my keymap is on the map, the functions of keymap (zoom) follows alive! When I zoom in on the main map it zoom to keymap :(<br> <br> Do you know how can I deactivate keymap functions?<br> <br> Thanks a lot in advanced!<br><br><b><i>Paul Spencer <pspencer@dmsolutions.ca></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Joan,<br><br>the problem is not with your code but with the way Chameleon does <br>things. The keymap is actually created outside of your div so hiding
<br>the div won't do what you expect. However, I think you can do this:<br><br>function hideKeymapDHTML()<br>{<br> CWCDHTML_HideLayer("KeyMapLayerBG");<br> CWCDHTML_HideLayer("KeyMapLayerDiv");<br> CWCDHTML_HideLayer("zKeyMapBoxTop");<br> CWCDHTML_HideLayer("zKeyMapBoxLeft");<br> CWCDHTML_HideLayer("zKeyMapBoxBottom");<br> CWCDHTML_HideLayer("zKeyMapBoxRight");<br> CWCDHTML_HideLayer("zKeyMapBox2Top");<br> CWCDHTML_HideLayer("zKeyMapBox2Left");<br> CWCDHTML_HideLayer("zKeyMapBox2Bottom");<br> CWCDHTML_HideLayer("zKeyMapBox2Right");<br>}<br><br><br>function showKeymapDHTML()<br>{<br> CWCDHTML_ShowLayer("KeyMapLayerBG");<br> CWCDHTML_ShowLayer("KeyMapLayerDiv");<br> CWCDHTML_ShowLayer("zKeyMapBoxTop");<br> CWCDHTML_ShowLayer("zKeyMapBoxLeft");<br> CWCDHTML_ShowLayer("zKeyMapBoxBottom");<br> CWCDHTML_ShowLayer("zKeyMapBoxRight");<br> CWCDHTML_ShowLayer("zKeyMapBox2Top");<br>
CWCDHTML_ShowLayer("zKeyMapBox2Left");<br> CWCDHTML_ShowLayer("zKeyMapBox2Bottom");<br> CWCDHTML_ShowLayer("zKeyMapBox2Right");<br>}<br><br>Cheers<br><br>Paul<br><br>On 16-Nov-05, at 12:18 PM, joanvp wrote:<br><br>> My code is:<br>><br>> ************html code************<br>> <a href="javascript://" onclick="showhide('mapaguia');">click me</a><br>><br>> <div id="mapaguia" name="mapaguia"><br>> <cwc2 type="KeyMapDHTML" visible="TRUE"><br>> </cwc2></div><br>><br>><br>> *********css code**************<br>> #mapaguia {<br>> padding:0px;<br>> margin:0px;<br>> position:absolute;<br>> left:39px;<br>> top:119px;<br>> visibility:hidden;<br>> border: 0px none #000000;<br>> }<br>><br>> ***********javascript**********<br>> <script language="javascript"><br>><br>> var state = 'hidden';<br>><br>> function showhide(layer_ref) {<br>><br>> if (state == 'visible') {<br>> state = 'hidden';<br>> }<br>> else
{<br>> state = 'visible';<br>> }<br>> if (document.all) { //IS IE 4 or 5 (or 6 beta)<br>> eval( "document.all." + layer_ref + ".style.visibility = state");<br>> }<br>> if (document.layers) { //IS NET! SCAPE 4 or below<br>> document.layers[layer_ref].visibility = state;<br>> }<br>> if (document.getElementById && !document.all) {<br>> maxwell_smart = document.getElementById(layer_ref);<br>> maxwell_smart.style.visibility = state;<br>> }<br>> }<br>> </script><br>><br>><br>><br>> chameleon-request@lists.maptools.org wrote: Send Chameleon mailing <br>> list submissions to<br>> chameleon@lists.maptools.org<br>><br>> To subscribe or unsubscribe via the World Wide Web, visit<br>> http://lists.maptools.org/mailman/listinfo/chameleon<br>> or, via email, send a message with subject or body 'help' to<br>> chameleon-request@lists.maptools.org<br>><br>> You can reach the person managing the list at<br>> chameleon-owner@lists.maptools.org<br>><br>>
When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of Chameleon digest..."<br>><br>><br>> Today's Topics! :<br>><br>> 1. Show/Hide KeyMapDHTML (joanvp)<br>> 2. Re: Show/Hide KeyMapDHTML (Jason Fournier)<br>><br>><br>> ----------------------------------------------------------------------<br>><br>> Message: 1<br>> Date: Wed, 16 Nov 2005 08:33:35 -0800 (PST)<br>> From: joanvp<br>> Subject: [Chameleon] Show/Hide KeyMapDHTML<br>> To: chameleon@lists.maptools.org<br>> Message-ID: <20051116163335.14228.qmail@web50101.mail.yahoo.com><br>> Content-Type: text/plain; charset="iso-8859-1"<br>><br>> Hi list,<br>><br>> I'm trying to run a javascript function for show and hide <br>> KeyMapDHTML with a button. My keymap is positioned throw div tags <br>> and css.The function works fine with the div, but keymap is allways <br>> on top. Why? how can I hide it without submit
the whole page?<br>><br>> Thanks a lot in advanced<br>><br>><br>><br>> ---------------------------------<br>> Yahoo! FareChase - Search multiple travel sites in one click.<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://lists.maptools.org/pipermail/chameleon/attachments/ <br>> 20051116/33266870/attachment-0001.html<br>><br>> ------------------------------<br>><br>> Message: 2<br>> Date: Wed, 16 Nov 2005 11:50:38 -0500<br>> From: Jason Fournier<br>> Subject: Re: [Chameleon] Show/Hide KeyMapDHTML<br>> To: chameleon@lists.maptools.org<br>> Message-ID: <437B635E.1010509@dmsolutions.ca><br>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>><br>> Joan,<br>><br>> Can you give us your CSS and the snippet of HTML that contains the<br>> KeyMapDHTML tag?<br>><br>> Thanks,<br>> Jason<br>><br>><br>><br>> joanvp
wrote:<br>> > Hi list,<br>> ><br>> > I'm trying to run a javascript function for show and hide <br>> KeyMapDHTML<br>> > with a button. My keymap is positioned throw div tags and css.The<br>> > function works fine with the div, but keymap is allways on top. <br>> Why? how<br>> > can I hide it without submit the whole page?<br>> ><br>> > Thanks a lot in advanced<br>> ><br>> > <br>> ---------------------------------------------------------------------- <br>> --<br>> > Yahoo! FareChase - Search multiple travel sites in one click.<br>> ><br>> ><br>> ><br>> ><br>> > <br>> ---------------------------------------------------------------------- <br>> --<br>> ><br>> > _______________________________________________<br>> > Chameleon mailing list<br>> > Chameleon@lists.maptools.org<br>> >
http://lists.maptools.org/mailman/listinfo/chameleon<br>><br>> -- <br>> ________________________<br>> Jason Fournier<br>><br>> DM Solutions Group Inc.<br>> jfournier@dmsolutions.ca<br>> www.dmsolutions.ca<br>> 613.565.5056 x18<br>><br>><br>> ------------------------------<br>><br>> _______________________________________________<br>> Chameleon mailing list<br>> Chameleon@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/chameleon<br>><br>><br>> End of Chameleon Digest, Vol 20, Issue 14<br>> *****************************************<br>><br>><br>> Yahoo! FareChase - Search multiple travel sites in one click.<br>> _______________________________________________<br>> Chameleon mailing list<br>> Chameleon@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/chameleon<br><br>+-----------------------------------------------------------------+<br>|Paul Spencer
pspencer@dmsolutions.ca |<br>+-----------------------------------------------------------------+<br>|Applications & Software Development |<br>|DM Solutions Group Inc http://www.dmsolutions.ca/|<br>+-----------------------------------------------------------------+<br><br><br><br><br></blockquote><br></div><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>