Skip to content

Instantly share code, notes, and snippets.

@xonecas
Created November 7, 2013 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xonecas/7361334 to your computer and use it in GitHub Desktop.
Save xonecas/7361334 to your computer and use it in GitHub Desktop.
Welcome document
<p>Global callback for all pjax?</p>
<pre><code>pjax success
</code></pre>
<p>Easy way to re-instate JS bindings?</p>
<pre><code>None so far, maybe using the global callback mentioned above.
</code></pre>
<p>Leaking old handlers for removed dom?</p>
<pre><code>It's handled internally by the pjax plugin.
</code></pre>
<p>Does this require new views, in django?</p>
<pre><code>Subset of a base class view works the best.
</code></pre>
<p>Can you load the fragment freely if the url doesn’t match</p>
<pre><code>You can, but you don't need the pjax plugin.
</code></pre>
<p>A bad case, would be when we need to load two independent fragments in the same page,
since we are tied to the URL structure.</p>
<pre><code>This can be managed, by keeping a strict URL hierchy.
</code></pre>
<p>From your experience, how do you handle intermediate state on the front end side?</p>
<pre><code>For things that do not save to the backend right away, stepping outside PJAX would have been required.
</code></pre>
<hr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment