JS page content change?
Out of context: Reply #20
- Started
- Last post
- 20 Responses
- iodine740
If the items in your nav called javascript functions that dynamically created links to Javascript files (the one part that I'm not totally sure would work) .. and if each of those javascript files had a string variable that contained the entire set of Markup that you wanted to to be seen (ugly, but really the only way of doing it)... you could set that string to be the inner HTML of the div. And so the inner HTML gets switched out every time. I don't think you'd run into scope issues. The only problem is.. by the time they've linked to all the pages in the site... that's kinda a heavy memory load. I'm not sure if there's a way you could "dump" that dynamically linked JS file so it isn't taking up memory in the DOM. Abit clugee...but it's a start.