defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

Javascript not working unless do reload to page #677

Closed mustafaabduljalil closed 7 years ago

mustafaabduljalil commented 7 years ago

I'm using pjax and when click on button content change but to run javascript i should reload page ? can anyone help me ?

mislav commented 7 years ago

We don't offer support for integrating pjax into web pages. Unless you need to report something that looks like a bug in our library, this is not the right place to ask question about how to write JS for your site. However, please familiarize yourself with the concept of reinitializing page plugins after content has changed via pjax navigation: https://github.com/defunkt/jquery-pjax#advanced-configuration