Questions tagged [singlepage]

Single Page Applications are web applications that simulate the interaction behavior of desktop applications.

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.

More resources:

217 questions
10
votes
2 answers

Appropriate back-end for a single-page web application?

Historically I've mainly written web apps in Django, but now I'm increasingly finding that I want to write single-page web apps using Backbone.js or a similar JavaScript framework, with a back-end that solely consists of a database and an API. My…
9
votes
2 answers

Reusing backbone views/routes on the server when using Backbone.js pushstate for seo/bookmarking

I'm doing some due diligence on backbone for a single page app and wonder if it is possible to re-use the same views/routes from the client on the server side, so that when google visits a pushstate URL, or it is accessed directly, the server can…
cjroebuck
  • 2,273
  • 4
  • 30
  • 46
9
votes
8 answers

Very large single page application design problems

I am currently writing whats going to be a very, very large single page web/javascript application. Technologies I am using are ASP.NET MVC4, jquery, knockout.js and amplify.js. The problem I am having is that most if not all of the single page…
cpeele00
  • 883
  • 4
  • 14
  • 29
8
votes
2 answers

How to access router globally in backbone js?

This is my app.js file. I need to access the router's navigate method from within the navigateToLogin method of the LandingView class. But since the appRouter is defined after the view it can't recognize the router from within the view. So I need to…
jaykumarark
  • 2,359
  • 6
  • 35
  • 53
8
votes
3 answers

How to do Dropbox authentication in a single page app without opening a new window?

I have a single page app that integrates with other services such as Dropbox and LinkedIn. Dropbox, for instance, has great API and I got the authentication working by opening Dropbox's authentication link in another window. Once the user…
Tony Abou-Assaleh
  • 3,000
  • 2
  • 25
  • 37
7
votes
3 answers

ios PDFKit displaymode = singlepage only shows the first page of the pdf

I'm trying to display a pdf on ios via apples PDFKit library, and rather than use PDFDisplayMode.singlePageContinuous mode, I want to stop at page breaks so I'm trying to use PDFDisplayMode.singlePage.…
shochu_king
  • 136
  • 2
  • 10
6
votes
1 answer

html/js: is there a "page loaded" event in single page applications?

I'm building a single-page-application which (pre-)loads the content of different pages via ajax. when the user navigates, the app replaces the old content inside a specific tag with the new content (ajax data). this new content could be e.g. an…
Philipp Kyeck
  • 18,402
  • 15
  • 86
  • 123
6
votes
3 answers

How to handle non-root URLs in a singlepage app?

I try to make a single page app with Rails 3.2 and Backbone.js with pushState option but faced with something that I do not understand. If I load the root URL of the app (/), everything goes right: Rails return an HTML-layout with JS which…
fey
  • 1,289
  • 1
  • 10
  • 20
5
votes
2 answers

Microsoft ASP .NET Web API, MVC 4 and SPA Architecture

Microsoft recently released MVC 4 Beta, which has these new very nice features like Web API and SPA. And as always Microsoft's demos do not demonstrate best practices from software design prospective. For example, using DbController which is…
Alex
  • 389
  • 1
  • 3
  • 8
5
votes
5 answers

How to configure a SPA on loading?

We are using Webpack, React, Node.JS but I think this question is more generic that the specific technologies. I can use Webpack to configure the SPA when building for development mode or production mode (e.g. using the DefinePlugin). How can I…
Ashley Aitken
  • 2,419
  • 2
  • 20
  • 24
5
votes
1 answer

Include and reference an image in react with webpack

What ist the best way to include and reference images for react-usage in a singlepage JavaScript app build and bundled with webpack? So far i have return () Is there a better way?
Benvorth
  • 7,416
  • 8
  • 49
  • 70
5
votes
7 answers

Best practices managing JavaScript on a single-page app

With a single page app, where I change the hash and load and change only the content of the page, I'm trying to decide on how to manage the JavaScript that each "page" might need. I've already got a History module monitoring the location hash which…
seanmonstar
  • 11,284
  • 2
  • 21
  • 26
5
votes
5 answers

"single page app from scratch"

I've been starting work on a single page app. (think TiddlyWiki) It's been a while since I've done serious web design. Last time I built a big site was pre-css, pre-javascript, pre-html5, i.e., HTML plus a lot of cgi scripts, in my case, mostly in…
5
votes
1 answer

Login page in Single Page Application

I'm building a Single Page Application, read that login page should not be on the same page. Should I have login as a separate html page, or can I have login also in the same page. If I have login as a different page, depending on the first page…
Chakradar Raju
  • 2,691
  • 2
  • 26
  • 42
5
votes
1 answer

MVC4 Single Page App - Multiple screens

Looking through the tutorials from Microsoft it seems that they have used SPA in quite simple scenarios i.e To Filter or update a single list. Say I have a slightly more complex interface where I might have multiple lists, multiple add screens and…
jason clark
  • 829
  • 2
  • 11
  • 23
1
2
3
14 15