Skip to main content
22 events
when toggle format what by license comment
Jun 27, 2013 at 19:23 comment added Jongosi I'll give it a go, thx Shredder.
Jun 27, 2013 at 19:21 vote accept Jongosi
Jun 27, 2013 at 19:15 comment added Nick Rolando @Jongosi I updated yet again. Let me know if that helpful at all...
Jun 27, 2013 at 19:13 history edited Nick Rolando CC BY-SA 3.0
added 698 characters in body
Jun 27, 2013 at 18:25 history edited Nick Rolando CC BY-SA 3.0
deleted 216 characters in body
Jun 27, 2013 at 18:21 comment added Jongosi Thx all, I'll look at @benmarks suggestion
Jun 27, 2013 at 17:31 comment added Jongosi Ultimately for community, but just a local site right now, thx guys
Jun 27, 2013 at 17:23 comment added Nick Rolando @Jongosi Is this for a local module or a module for community?
Jun 27, 2013 at 17:21 history edited Nick Rolando CC BY-SA 3.0
deleted 617 characters in body
Jun 27, 2013 at 17:18 comment added Nick Rolando @benmarks Ah, I thought Magento install has that by default, but it looks like it doesn't, just prototype and some scriptaculous.
Jun 27, 2013 at 17:17 history undeleted Nick Rolando
Jun 27, 2013 at 17:16 history deleted Nick Rolando
Jun 27, 2013 at 16:47 comment added benmarks @Jongosi I think your extension will at best need to grep theme files to see if jquery is referenced in any of them, and then provide the user some feedback if it is.
Jun 27, 2013 at 16:45 comment added benmarks "Normally, this is added to all pages using the default handle in page.xml" should not be the case. This should normally be added via custom layout XML file or local.xml.
Jun 27, 2013 at 16:45 comment added Jongosi I am, in fact, developing a module. I need to use jQuery functionality and I don't want to break my own or other modules. So, I need to check if jQuery has already been included or not. I don't want to include multiple versions of jQuery (my own and another module's, for example). Then either server the CDN version or not :) Hope that's clear
Jun 27, 2013 at 16:37 comment added Nick Rolando @PetarDzhambazov The question didn't mention 3rd party modules or themes. In this case, there is no need to check if it exists because the developer should have full control over that in their layouts. Even in the instance of 3rd party extensions and themes, I think the case is still the same.
Jun 27, 2013 at 16:33 history edited Nick Rolando CC BY-SA 3.0
added 242 characters in body
Jun 27, 2013 at 16:32 comment added philwinkle I was adding a sidebar to say that there is more than one way to add jQuery to the page. This may help with detecting.
Jun 27, 2013 at 16:28 comment added Petar Dzhambazov I may be wrong, but question was how do you check if you don't already have jQuery. I have seen many themes to use it, many modules use it too as well. And most add it in different ways, from different locations. Which causes conflicts. So How do you detect 100% that there is already jQuery loaded so you do not load it again?
Jun 27, 2013 at 16:13 history edited Nick Rolando CC BY-SA 3.0
added 125 characters in body
Jun 27, 2013 at 16:05 comment added philwinkle Or, if you want Google CDN jQuery with local fallback: magento.stackexchange.com/questions/3523/…
Jun 27, 2013 at 15:33 history answered Nick Rolando CC BY-SA 3.0