dimanche 29 mars 2015

jQuery .data() does not work if i call my external script

In my wp website i need to call within my <head> tag an external js script for tracking visitors behavior on site but if i include that script at every time i load page browser return


"Error reading the response: TypeError: undefined is not a function"


and when i debug code i see the error in a js internal wp file on a line like



options = jQuery(this).data('settings');


If i remove my external script all works done. Now, how is possible for an externarl script disable the use of jQuery .data function? The script is mine and i don't understand how this is possible.


Any idea?


Thanks in advance AM


Aucun commentaire:

Enregistrer un commentaire