Feedback button has a jquery incompatibility

  • sanscritNet
    Asked on February 16, 2016 at 9:32 AM

    Hello,

    I just tried to us the feedback button publishing option to my website, but it created a jquery incompatibility with other otbjects of the site. The problem was that the jquery version used was 1.6.4 and some of the objects on my side need a much more updated version.

    Is there any possible solution to this problem?

    Thanks.

    PS: Obviously I have disabled the feedback button, because I need my website to work properly.

  • Charlie
    Replied on February 16, 2016 at 12:53 PM

    Unfortunately, it would be quite hard to troubleshoot without seeing the actual error.

    However, if your website is loading other JS libraries like jQuery, and you are using the feedback embed code, then I believe what is happening is a script conflict. Our embed script is loading or calling resources in our own JS libraries, however, this seems to conflict with your own resources. We usually recommend using the iFrame embed code to avoid this problem.

    However, if you wish to use a feedback button, then perhaps the following solutions might help:

    Method 1. Get or create a feedback button or modal that came from your native JS library, if you are using jQuery, then they have the Dialog element. Here's a link to it: https://jqueryui.com/dialog/. Then embed the iFrame code directly on the body of that element. With that, our script won't conflict with your own resources.

    Method 2. Using jQuery noConflict. Here's a guide about it: https://api.jquery.com/jquery.noconflict/. However, this might be tricky and might messed up your other functions. I would recommend using Method 1 instead.

    I hope that helps.