Is there a recommended "EPiServer"-way to load a subsection of a site? For example lets say you have a page on your site with some content and a menu. When you click one of the menu options a part of the site should be populated with new content but most of the site will look the same. When you click another menu option some new content will be displayed in the subsection.
I'm thinking that an Ajax call to a partial controller would be good here and then just change the content ( with JQuery for example and then change the content inside an <div> or whatever tag surrounds the content to be replaced).
Is there some other EPiServer-way to accomplish this or do I need to write my own javascript code? I guess I can just set the links in the menu to point to partial views and then execute some javascript to do what I want. Not really sure where and how to write the javascript code thou.
Is there a recommended "EPiServer"-way to load a subsection of a site? For example lets say you have a page on your site with some content and a menu. When you click one of the menu options a part of the site should be populated with new content but most of the site will look the same. When you click another menu option some new content will be displayed in the subsection.
I'm thinking that an Ajax call to a partial controller would be good here and then just change the content ( with JQuery for example and then change the content inside an <div> or whatever tag surrounds the content to be replaced).
Is there some other EPiServer-way to accomplish this or do I need to write my own javascript code? I guess I can just set the links in the menu to point to partial views and then execute some javascript to do what I want. Not really sure where and how to write the javascript code thou.