Questions tagged [single-page-application]

A single-page application (SPA) is a web application that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.

A single-page application (SPA), also known as single-page interface (SPI), is a web application or web site that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.

In an SPA, either all necessary code – HTML, JavaScript, and CSS – is retrieved with a single page load, or partial changes are performed loading new code on demand from the web server, usually driven by user actions. The page does not automatically reload during user interaction with the application, nor does control transfer to another page. Updates to the displayed page may or may not involve interaction with a server.

Resources

5306 questions
2
votes
2 answers

RequireJS: how to add a prefix to path

I'm developing a SPA using Knockout.js V3 and RequireJS. I have ko components written like this: define(['text!settings.html'], function( htmlString) { 'use strict'; function SettingsViewModel(params) { ... } …
Tomer
  • 17,787
  • 15
  • 78
  • 137
2
votes
0 answers

Prevent cross site request forgery for API that has both browser based and ios/android based clients

I currently have a browser based, single page web app with a rails backend. The ember app reads the CSRF token from the meta tag outputted by rails and sets it in the http headers of each ajax request. Now, I'm building an iOS app which will talk to…
Charlie
  • 10,227
  • 10
  • 51
  • 92
2
votes
2 answers

Where are the models referenced at the ASP.NET web site of SPA tutorial?

Here at the step 5 of the first exercise (In the Add Existing Item dialog box, navigate to the Source/Assets/Models folder and select all the files. Click Add.) the tutorial make a reference to a set of files that I don't know where they are. Where…
user1785721
2
votes
1 answer

Server/client routing in JHipster with Thymeleaf and Angular

Context : I'm a french developer working in a team to develop a crowdfunding platform based on JHipster. In JHipster, when accessing http://domain.com/unknown, the retrieved page is a server-side error page. What I'd like to know : - how thymeleaf…
2
votes
0 answers

How to use 3rd party authentication services in a SPA without cookies?

In my web application, which happens to be a SPA (Single Page Application), I have OpenID and OAuth2.0 clients for user authentication using third party service. Namely, Google (OpenID), Yahoo (OpenID), Windows Live (OAuth2) and Facebook…
Tug
  • 189
  • 10
2
votes
1 answer

jquery library "uriAnchor" - I can't figure out how to set up the validation config

I'm reading a book "single page web application" written by "Michael S. Mikowski". In chapter3, there is a code using jQuery library "uriAnchor". the book doesn't provide information much about this jquery library, so I took a look at the document…
W3Q
  • 909
  • 1
  • 11
  • 19
2
votes
1 answer

Durandal : view and viewModel still persists in heap memory

I am working on big SPA project with durandal and knockout. We are facing memory leak issue. Normally we are in one page and we need to go to next page . Browser heap get cleared while we go to next page and vice versa. In our SPA while routing we…
2
votes
1 answer

How to handle SPA authentication to an ASP.NET MVC 5 back end without using Session?

I am currently developing a SPA application that uses only a couple of full Razor views. Any time I ask a Controller for data, I am checking a Session variable to see if the user is currently logged in and authorized. This "feels" right in a…
btt
  • 422
  • 6
  • 16
2
votes
1 answer

Wildcard Routing to static file in Play 2

I am working on a Play Framework 2.2 application that serves both a JSON api and a single-page application. For the single-page app, I am using Backbone.js, and I would like to support the HTML5 History api. Currently, Play is serving the…
Andrew
  • 2,084
  • 20
  • 32
2
votes
1 answer

Asp Identity Custom context

I am building a single page application, so I used the visual studio default template. When It was on development I had 2 databases Entityframework.mdf and Identity.mdf, because thats what the default configuration does, but now I need relation ship…
2
votes
1 answer

angular-ui-router isn't fulfilling state resolve promises when page refreshes or deep linked

Using AngularJS 1.2.16, ui-router, and Restangular (for API services), I have an abstract state with a child state that uses multiple views. The child view accepts a URL parameter (via $stateParams) and a resolve to fetch the record from an API…
2
votes
1 answer

How to optimize large js app with r.js optimizer + load libs like jquery, bootstrap from a CDN?

We have built a huge backbone-marionette application with a lot of different libraries (bootstrap, gmaps, momentjs etc.). Everything works like charm when I combine everything into a single even in production mode. To improve the performance most of…
crebuh
  • 357
  • 1
  • 3
  • 17
2
votes
1 answer

Angular - UI Router - state reentrance

How to config UI Router to reenter or reload the state by default? E.g. user wants to refresh page, so he clicks the link that follows to that page. But currently the link isn't clickable, as it goes to the same page and the state doesn't change.…
Ilia Barahovsky
  • 10,158
  • 8
  • 41
  • 52
2
votes
3 answers

Intercepting click events across Shadow DOM barrier

In my application, I intercept clicks on links and turn them into AJAX calls in order to achieve Single-Page-App-iness. In jQuery this looks something like this: $('#main').on('click', 'a[href]', function(e) { if (e.which == 2 || e.metaKey)…
2
votes
1 answer

Conditional Cell Formatting in KOGrid

I am trying to change text color based on a number being positive or negative in a kogrid cell. If the number is negative, i need the text color to be red. If the number is positive, I need the text color to be green. I thought using the…
Chris
  • 795
  • 2
  • 12
  • 27
1 2 3
99
100