javascript - Best approach to tab based web browsing -
what's best approach tab based browsing? pros , cons each one?
i'm trying implement page navigation tab based; want type of side-menu/drawer, along header on top (a simple bar logo) , have remaining part of screen container filled depending on item(tab) selected.
i can set up, how load each different page within content view? tried hiding/showing each according <div>
jquery, kinda brought issue google maps , other js libraries using.
also tried load()
, remember giving me trouble also. should contained in 1 page, or different pages , load each page <div>
(frames? don't know mucha about'em)?
everyone have preference how create single page app. i'm using angularjs, because want two-way binding filter capabilities data. 1 way angularjs controls adding , removing of pages ng-view
<div ng-view id='chgviewsection'></div>
that <div>
empty. content gets added or removed changing url, (without reloading page) triggers code. code has called $routeprovider
, , routing specifies content put div element.
i change url with: window.location.href
function mainmenuchg(argpage) { //console.log('argpage: ' + argpage); window.location.href = "#" + argpage; };
to create own page routing, without framework, need way retrieve html content file. put content in 1 html file , hide , show sections, confusing, trying figure out html goes page. so, need way separate each page it's own file, retrieve content.
changing url @ same time change page, allows user share link specific page. so, if want users able promote specific page content, that's need.
Comments
Post a Comment