in the latest jQuery you can call noConflict after its loaded to work 
alongside older versions if needs be, so there must be a way to remove the 
loaded jQuery and use the new one, John Resig explained it in a webcast last 
week on ajaxian



----- Original Message ----- 
From: "Boysenberry Payne" <habitatl...@gmail.com>
To: <prototype-scriptaculous@googlegroups.com>
Sent: Thursday, February 26, 2009 3:15 PM
Subject: [Proto-Scripty] Re: $() work around for prototype


>
> Actually it has 2 global variables:
> http://mankz.com/code/GlobalCheck.htm
>
> $ and jQuery
>
> It's the $ that conflicts with prototype (obviously).
> jQuery has a couple of work arounds on their site, but in order for it
> to work I have to be able to change how the jQuery commands are used,
> something I can't do with a 3rd party app like Digg's API.
>
> If I could load prototype first it would probably be okay, so that
> might be my eventual solution.
> Right now, I have emailed some folks at Digg to see if they have a
> solution that doesn't require me to load prototype out of the natural
> order it comes in using our current build.
>
> --Boysenberry
>
>
>
> On Feb 26, 2009, at 9:05 AM, Alex Mcauley wrote:
>
>>
>> jQuery is globally safe as its parenthised (check out the source
>> code) ...
>> It could be plugins that run on Digg bringing it into the global scope
>>
>> ----- Original Message -----
>> From: "Boysenberry Payne" <habitatl...@gmail.com>
>> To: <prototype-scriptaculous@googlegroups.com>
>> Sent: Thursday, February 26, 2009 2:54 PM
>> Subject: [Proto-Scripty] Re: $() work around for prototype
>>
>>
>>>
>>> It's the Digg API that has it built in.
>>>
>>> We're contacting them today to see if they have a work around in
>>> their
>>> API.
>>>
>>> One would think if the people over at Digg are relying so heavily on
>>> Jquery they'd think to make it global safe.
>>>
>>> Oh well, I guess we're still in the Wild West era of JS coding...
>>>
>>> If I get feedback from them that is useful, I'll post it back to this
>>> list for posterity.
>>>
>>> Thanks,
>>> Boysenberry Payne
>>>
>>>
>>> On Feb 26, 2009, at 3:56 AM, Alex Mcauley wrote:
>>>
>>>>
>>>> when jQuery is loaded do $jq=jQuery.noConflict();
>>>>
>>>> then $jq becomes jquery
>>>>
>>>>
>>>> or just use jQuery() instead of $()
>>>> ----- Original Message -----
>>>> From: "T.J. Crowder" <t...@crowdersoftware.com>
>>>> To: "Prototype & script.aculo.us"
>>>> <prototype-scriptaculous@googlegroups.com
>>>>>
>>>> Sent: Thursday, February 26, 2009 9:50 AM
>>>> Subject: [Proto-Scripty] Re: $() work around for prototype
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>>> My situation is cause because there is an ad being loaded that uses
>>>>> DIGG and jQuery.
>>>>
>>>> An *ad* is loading jQuery?!  Sorry, isn't that a bit...intrusive of
>>>> them?
>>>>
>>>> No, Prototype doesn't have a no conflict mode like jQuery's.  But
>>>> I'd
>>>> say the real conflict is with the ad.  I'd (politely!) tell the
>>>> advertiser to rein themselves in.
>>>>
>>>> FWIW,
>>>> --
>>>> T.J. Crowder
>>>> tj / crowder software / com
>>>> Independent Software Engineer, consulting services available
>>>>
>>>>
>>>> On Feb 25, 10:40 pm, Boysenberry Payne <habitatl...@gmail.com>
>>>> wrote:
>>>>> Hello Everyone,
>>>>>
>>>>> I have a situation where there is a conflict being generated on our
>>>>> site between jQuery and Prototype using the $() syntax.
>>>>> I have already looked over the jQuery workarounds for inter-library
>>>>> conflicts.
>>>>> I was wondering if prototype has any such feature, i.e. a way to
>>>>> replace $() with something else that would allow it to play with
>>>>> others nicely.
>>>>>
>>>>> My situation is cause because there is an ad being loaded that uses
>>>>> DIGG and jQuery.
>>>>> I didn't build the ad and would rather just fix my code than to
>>>>> have
>>>>> to dig through someone else's.
>>>>> This mean I also don't have prototype loading before jQuery (as a
>>>>> couple of the jQuery solutions suggest.)
>>>>>
>>>>> (on the right side midway down the page, look for the link "add
>>>>> newsletter")
>>>>> Here is an example of the working
>>>>> code:http://www.chicagotribune.com/travel/
>>>>> Broken code:http://www.chicagotribune.com/business/
>>>>>
>>>>> PS we're in the process of reworking the graphics, so just ignore
>>>>> the
>>>>> pixelation...
>>>>>
>>>>> Thank you,
>>>>> Boysenberry Payne
>>>>
>>>>
>>>>
>>>>>
>>>
>>>
>>>>
>>>
>>
>>
>> >
>
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to