javascript - How to change my page in web such as dashboard? -
i'd change body not including nav, sidebar in html file when click menu in sidebar.
for example, when click coding convention menu in sidebar, must changed index.html test.html. , index.html includes nav, sidebar test.html not. there viewpager or frame in android, want develop function in web.
this web sample image:
this question general , might want provide bit more information such site static web site or dynamic web site? there backend server running? using web libs html rendering?
without knowing details, bit hard give direction. there few different approaches dynamic html rendering: 1. build single page web app using angularjs or reactjs or other libs; 2. use jquery launch ajax request fetch content backend server; 3. if don't have server , building static web couple of static html pages, use html include , use javascript control hide/show;
there many other ways of dynamically changing html snippets. best depending on project itself.
Comments
Post a Comment