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
2
votes
2 answers

single-product.php not opening

I have created a set of pages. In first page product.php all the custom categories are shown (title and image). If a user clicks on it then it moves to the taxonomy-product_categories page where products are shown of the specific category. Now i…
Waqas_aamer
  • 220
  • 1
  • 3
  • 18
2
votes
3 answers

ASP.NET and IsNew on the page level

Never seen this before in ASP.NET development. I'm trying to refactor out 40 single-page ASP.NET pages to code-behind style. What does this code do? // Validate required parameters (if "new", then nothing is required) if (!this.IsNew()) { if…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
2
votes
2 answers

Jarvis.widget doesn't get rendered in AngularJS ng-repeat

I have a hard time figuring out what to do in my AngularJs single-page . I use ng-repeat to display a number of widgets. The plugin is "Jarvis widget v2.0". My problem is, that the article container does not have the functionality from the Jarvis…
2
votes
3 answers

jQuery animations lag and jam

I'm working on this single-page site, few things (h1 opacity, nav height, etc) are animated based on scrolling. Initially it works, but after scrolling around a bit, heavy lag and unexpexted behaviour is experienced (eg. non-stop toggling of nav…
galingong
  • 323
  • 1
  • 4
  • 14
2
votes
1 answer

Project layout for single-page app built using Clojurescript and React

I want to build a single-page web application using Clojurescript and React (via Om) and I wonder how to lay out the directory structure for such a project? The project will not contain any backend code. So far, I envisaged the following…
ThePhysicist
  • 1,822
  • 16
  • 21
2
votes
1 answer

Cross referencing of 2 models

I have 2 models which are cross referencing each other. This could look like this: MainModel: define( [ 'durandal/app', 'durandal/plugins/router', 'models/Shell', 'models/EditModel' ], function (app, router, shell, editModel) { …
suamikim
  • 5,350
  • 9
  • 40
  • 75
2
votes
2 answers

backbone.js Backbone.Events Prototype Router Event aggregation

What's the best way to make this eventAggregator (Backbone.View.prototype.eventAggregator = _.extend({}, Backbone.Events);) object available to my router in Backbone.js without passing it as a parameter. I have a mainController (a view with no…
user2072912
  • 275
  • 1
  • 3
  • 8
2
votes
0 answers

SinglePageApplication 404-Error

I am trying to programm a SPA using Upshot.js when i came to a problem. upshot.metadata(@(Html.Metadata<...>())); Error: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Metadata' I solved this by adding the following line:
spitzbuaamy
  • 751
  • 2
  • 10
  • 25
2
votes
2 answers

Backbone Marionette using Require.js, Regions and how to set up

I'm currently writing a Backbone Marionette app which ultimately amounts to about 6 different "screens" or pages which will often times share content and I am unsure of how to best structure and access Regions. I am using the app/module setup…
2
votes
3 answers

Single Page Application & ASP.NET MVC

Are these two a good fit for each other? Is there any reference/screencast/book explaining howcome I: build a primitive SPA on top of ASP.NET MVC 3/4 (any other language/framework is ok provided that next two requirements are adhered; Use History…
lexeme
  • 2,915
  • 10
  • 60
  • 125
2
votes
1 answer

ASP.NET SPA as an alternative for Silverlight?

I am a massive Silverlight user. Since I started to realize that sooner or later Silverlight is gonna die (there is not going to be a SL 6 from what I heard), I'm starting to sniff around for an alternative technology. I need a fluid responsive UI…
2
votes
3 answers

Defining models on server side when using MVVM with Knockout.js

I am planning to use knockout.js and MVVM pattern on the client side for a Single Page application. So Models, ViewModels would be defined on the client side. I am confused about how we have to structure on the server side. Now, would controllers…
ideafountain
  • 575
  • 5
  • 17
2
votes
2 answers

Backbone and PHP Model Code Duplicate

So I have decided to take a project I have been working on, and project management system, and convert it from a standard multi-paged application to a single-page application. In the process I have looked at a number of javascript MV*ish frameworks…
ryanzec
  • 27,284
  • 38
  • 112
  • 169
1
vote
1 answer

ASP.NET SPA with a legacy domain objects

Looking at the Single page application beta in the MVC 4 I don't see how I can use my legacy domain objects as the model. It seems to require that the model use the entity framework to using DbDataController to get the data etc. I do not understand…
1
vote
1 answer

Build-time assembly of HTML and JS fragments for Single-page applications

I'm preparing to write a large single-page app but I'm looking for a better way to develop it than writing the whole thing as a single file. I'm concerned about maintainability and testibility so I'd prefer to split it up into modules or fragments…
Owen Fraser-Green
  • 777
  • 1
  • 11
  • 14