Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Repeat code across pages in IE9 (no server-side)?

Nov 19, 2011 9:22AM PST

I have some good amateur experience with basic-to-intermediate HTML and CSS, but my experience with JavaScript and conditional comments is nonexistent. I'm working on developing a site and I want to use some sort of automated process to put code for a navigation bar on every page. I tried the trick described here: http://webdesign.about.com/od/javascript/ht/htjsincludehtm.htm but it's not showing up on IE9, though it does work in Chrome and it seems to work on older versions of IE. I don't really have the option of doing anything server-side due to the nature of the project. Is there a way to get this to work in IE9, or can I at least get help on some other way to achieve what I'm looking for?

Discussion is locked

- Collapse -
Answer
PHP Includes
Dec 14, 2011 8:20AM PST
- Collapse -
Answer
PHP would be best
Dec 16, 2011 4:03AM PST