Notable JavaScript package: JS AJAXify PushState

Recommend this page to a friend!
  Blog JS Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable JavaScript pa...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 73

Last month viewers: 1

Categories: Notable Packages

AJAX allows to load page content faster as it does not require to load the whole page again.

However, to take advantage of AJAX you need to change pages to send AJAX requests when the user interacts with it. You also need to update the page history, so the browser goes back to the right page when the user hits the back button.

This package provides a solution for both problems. It changes page links so when the users click on them the code sends AJAX requests to the server in order to load the next page.

At the same time, it updates the page history state, so the back button clicks will make the browser go back to the right pages.

Read this article to learn more details about how this notable JavaScript package works.




Loaded Article
The package JS AJAXify PushState is one of the few JavaScript packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Make link clicks be converted into AJAX requests

Here follows in more detail what it does:

This object can make link clicks be converted into AJAX requests, effectively making any web site a web application.

It can traverse the current Web page, alter the current links, so when the user clicks on them, it sends HTTP requests to the respective link URL using AJAX and loads the next page.

It uses PushState to update the page browsing history so when the user go back it restores the previous page.

The object alters all the page links with external HTTP or HTTPS URLs and replaces the given element selector with content from the AJAX response.

Notable JavaScript packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.

You need to be a registered user or login to post a comment

25,349 JavaScript developers registered to the JS Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.




  Blog JS Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable JavaScript pa...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)