Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript dynamic page replacing content issue Re: dynamic page replacing content issue

#80235
Chris Coyier
Keymaster

This is just how JavaScript works. When content is loaded in dynamically, none of that content automatically has any events bound specially to it. You can get around some of that with things like jQuery’s .live() and .delegate(), so look into that. But otherwise, after the content is done loading (when you fetch a new page), you’ll need to re-bind or re-call all the stuff that made that content do stuff.