[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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $() work around for prototype
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 -~--~~~~--~~--~--~---
[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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $() work around for prototype
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 -~--~~~~--~~--~--~---
[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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $() work around for prototype
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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $() work around for prototype
The only thing I've been able to come up with after reading the examples here: http://docs.jquery.com/Using_jQuery_with_Other_Libraries Is either forcing prototype to load first then use noConflict after jQuery gets loaded which would solve my problem (I think) Or getting a Digg version that uses the jQuery form of syntax instead of the $() shortcut approach. Unfortunately, the situation I'm in is because we use a CMS that allows producers to change what appears on a site dynamically. Because of this, forcing a prototype load at the top of a page would require it happen across the board on all of our pages and sites. It seems like overkill to me to load libraries regardless if they're used or not. If you want to see examples of the situation here are 2 pages: (look for the add newsletter link on the right midway down the page.) Working: http://www.chicagotribune.com/travel/ Not Working: http://www.chicagotribune.com/business/ There are definitely, better ways to handle one offs, but it gets a lot more complicated when you're talking about 50+ sites with 1000s of pages on each site. In our situation there are so many convoluted reasons for doing things the way they're done that situations like my current one are almost unavoidable. Thanks for you help and feedback though... -Boysenberry On Feb 26, 2009, at 9:23 AM, Alex Mcauley wrote: 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