hi, i havent tried this, but i think you shouldnt have to alias jquery as JQ, just use jQuery (where you'd normally use $), and include it _after_ any prototype/OL stuff. <br>the jquery srcipt checks if $ exists, if so, it doesnt create that namespace. 
<br>-brent<br><br><br><div><span class="gmail_quote">On 11/21/06, <b class="gmail_sendername">Daniel Kastl</b> &lt;<a href="mailto:daniel.kastl@gmx.de">daniel.kastl@gmx.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br><br>While with version 2.1 of OpenLayers there was no problem to use both<br>OpenLayers' Prototype and jQuery javascript framework, it doesn't work<br>anymore with version 2.2.<br><br>Firebug error message:<br>
&quot;this.div.appendChild is not a function&quot; in Map.js (line 136):<br>this.div.appendChild(this.viewPortDiv);<br><br>I followed the jQuery guide how to run jQuery together with Prototype<br>library (<a href="http://jquery.com/docs/PrototypeAndJQuery/">
http://jquery.com/docs/PrototypeAndJQuery/</a>)<br><br>I tested with the Wiki example:<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;<br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
<br>&quot;xhtml1-transitional.dtd&quot;&gt;<br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot; xml:lang=&quot;jp&quot; lang=&quot;jp&quot;&gt;<br>&lt;head&gt;<br>&nbsp;&nbsp;&lt;meta http-equiv=&quot;Content-type&quot;&nbsp;&nbsp;content=&quot;text/html; charset=UTF-8&quot; /&gt;
<br>&nbsp;&nbsp;&lt;title&gt;OpenLayers Demo&lt;/title&gt;<br><br>&nbsp;&nbsp;&lt;!-- jQuery --&gt;<br>&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot;<br>src=&quot;<a href="http://jquery.com/src/jquery-latest.pack.js">http://jquery.com/src/jquery-latest.pack.js
</a>&quot;&gt;&lt;/script&gt;<br>&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;JQ = $;&nbsp;&nbsp;// rename $ function to use jQuery together with Prototype<br>&nbsp;&nbsp;&lt;/script&gt;<br><br>&nbsp;&nbsp;&lt;!-- OpenLayers --&gt;<br>&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot; src=&quot;./2.2/lib/OpenLayers.js&quot;&gt;&lt;/script&gt;
<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>&nbsp;&nbsp;&lt;div id=&quot;map&quot; style=&quot;width:100%;height:100%;&quot;&gt;&lt;/div&gt;<br>&nbsp;&nbsp;&lt;script defer=&quot;defer&quot; type=&quot;text/javascript&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;var map = new 
OpenLayers.Map('map');<br>&nbsp;&nbsp;&nbsp;&nbsp;var wms = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;<a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>&quot;, {layers: 'basic'} );
<br>&nbsp;&nbsp;&nbsp;&nbsp;map.addLayer(wms);<br>&nbsp;&nbsp;&nbsp;&nbsp;map.zoomToMaxExtent();<br>&nbsp;&nbsp;&lt;/script&gt;<br>&lt;/body&gt;<br><br>Would be nice somebody knows a solution how to use both, OpenLayers and<br>jQuery.<br><br>Daniel<br><br><br>_______________________________________________
<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>