• Hi,
    you’ve developed a great plugin, I really appreciate the time and effort you’ve put into it.

    I’ve a small problem that I’m hoping you can help me out with please. I have a modal and using the ‘custom element click’ to trigger it. The custom element is inside a container that is updated via AJAX pagination. upon page load the modal trigger works perfectly however after I load the next page (via AJAX) the modal trigger no longer works. I understand why it’s not working (something to do with binding) I just need to figure out how to reinitialise the modal script to recognise the modal trigger once again.
    Can this be done?
    Many thanks,
    Philip

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author merbmerb

    (@merbmerb)

    Sounds like you would need to run the function initElements() (inside modal.js) after the ajax load. Unfortunately, this function is inside an IIFE, so the only way to do this is to change the code so that the function is exposed and can then be called when you need to.

    Hello,

    I’m facing the same problem on a site where I’m using (Toolset) ajax search filter to filter a list of companies.
    I would like detail infos for each company to display in a popup, but it doesn’t work when when a filter has been activated.
    Please consider this as a proposal of evolution of your plugin which remains very useful.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘modal text trigger not working after AJAX load’ is closed to new replies.