[ic] linking to external javascript file from IC template?
Aaron Hazelton
interchange-users@interchange.redhat.com
Tue Apr 16 14:29:00 2002
> You can do it via IC's include:
> [include file="/path/to/yourjavascript.js"]
>
> Or you could do it the HTML/JS way:
> <script src="/path/to/yourjavascript.js"></script>
>
> Using the IC include method will allow you to embed IC markup in the
> javascript. The script source method may be more efficient
> for "static"
> code in that some browsers may cache the script. Or you
> could even have
> the <script> source tag inside an [include]d HTML file to
> perhaps reap the
> best of both worlds.
>
> -r
Sounds great, but im getting it right I guess. Im not even getting any
errors and its not even trying to build.
I tried:
[include file="http://hazenet.net/images/menu.html"]
(which has the <script> info in it)
<and>
[include file="http://hazenet.net/images/ff2.js"]
(which is the js file)
Is that what you meant, ryan?
Btw, im having problems too because im trying to implement a menu that
was dynamically built with a menu-making program, in case that tells you
anything...
--
Thanks,
Aaron