MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.45k stars 124 forks source link

Load new content with script, not click event #122

Closed BiserStoilov closed 6 years ago

BiserStoilov commented 6 years ago

Hi,

i try manually load content:

<script> $("#content").trigger("click"); </script>

but without result. How can i manually load new content?

Thanks in advance!

BehindTheMath commented 6 years ago

You can use pjax.loadUrl(url).