I'm trying to have all my pages use one html file for a navbar but I cant get it to load in
I tried using javascript to load it in from a static file
$(function(){
$("#navbar").load("/navbar");
});
I also tried it by loading it as a seprate route and trying to reference it that way.
does anyone know if there is a way to get this working, through python or javascript?
/r/flask
https://redd.it/130x3cx
I tried using javascript to load it in from a static file
$(function(){
$("#navbar").load("/navbar");
});
I also tried it by loading it as a seprate route and trying to reference it that way.
does anyone know if there is a way to get this working, through python or javascript?
/r/flask
https://redd.it/130x3cx
Reddit
r/flask on Reddit: I'm trying to have all my pages use one html file for a navbar but I cant get it to load in
Posted by u/blud97 - 1 vote and 6 comments