Alternatively, you can do: <br><br>OpenLayers.Element.toggle(document.getElementById(&#39;my_element_id&#39;));<br><br>erik<br><br><br><br><div class="gmail_quote">On Fri, May 22, 2009 at 10:04, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, May 22, 2009 at 08:55:58AM -0600, John Cartwright wrote:<br>
&gt; Hello All,<br>
&gt;<br>
&gt; I&#39;m using OL 2.7 and expected to be able to use Prototype&#39;s facilities<br>
&gt; like element.toggle w/o having to explicitly load prototype.js, e.g.:<br>
<br>
</div>OpenLayers is not based on prototype, and does not include prototpe<br>
functions like this. (Some core parts of OpenLayers were, at one point,<br>
based on prototype, but all semblance of being able eto use prototype<br>
with OL is essentially dead.)<br>
<br>
You&#39;ll need to load Prototype.js yourself.<br>
<br>
Best Regards,<br>
<font color="#888888">--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>