Comments (4)
Hey.
My jquery-pjax fork ( https://github.com/spantaleev/jquery-pjax ) aims to do that. It allows the server to return a JSON response that specifies which containers to be updated with what content. The project's README contains some information on how that works.
My pull request was rejected though, that's why it's still separate - #7
defunkt says they're using filter()
to achieve this functionality. Maybe you want to look into that and see if it's going to fix your problem.
from jquery-pjax.
I see that now. It's not exactly what I described, but it accomplishes the same result, and this request is likely to get rejected for a similar reason.
Thanks for pointing that out.
from jquery-pjax.
I'm not opposed to a filter()
based solution.
Originally I tried adding something that looked for a <nav>
tag and replaced some nav container with the contents, but it quickly got out of hand.
from jquery-pjax.
I wonder if microscopic, tweet-sized plugins would make sense.
jquery-pjax-nav
from jquery-pjax.
Related Issues (20)
- Multiple fragment processed
- Document links dump bytes in dom
- the current node list is empty
- PJAX memory Leak issue HOT 1
- Link to do just as browser back button HOT 2
- Prevent form submit with pjax when "enter" is clicked in a form element
- In the JavaScript code, Chinese is converted to unicode.
- the documented `ready pjax:end` does not work with Jquery 3.4.1 or 2.2.4 HOT 5
- How to cancel/abort ongoing request?
- Can't run a container cleanup before the cache snapshot
- When using Pjax, the target page is returned without replace the container
- Modal bootstrap is create class modal-backdrop two times when using pjax
- skeleton loading
- Unusual reaction with pjax (Content is duplciating) HOT 1
- New generation Pjax variations HOT 3
- Pjax switch fail: DOM doesn't look the same on new page
- The css class is missed,when i use PJAX,How to reload it?
- Wrong events lifecycle in case when ajax request is not async
- page reload after append link to hmtl
- 给a标签同时添加多个点击事件不生效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-pjax.