0
Welcome Guest! Login
0 items Join Now

RokSprocket conflict with Ajaxy live search

  • RokSprocket conflict with Ajaxy live search

    Posted 7 years 8 months ago
    • Seem to have an issue where i have Ajaxy Live Search on my site that works fine - but as soon as i activate RokSprocket it stops working - as in the live search function stops. Only happens when I activate RokSprocket. Any idea why that would happen and if there is a way around the conflict ?

      this is the error that comes up in the console

      Uncaught TypeError: Cannot read property 'length' of undefined     sf.js?ver=1.0.1:191 
      htmlResults @ sf.js?ver=1.0.1:191
      (anonymous function) @ sf.js?ver=1.0.1:139
      i @ jquery.js?ver=1.12.4:2
      fireWith @ jquery.js?ver=1.12.4:2
      y @ jquery.js?ver=1.12.4:4
      c @ jquery.js?ver=1.12.4:4
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21561
    • Thanks: 3090
    • messin' with stuff

    Re: RokSprocket conflict with Ajaxy live search

    Posted 7 years 8 months ago
    • It's likely a conflict between RokSprocket's JS library which is MooTools and jQuery

      You also need to make sure you're not loading multiple versions of jQuery

      Conflicts like this cannot always be resolved.

      the order in which the libararies load in you <head> matters... try re-ordering them

      wordpress.org/support/topic/how-to-change-plugins-load-order

      Sometimes when you combine and compress JS scripts that helps... I like wordpress.org/plugins/wp-fastest-cache/
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.035 seconds