[Sugar-devel] [Karma] thinking about knavbar

Bryan Berry bryan at olenepal.org
Fri Sep 18 04:18:25 EDT 2009


mpavel,

I was thinking about knavbar this afternoon and I think I might have a a
cleaner solution:

I like that you are using section, but I think you could leave it empty
in the html and fill it in w/ js

<section id="navigation"><!-- insert knavbar here --></section>

and then to use javascript and E4X to fill it in

Step 1) Include the js in the document
<script src="js/knavbar.js"></script>

2) invoke it after document.ready

$('#navigation').appendChild(knavbar());

what u think?


-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org



More information about the Sugar-devel mailing list