[OpenLayers-Users] Including prototype

Andrew de Klerk andrew.deklerk at gmail.com
Wed Jul 30 10:13:24 EDT 2008


When we incorporated Jquery within an openlayers application the $ was
conflicting with Openlayers and we had to do the following:

<script type="text/javascript" src="Scripts/jquery-1.2.6.pack.js"></script>

    <script type="text/javascript">
        JQ=jQuery.noConflict(); 
        $=null;
    </script> 
    <!-- <script type="text/javascript"
src="http://localhost/openlayers26/lib/OpenLayers.js"></script> -->


All Jquery calls would then be called using JQ instead of $

I imagine you will be having the same problem

Andrew

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Christopher Schmidt
Sent: 30 July 2008 04:02 PM
To: Carlos Pinto
Cc: Users OpenLayers
Subject: Re: [OpenLayers-Users] Including prototype

On Wed, Jul 30, 2008 at 03:14:12PM +0200, Carlos Pinto wrote:
> Hi all,
> 
> I had my webpage with openlayers and it was working fine. But when I
> included the lines:
> 
> <script src="../js/prototype.js" type="text/javascript"></script>
> <script src="../js/colourPicker.js" type="text/javascript"></script>
> 
> my map stops working. Does anybody know why?

What version of OpenLayers are you using? DO you include Prototype
before or after OpenLayers? If you do the opposite of what your'e doing
now, does it work?

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.7/1580 - Release Date: 7/29/2008
5:26 PM




More information about the Users mailing list