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

Closed
opened 2021-03-05 18:23:13 -05:00 by stefan1214124 · 0 comments
stefan1214124 commented 2021-03-05 18:23:13 -05:00 (Migrated from github.com)

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);
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); ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#233