Skip to content

A short demonstration of basic ajax request and promises as in jQuery without using any thing from jQuery and styling the same in core JavaScript. The framework has some issues but it a vibrant idea started in 2011 (discontinued). It is similar to newer frameworks of javascript found today and is only a POC.

Notifications You must be signed in to change notification settings

praveer-k/payload.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

payload.js

During the times when angularJS, reactJS and other frameworks were evolving, I had an idea of that each potential div is a space on the browser tab, hungry for data from the server. We imbue each div with components made from JQuery and put ajax request in the background to extract information from the server and display it to the user. (Taking you back in the early months of the year 2011)

It is a good idea of separating html from javascript - making codes more maintainable and re-usable. But the process of extracting information from the server and displaying is quite tyring. A perfect marriage can be achieved if the re-usability of JQuery can be combined with a framework level plugin that works in JQuery but removes the frustration of writing promise codes and then do something.

A better approach would be to initiallise each div with a potential refreshable information and fetch it from a link on any server.

AngularJS did achieve this idea in its ng version 2.0 by considering goodness of reactJS and typeScript and combining it together.

This version of the payload.js demonstrate the goodness of keeping parts of the application into components and how it can be achieved using JQuery style of doing things.

Few issues that you might get currently (because the implementation was discontinued !) are:

  1. History cannot be saved.
  2. Routing is not implemented.

Suggestions on it is always welcome !!!

About

A short demonstration of basic ajax request and promises as in jQuery without using any thing from jQuery and styling the same in core JavaScript. The framework has some issues but it a vibrant idea started in 2011 (discontinued). It is similar to newer frameworks of javascript found today and is only a POC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published