I was just reading around and got somehow interested in RightJS. I have been using jquery as my main javascript framework but now I wanted to learn something new. However I would like to know of RightJS could do PJAX. I am aware that as long as you understand how PJAX works, you could implement it in any framework. However, I wish someone could guide me on how to build this.
Thanks in advance for any help.
For the most part PJAX consists of:
To ensure it all degrades gracefully you will need to apply the PJAX listeners to internal links using JavaScript, so that the links will all work normally for people with JS disabled. It should also do some feature checking to ensure a users browser supports the pushstate API etc (and if not again leave everything as normal links).
I actually implemented a native JS version of PJAX myself if your interested in taking a look at how stuff can be achieved: https://github.com/thybag/PJAX-Standalone/blob/master/pjax-standalone.js
Additionally you can also browser the source of the JQuery PJAX here: https://github.com/defunkt/jquery-pjax/blob/master/jquery.pjax.js