- grassmediaAsked on February 21, 2014 at 03:25 AM
JQuery is so pervaisive these days on the web and the feedback-style embedding code is very useful in responsive designs where other embedding methods can be a bit of a challenge, I'm surprised we still get conflicts.
I see a number of posts on the forum where this has been a problem (disabling JQuery image sliders for example) but I've not seen a definitive solution or reliable workaround, just pointers to various JQuery "no conflict" articles, all of which I've found singularly unhelpful in resolving the problem.
Is there not a way that the Jotform script could be called in such a way as to avoid conflicts with other JQuery libraries?
- JotForm SupportNeilVicenteAnswered on February 21, 2014 at 03:59 AM
Even if the plugins use the same library (jQuery, in this instance), if they were made by different developers, conflicts are still bound to arise, especially if the codebases for the respective plugins are built around different versions of jQuery.
If you are okay with sharing your site's URL, we can take a look at it and see if we can find solutions for the problems you are having.
We'll look forward to your response on this matter.
- grassmediaAnswered on February 21, 2014 at 06:35 AM
Indeed, of course you are right, conflicts are bound to arise. I use JQuery a lot and various libraries that use JQuery and I have to say, in all honesty, the only conflicts I've ever encountered involved the Jotform feedback button calls.
This is not really a complaint or critisism, just what I've found to be true. My guess if that the Jotform call also calls a version of JQuery in the background so, if that's the case, then why not modify the Jotform JS to substitue $ for say $Jotform in JQuery which *might* cure a lot of problems for people? Or maybe it's becuase Jotform is using Jquery 1.6.4 which is pretty old now?
You're more than welcome to look at the site I'm building at the moment but I doubt you'll be able to help much - if you can, I'll be very grateful and very impressed :)
You'll see that at present, the Jotform feedback button is correctly displayed at the top of the screen but the image slideshow above the words "commercial", "Studio" and "Personal" is not. By commenting-out the Jotform script (before the /body tag) the slideshow works just fine.
- JotForm SupportNeilVicenteAnswered on February 21, 2014 at 06:41 AM
I will try my very best to help.
Which plugin is it again that isn't working as expected on your site?
- grassmediaAnswered on February 21, 2014 at 06:50 AM
It's html5gallery.js (with Jquery 1.11.0 already resident) which provides the slideshow.
How about a version of http://cdn.jotfor.ms/static/feedback2.js?3.2.618 for people with JQuery already resident? Could save 92k that way as a bonus!
- JotForm SupportNeilVicenteAnswered on February 21, 2014 at 06:53 AM
I am not sure if your last request can be granted. We would not want to confuse users with yet another option to check whether they have jQuery or not.
Oh and by the way, just so you know, we are already using a different variable to call the jQuery object, so I am pretty sure that that is not the cause of the problem you're reporting.
I will let you know if I find any solution for this predicament of yours.
- grassmediaAnswered on February 21, 2014 at 06:56 AM
Thanks Neil, I really do appreciate your help, even if I do sound a bit grumpy ;)
- JotForm SupportNeilVicenteAnswered on February 21, 2014 at 07:10 AM
It is alright. I already got used to grumpy users, and I am a grumpy customer myself when I don't get something I want from a product/service :)
Anyway, I think I may have found a solution, and that is to move the JotForm feedback script to the top of the other script tags, just right after the link tags.
Please do keep us posted on your results.
- grassmediaAnswered on February 21, 2014 at 07:18 AM
lol brilliant - that works! I'll have to try to remember that cos this isn't the first time I've struggled with it! Thanks Neil, I should have tried that before bothering you.
- JotForm SupportNeilVicenteAnswered on February 21, 2014 at 07:22 AM
We're happy to hear that the solution worked for you.
Have a great day ahead :)