Thanks in advance for any help you can offer. I have searched for weeks on this topic and cannot find anything that will work.
I'm in charge of updating an online resource guide for employees at my office. My work uses a proprietary web software called InQuira Info Manager for people to search the repository for answers. Basically it works like WordPress. It's a web-based WSYIWYG web editor, but you can add source code manually as well.
At work, I use Dreamweaver CS2 [upgrading is not a current option] and all our machines have IE7—I have no idea for how much longer. So, whatever I build has to be compatible with IE7 and cannot be a data-driven site, such as using PHP or other server-side technologies. I can, however, use JavaScript, whether referenced externally or inline.
The pages used for the reference guide are a two-colum format, with a left sidebar <div>
for navigation and a right main <div>
to display the content. I pulled the source code for a Spry vertical flyout menu from my copy of Dreamweaver CS6 at home and pasted it into my CS2 pages at work, inside a "#nav" <div>
within the sidebar <div>
.
Here's the problem: I need to be able to have the source HTML for the Spry menu file loaded into the <div>
, rather than pasted in many different instances across multiple pages. As this is a resource guide, it will be regularly updated, so if I add or remove a topic, I don't want to have to do so twenty times, once for each topic. Template layouts will not work either, since I can't just hit the "re-publish" button in Dreamweaver—with Info Manager, I have to copy the entire HTML file's source code and manually paste it into the Info Manager file, sort of like creating a new WordPress entry.
I have tried using an <iframe>
with no end of trouble; specifically, at least in IE7 <iframe>
tags do not appear to respect the z-Index property and so no matter what, the flyout menus fall behind the content <div>
. No matter what I do, I can't get them on top of the content . I have read about using JavaScript to use the .innerHTML
property to load the content into the "#nav" <div>
but I must be doing something wrong. I paste the script code within the <head>
area and call the script within the HTML file, but can't get it to work.
I will admit that I'm certainly no pro when it comes to web design, but everything was going great until I hit this wall. IE7 sucks but I can't compel my work to upgrade. Any workaround ideas using JavaScript or other non-server-side alternatives would be great. Thank you!