MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

stefan1214124 opened this issue · comments

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);