Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Using SSI directives as innerHTML strings
- Jim Boyle
April 5, 2008, 4:44 am
rate this thread
I hope this is the right place to post this, and my apologies (and a
request for the correct group) if it's not.
I'm supporting a web page that is mainly made up of pictures (the site
is for a high school marching band - many different pages covering
ensembles, years and events). To keep each photo gallery dynamic,
creating an array of pictures located in a specific directory and
script is called via SSI directives. Arguments to perl script are set
using the SSI 'set' directive and passed in using the 'include'
directive. Everything works fine when the SSI directives are coded
directly into an shtml page.
Some of these galleries are fairly large and in order to shorten load
time and to use less memory, I created a menu where each link in the
menu calls a function that changes the innerHTML of the 'div' where
the pictures are displayed to different iterations of SSI
directives . I know this function works, because when the encoded
strings are not SSI directives, the strings are displayed properly.
general) be use to set the innerHTML value of an element to code that
should create SSI directives?
Thanks for your help.