TSemmes
2006-05-24 21:15:14 UTC
Can one safely include javascript in a server-side include (SSI) file? It seems
to work but don't know if it will create problems down the line. I am using a
roll-over navigation bar created and generated in Fireworks. It seems to
defeat the purpose of using SSI if you can't include the javascript since if
there was a change at some point to the navigation bar you would have to change
the javascript that went with it. And it is nice to keep all that extra coding
out of every file on the site. IS there an official word on this or some
process in creating a SSI file that could prevent any problems?
You can see the file I created using this at <a target=_blank
class=ftalternatingbarlinklarge
href="http://www.hopkinsandporter.com/test.shtml">http://www.hopkinsandporter.co
m/test.shtml</a>
to work but don't know if it will create problems down the line. I am using a
roll-over navigation bar created and generated in Fireworks. It seems to
defeat the purpose of using SSI if you can't include the javascript since if
there was a change at some point to the navigation bar you would have to change
the javascript that went with it. And it is nice to keep all that extra coding
out of every file on the site. IS there an official word on this or some
process in creating a SSI file that could prevent any problems?
You can see the file I created using this at <a target=_blank
class=ftalternatingbarlinklarge
href="http://www.hopkinsandporter.com/test.shtml">http://www.hopkinsandporter.co
m/test.shtml</a>