Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

Pjax doesn't work with links loaded with another children ajax elements after DOM #233

@stefan1214124

Description

@stefan1214124

Using ajax call I am loading new content to an existing empty div element which adds some links. These links should also work with pjax but they don't as I can see that the timestamp changes.

I tried to do this in the ajax success part but it's not working:

var newContent = document.querySelector(".new-content");
pjax.refresh(newContent);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions