Skip to content

Instantly share code, notes, and snippets.

@xonecas
Created November 7, 2013 20:30
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/7361359 to your computer and use it in GitHub Desktop.
Save xonecas/7361359 to your computer and use it in GitHub Desktop.
PJAX
Global callback for all pjax?
pjax success
Easy way to re-instate JS bindings?
None so far, maybe using the global callback mentioned above.
Leaking old handlers for removed dom?
It's handled internally by the pjax plugin.
Does this require new views, in django?
Subset of a base class view works the best.
Can you load the fragment freely if the url doesn't match
You can, but you don't need the pjax plugin.
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.
This can be managed, by keeping a strict URL hierchy.
From your experience, how do you handle intermediate state on the front end side?
For things that do not save to the backend right away, stepping outside PJAX would have been required.
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment