Gravatar for jpdery@coveo.com

Question by jpdery, Aug 27, 2015 3:17 PM

Salesforce integration: Uncaught TypeError: $(...).on is not a function

I integrated CoveoSolutions:CoveoJsSearch and JSUI Search Framework search interface components in a VisualForce page. This page also references an other JQuery instance.

The error occurs on $('Body').On method in this block below.

    $(function() {
  $('body').on('queryError', function(e, args) {
    $.get('/apex/coveosolutions__coveoerror?description=' + encodeURIComponent('REST Error: ' + args.error.message));
  });
})

I tried with and without Coveo.$.noConflict but I still get the error. How can I resolve this?

0 Reply
Ask a question