Email: info@zenconix.com

Single Page Application (SPA)

Published on: 01/30/14 5:29 PM

Category:articles SPA Tags: , ,

I am creating new project in sharePoint 2013 and client requirement was a single page application. Then I started searching for requirement of SPA.

It should satisfy following conditions:

1) Proper navigation and history maintenance.

2) Notification after complete operation.

And main is

3) Data Binding

So for develop this we can have 2 approaches first is that use separate javascript libraries for specific function or you can also use some existing javascript functions

we can use knockout.js for data binding operation

sammy.js for navigation and history maintenance

toastr.js for notification purpose

But this all things also can be done with some framework available

We can use 2 great framework for SPA

1) Anguler JS– can get more information here http://angularjs.org/

2) Durandal JS – http://durandaljs.com/

here the differance is that angular Js uses only jquery and if jquery fails to load then it uses its one JqLite file for all operation while Durandal Js uses 3 top library knockout.js for data binding, require.js for loading js file and jquery for UI rendering

durandal and angular

Its good framework. you will get more information for this here http://www.johnpapa.net/spa/


0 thoughts on "Single Page Application (SPA)"

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Project without planning and framework…

This article is all about use framework, get its benefits, and minimize work of the developer. Currently I am working on one project. Project is in the banking domain. For banking domain, the first thing that one need to focus on the security and functionality rather than the design (UX). But in our case, due […]

Cross Site Tracing and its Prevention (XST)

Cross Site Tracing Summery Cross Site Tracing (XST) enables an attacker to steal the victim’s session cookie and possibly other authentication credentials transmitted in the header of the HTTP request when the victim’s browser communicates to destination system’s web server. The attacker first gets a malicious script to run in the victim’s browser that induces […]

Durandal JS for aspx page

Hello all, In last post we have seen what can be possibilities for single page application here Today I have face very complex problem. Actually its a little one, but because of less documentation on the internet and no reference it was quite difficult to solve. But after some study of framework, I got the […]