djax
djax copied to clipboard
Doesn't work with trackable elements that are direct children of body
While setting up my views for those occasions when I simply want to replace all of the page content rather than small portions, I found that a direct child of body can't be used as a trackable element:
<body id="body">
<div id="main" class="updateable">
So I'm using an extra div that I otherwise wouldn't have done:
<body>
<div id="main-wrapper">
<div id="main" class="updateable">
I don't know if you'd want or be able to accommodate using direct children of body, but thought I'd mention it anyway as I spent a little while trying to get it to work before I figured it out, so it may be worth mentioning this in the documentation.