Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Can't work out why jquery plugin methods are undefined?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #158093

    I’m using a prestashop module call UE Cookie Law, but the jquery/javascript are causing: Uncaught TypeError: undefined is not a function

    Can anyone see why?

    http://petiteannee.com/en/

    Many thanks

    #158107
    CrocoDillon
    Participant

    The problem is this line in your html:

    tpj.noConflict(); // line: 267 (tpj points to jQuery)
    

    Which causes jQuery to restore $ to its previous value (which is undefined). You can either remove that line or, if that causes other bugs (I don’t see why it would in your case), change the $‘s to jQuery‘s in the cookie close script (line 567 – 571 in your html).

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.