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

Brendan Crosser-McGay interchange-users@interchange.redhat.com
Wed Apr 17 16:41:01 2002


check out the menu system on the DEMO IC site now, it has Javascript added
into a component..

-----------------------------------------
Brendan Crosser-McGay
brendan@paymentonline.com
-----------------------------------------


> -----Original Message-----
> From: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
> Joachim Leidinger
> Sent: Tuesday, April 16, 2002 11:54 AM
> To: interchange-users@interchange.redhat.com
> Subject: Re: [ic] linking to external javascript file from IC
> template?
>
>
> 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
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>