Okay
  Public Ticket #2254330
Ajax error
Closed

Comments

  • Goutam started the conversation

    Hi ,

    I have a little problem and could pinpoint what was causing it. It seems like the there's Ajax is messing up with LayerSlider when you move from a page with a slider to a page without one. Ajax doesn't destroy the slider and the 'new page' still have the scripts running, sending an error like this one in the console : 

    Uncaught TypeError: Cannot read property 'elements' of undefined
        at Object.addLayers (eval at <anonymous> (layerslider.kreaturamedia.jquery.js?ver=6.8.1:13), <anonymous>:1:146928)
        at Object.create (eval at <anonymous> (layerslider.kreaturamedia.jquery.js?ver=6.8.1:13), <anonymous>:1:142610)
        at Object.prepare (eval at <anonymous> (layerslider.kreaturamedia.jquery.js?ver=6.8.1:13), <anonymous>:1:145705)
        at Object.eval (eval at <anonymous> (layerslider.kreaturamedia.jquery.js?ver=6.8.1:13), <anonymous>:1:121007)
        at Object.g._callback (greensock.js?ver=1.19.0:20)
        at Object.g.render (greensock.js?ver=1.19.0:21)
        at d.k.render (greensock.js?ver=1.19.0:18)
        at Object.g.render (greensock.js?ver=1.19.0:20)
        at Object.C._updateRoot.F.render (greensock.js?ver=1.19.0:21)
        at Object.g.dispatchEvent (greensock.js?ver=1.19.0:20)

  • [deleted] replied

    Hello Goutam,

    Thank you for getting in touch with us. 

    Please show us your site or a test page where we can check on this. Thank you.