[ic] linking to external javascript file from IC template?

Joachim Leidinger interchange-users@interchange.redhat.com
Tue Apr 16 17:25:00 2002


Aaron Hazelton wrote:
> > 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"]

If you have a directory in your directory pages of your catalogs, it
should be looking like

[include file="pages/images/menu.html"]

or

[include pages/images/menu.html]

or

[file pages/images/menu.html]

if you have no any IC tags to be parsed by IC.

....

Joachim


-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de] 
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de