Is it possible to refresh a page using Javascript without reloading my menu/header?
I'm building a page that allows a user to view different combinations of table tops and bases and I've been resetting the build area with a page load. However I don't like the fact that it also reloads my header (causing a jump).
I know that I can tell the page to only load the div containing the build area with:
$('#tableBuilder').load(document.URL + ' #table Builder');
However, that doesn't reload my linked script.js file which is in the of the page which breaks my build area.
script.jsin one or more functions, then call them once when the page loads, and once each time you reload everything below the header.bootor something, then pass it by name to the onready call, and then call it again when you 'reload' the page. Without seeing your code, it's impossible to say what's best, but that's the idea. You need to break the onready logic out, name it, then call it onready, and again on reload.