AndyB
12-15-2002, 05:18 PM
What I need to do would be a trivial exercise if I could use php. Unfortunately php is not available on the server where this problem needs to be solved (and neither is ASP available).
I need to include a variable in an shtml page and use that variable to determine which other includes are written. This is in the context of a menu system, where if the page is about 'widgets' then additional menu links relating to widgets need to be written into the menu, and similarly if the page is about 'elephants' then different additional menu links need to be written.
If it's possible, a simple and complete code sample would be extremely helpful.
Otherwise, I guess I'm stuck with doing the same basic thing client-side using javascript with doc.writes for menu parts - and I'd prefer to avoid that as this particular client believes many surfers run with javascript disabled.
I need to include a variable in an shtml page and use that variable to determine which other includes are written. This is in the context of a menu system, where if the page is about 'widgets' then additional menu links relating to widgets need to be written into the menu, and similarly if the page is about 'elephants' then different additional menu links need to be written.
If it's possible, a simple and complete code sample would be extremely helpful.
Otherwise, I guess I'm stuck with doing the same basic thing client-side using javascript with doc.writes for menu parts - and I'd prefer to avoid that as this particular client believes many surfers run with javascript disabled.