G
Greg
I'm trying to simulate server-side includes on the client-side by
using JavaScript. My main problem is this: is there a way to somehow
pass a variable into a directive like this:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"
src="$myPageVar$"></SCRIPT>
....where $myPageVar$ is a variable I've declared, and somehow,
magically, its value gets put into this directive? The only way I can
get this to work is if I hard-code a value for $myPageVar$ in the
following way:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"
src="homeInc.js"></SCRIPT>
....which is of limited use. Is there a way for me to use variables in
such a directive? Or is there a better way to be doing client-side
includes?
Thanks.
using JavaScript. My main problem is this: is there a way to somehow
pass a variable into a directive like this:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"
src="$myPageVar$"></SCRIPT>
....where $myPageVar$ is a variable I've declared, and somehow,
magically, its value gets put into this directive? The only way I can
get this to work is if I hard-code a value for $myPageVar$ in the
following way:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"
src="homeInc.js"></SCRIPT>
....which is of limited use. Is there a way for me to use variables in
such a directive? Or is there a better way to be doing client-side
includes?
Thanks.