locked
What Is a Single Page Application? RRS feed

  • Question

  • User977690511 posted

    How is the single page in a single page application different from a single page in an usual multi-page Webform or MVC application?

    Please forgive me if this is a stupid question.

    Saturday, July 27, 2013 11:20 AM

Answers

  • User-1716253493 posted
    http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/DEV-B350?sa=X&ei=xuXzUaCsFqObjAKPkYH4Cg&ved=0CAcQqwQ#fbid=vNN0IUXHo5B
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 27, 2013 11:23 AM
  • User281315223 posted

    Single Page Applications rely more heavily on client-side operations and essentially handling all of your functionality within a single page that relies on AJAX / Javascript to handle all of your data-binding and manipulation.

    I would recommend checking out the following resources to get a better idea of what they can offer for you : 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 27, 2013 12:06 PM
  • User977690511 posted

    I found my own answer.  The default SPA template in the standard MVC 4.5 project from VS 2012 is not one but many pages.  The Help and Account pages are on different urls.

    There is one page for the main application though.  I understand now.

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 29, 2013 11:28 AM

All replies

  • User-1716253493 posted
    http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/DEV-B350?sa=X&ei=xuXzUaCsFqObjAKPkYH4Cg&ved=0CAcQqwQ#fbid=vNN0IUXHo5B
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 27, 2013 11:23 AM
  • User281315223 posted

    Single Page Applications rely more heavily on client-side operations and essentially handling all of your functionality within a single page that relies on AJAX / Javascript to handle all of your data-binding and manipulation.

    I would recommend checking out the following resources to get a better idea of what they can offer for you : 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 27, 2013 12:06 PM
  • User977690511 posted

    Thanks to both responses.  I had watched half of John Papa's videos.  I have to re-phrase my question.

    Can a SPA be done on a single page in a normal MVC project too?  Can I have a project with "normal" MVC pages for administration and the like, and then a SPA page to house the main interaction-rich "application"?

    In other words, would "a fat thin-client application" describe what a SPA actually is?

    Sunday, July 28, 2013 3:20 AM
  • User977690511 posted

    I found my own answer.  The default SPA template in the standard MVC 4.5 project from VS 2012 is not one but many pages.  The Help and Account pages are on different urls.

    There is one page for the main application though.  I understand now.

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 29, 2013 11:28 AM
  • User1142003421 posted

    I have written quite a few single page applications which interacts with the server(s). At the time I started writing single page applications, the world was going in the direction of web pages, click and read ( When Microsoft pulled the support for Java Virtual Machine, it ruined my career, but that is another story ).

    For example, a JVM custom picture frame design app which then can be uploaded to my ecommerce server for custom orders. Today I'm working on single page HTML5 real time multiplayer game which rely on both client and server side code. I think world is going in the direction of single page applications.

    Let me correct that, as a "result" of the removal of the JVM, the world went in another direction, which made my skills obsolete.

    Tuesday, August 6, 2013 7:46 AM
  • User1142003421 posted

    You can find several examples of single page applications at my electronic portfolio.

    WebAcre.com

    Tuesday, August 6, 2013 7:48 AM
  • User-105429085 posted

    Just curious, have you tried combining signalR (or websocket) with your single page app yet?

    Tuesday, August 6, 2013 1:00 PM
  • User1142003421 posted

    I'm looking into SignalR and websocket, I prefer to support websocket, but that means I will have to get windows server 2012.

    I already purchased a copy of windows 8 a few months ago, but that means I have to upgrade my development machine(s). It is not just upgrading the OS, but also all the applications I have installed on the machine. It is very time consuming and I will probably have to upgrade my hardware. I probably have to build a new server as well.

    I'm looking for an educational version of Windows 2012 or a Microsoft program which will allow me to obtain a license for little or no cost.

    Tuesday, August 6, 2013 1:11 PM
  • User-105429085 posted

    SignalR should cover you as it's a layter on top of websocket so you don't need to upgrade yet.  Also, try windows azure windows 2012 VM, so you don't need to pay if you don't use, and you can control your cost in dev time.

    Tuesday, August 6, 2013 1:18 PM
  • User1142003421 posted

    True.

    I had an account and tried Azure when it first came out. It wasn't ready for primetime then, same with SingalR. I will need a development account, a way to point a domain name at it, in other words an IP address. And that I don't have to do anything special to put my apps in it.

    In my experience, once something is built, it is nearly impossible to move an app somewhere else or upgrade it. That is why there is all those legacy systems which need to be supported still. I have a windows 2003 server still that I can't get rid off.

    Putting my apps on a different server may introduce an issue with logins and other issues. Do you know where I can find out about Azure without spending hours to figure out if it meets my needs?

     

    Tuesday, August 6, 2013 1:49 PM
  • User-105429085 posted

    http://www.windowsazure.com/ is still the best place you can get started as far as I know.  The document and walkthrough is actually pretty good.  If you are a MSDN subscriber, then you are all set.

    Tuesday, August 6, 2013 1:58 PM
  • User1391534886 posted

    You Will Get best answer from here

    official page of microsoft to know about SPA.

    Hope it will help u a lot.happy coding

    http://msdn.microsoft.com/en-us/magazine/dn463786.aspx

    Thursday, January 30, 2014 1:24 AM