This project is read-only.

One Page Layout - Ajax Content

Topics: Writing themes
Aug 19, 2012 at 12:35 AM

I'd like to setup a simple portfolio/resume site using a one-page layout... How would I go about creating ajax calls to pull content/pages rather than having everything loaded and hidden via js?

Is this even possible?


Aug 20, 2012 at 6:35 AM

The same way you would in any ASP.NET MVC application: with a controller returning JSON and jQuery calls from the front-end.

Aug 20, 2012 at 11:02 AM

The only caveat that you might need to be aware of, is that you should provide the anti-forgery token in your request.  See this stackoverflow question for details.