HighDots Forums  

Using SSI directives as innerHTML strings

alt.html alt.html


Discuss Using SSI directives as innerHTML strings in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Boyle
 
Posts: n/a

Default Using SSI directives as innerHTML strings - 04-04-2008 , 11:44 PM






Hi,

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,
I've written a perl script that builds html script code (javascript),
creating an array of pictures located in a specific directory and
calling the javascript function that renders the gallery. This perl
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.

My question is this. Can javascript (or html script elements in
general) be use to set the innerHTML value of an element to code that
should create SSI directives?

Thanks for your help.

Jim

Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Using SSI directives as innerHTML strings - 04-05-2008 , 12:04 PM






Jim Boyle wrote:

Quote:
My question is this. Can javascript (or html script elements in
general) be use to set the innerHTML value of an element to code that
should create SSI directives?
No, server side directives are processed on the server. If you add them to
the document with client side programming, it is far too late for the
server to process them.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.